
/* Contact page (shared). Loaded after styles.css */

/* Prevent inheriting homepage hero-media sizing */
.contact-hero .hero-media{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Hero block padding + max width */
.contact-hero .inner{
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 18px 28px;
}

.contact-hero .page-kicker{ margin: 0 0 10px; }
.contact-hero h1{ margin: 0 0 12px; }
.contact-hero .page-lede{ margin: 0 0 18px; max-width: 70ch; }

/* Hero image card */
.contact-hero .hero-media{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20,20,20,0.07);
  box-shadow: 0 22px 55px rgba(0,0,0,0.05);
}

/* Clinic photo — natural proportions */
.contact-hero .hero-media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

/* Main section spacing */
.page-section .inner.page-grid{
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

/* Contact card */
.contact-card{
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(20,20,20,0.07);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.055);
}

.contact-card h2{
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 10px;
}

.contact-list{
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list li{
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: rgba(126,146,138,0.98);
  background: rgba(162,177,162,0.22);
  border: 1px solid rgba(126,146,138,0.28);
}

.contact-meta{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(20,20,20,0.10);
  color: rgba(20,20,20,0.72);
  font-size: 14px;
  line-height: 1.6;
}

.contact-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(20,20,20,0.62);
  line-height: 1.5;
}

.contact-aside .aside-card img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
  border-radius: 18px;
}

/* Grid behavior */
@media (min-width: 980px){
  .page-section .inner.page-grid{
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    align-items: start;
  }
}

/* RTL tweaks */
html[dir="rtl"] .contact-list li{
  padding-left: 0;
  padding-right: 28px;
}
html[dir="rtl"] .contact-list li::before{
  left: auto;
  right: 0;
}


/* Mobile: center ONLY the main in-card WhatsApp CTA (button + label) */
@media (max-width: 820px){
  .contact-card a.cta.whatsapp-cta{
    display: flex !important;          /* block-level flex */
    width: fit-content !important;     /* shrink to text */
    max-width: 100%;                   /* safety */
    margin: 14px auto 0 !important;    /* center the button */

    justify-content: center !important;/* center label horizontally */
    align-items: center !important;    /* center vertically */
    text-align: center !important;     /* if it wraps to 2 lines */
  }
}


