/* ==========================================================
   Meridian Dental Care — design tokens
   ========================================================== */
:root {
  --ink:        #10262E;   /* deep teal-charcoal, primary text */
  --ink-soft:   #4F6A70;   /* muted body text */
  --paper:      #FBFAF6;   /* warm background */
  --surface:    #FFFFFF;
  --mint:       #E7F1EC;   /* soft tinted section background */
  --mint-line:  #D3E4DC;
  --teal:       #1C6E71;   /* primary accent */
  --teal-deep:  #0F4C4F;   /* hover / pressed */
  --teal-pale:  #DCEDE6;
  --gold:       #B8925A;   /* sparing warm highlight (stars) */
  --line:       #E5E1D6;
  --whatsapp:   #1FA855;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 40px -22px rgba(16, 38, 46, 0.35);
  --shadow-card: 0 10px 26px -18px rgba(16, 38, 46, 0.28);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--teal); text-decoration: none; }

img { max-width: 100%; display: block; }

ul { padding: 0; margin: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

:focus-visible {
  outline: 2.5px solid var(--teal-deep);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178a45; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

/* ---------- LOGO ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.logo-text em {
  font-style: italic;
  color: var(--teal);
}

/* ---------- DESKTOP NAV ---------- */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--teal);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ---------- HEADER ACTIONS ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ---------- MOBILE MENU BUTTON ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  width: 42px;
  height: 42px;

  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);

  background: var(--surface);
  cursor: pointer;

  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;

  background: var(--ink);
  border-radius: 2px;

  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

/* Hamburger → X */

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

}


/* ==========================================================
   MOBILE NAVIGATION
   ========================================================== */

@media (max-width: 760px) {

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding: 12px 18px;
  }

  /* Show hamburger */

  .nav-toggle {
    display: flex;
  }

  /* Hide desktop appointment button if inside header-actions */

  .header-actions .btn {
    display: none;
  }

  /* ---------- MOBILE SLIDE MENU ---------- */

  .main-nav {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(82vw, 340px);

    margin: 0;

    padding: 90px 28px 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 4px;

    background: var(--surface);

    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);

    transform: translateX(100%);

    transition: transform 0.35s ease;

    z-index: 1050;

    overflow-y: auto;
  }

  /* Open menu */

  .main-nav.is-open {
    transform: translateX(0);
  }

  /* Mobile links */

  .main-nav a {
    width: 100%;

    padding: 14px 4px;

    font-size: 1.05rem;
    font-weight: 600;

    color: var(--ink);

    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    color: var(--teal);
  }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

  .header-inner {
    padding: 11px 16px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    width: 86vw;
    padding-left: 24px;
    padding-right: 24px;
  }

}

/* =========== HERO =========== */
.hero{
  position:relative; min-height: 100svh; display:flex; align-items:flex-end;
  overflow:hidden; color:#fff; padding: 140px 0 100px;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-video{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(15,32,28,0.55) 0%, rgba(15,32,28,0.35) 38%, rgba(15,32,28,0.82) 100%);
}
.hero-content{ position:relative; z-index:1; max-width: 640px; padding: 0 24px; margin: 0 auto 0 0; margin-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.eyebrow-plain{ font-weight:700; letter-spacing:0.02em; color: var(--gold); margin: 0 0 14px; font-size:0.98rem; }
.hero-headline{
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height:1.05; letter-spacing:-0.015em;
  color:#fff; margin-bottom: 20px;
}
.hero-sub{ font-size:1.15rem; color: rgba(255,255,255,0.88); max-width: 46ch; margin:0 0 34px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-actions.center{ justify-content:center; }

.hero-trust{
  position:absolute; z-index:1; right: max(24px, calc((100vw - var(--container)) / 2 + 24px)); bottom: 120px;
  display:flex; flex-direction:column; align-items:flex-end; gap:4px;
  color:#fff; font-weight:600; font-size:0.92rem;
}
.stars{ color: var(--gold); letter-spacing:2px; }

.hero-clip{ position:absolute; left:0; right:0; bottom:-2px; width:100%; height:70px; z-index:1; }

/* =========== INTRO / TRUST =========== */
.intro{ padding: 100px 0 110px; }
.intro-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items:start; }
.intro-copy p{ color: var(--text-soft); }
.intro-copy .lead{ color: var(--text); }

.intro-cards{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-card{
  background: var(--white); border-radius: var(--radius-md); padding: 26px 24px;
  box-shadow: var(--shadow-card); transform: translateY(calc(var(--stagger, 0) * 14px));
}
.trust-card:nth-child(odd){ margin-top: 22px; }
.trust-icon{
  width:44px; height:44px; border-radius:12px; background: var(--sage-light); color: var(--ink-2);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.trust-icon svg{ width:22px; height:22px; }
.trust-card h3{ font-size:1.05rem; margin-bottom:8px; }
.trust-card p{ color: var(--text-soft); font-size:0.94rem; margin:0; }

/* =========================================
   MOBILE HERO — VIDEO ABOVE TEXT
   ========================================= */
@media (max-width: 640px){

  .hero{
    min-height: auto;
    height: auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:0;
    overflow:hidden;
    background:var(--porcelain);
    color:var(--text);
  }

  /* VIDEO BECOMES A NORMAL BLOCK */
  .hero-media{
    position:relative;
    inset:auto;
    width:100%;
    height:58svh;
    min-height:420px;
    z-index:0;
    order:1;
    overflow:hidden;
  }

  .hero-video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center center;
  }

  /* Keep dark overlay only on video */
  .hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
      180deg,
      rgba(15,32,28,0.12) 0%,
      rgba(15,32,28,0.08) 50%,
      rgba(15,32,28,0.35) 100%
    );
  }

  /* TEXT GOES BELOW VIDEO */
  .hero-content{
    position:relative;
    z-index:2;
    order:2;
    width:100%;
    max-width:none;
    margin:0;
    padding:38px 24px 20px;
    background:var(--porcelain);
    text-align:left;
  }

  .eyebrow-plain{
    font-size:0.88rem;
    margin:0 0 10px;
    color:var(--gold);
  }

  .hero-headline{
    font-size:clamp(2.4rem, 11vw, 3.4rem);
    line-height:1.02;
    letter-spacing:-0.015em;
    color:var(--ink);
    margin:0 0 18px;
  }

  .hero-sub{
    font-size:0.98rem;
    line-height:1.55;
    color:var(--text-soft);
    max-width:40ch;
    margin:0 0 26px;
  }

  .hero-actions{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .hero-actions .btn{
    width:100%;
    min-height:58px;
  }

  /* TRUST BELOW BUTTONS */
  .hero-trust{
    position:relative;
    order:3;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    margin:0;
    padding:15px 24px 35px;
    background:var(--porcelain);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    color:var(--text);
    font-size:0.85rem;
  }

  .stars{
    color:var(--gold);
  }

  /* BOTTOM CURVE */
  .hero-clip{
    position:relative;
    order:4;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    height:35px;
    margin-top:-1px;
    z-index:3;
  }
}
/* ==========================================================
   Sections (shared)
   ========================================================== */
.section { padding: 84px 24px; }
.section-tint { background: var(--mint); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { font-size: 1.02rem; }

/* ---------- Feature grid (Why choose us) ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 30px 26px;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-pale); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body p { font-size: 0.93rem; flex: 1; }
.service-body a { font-weight: 600; font-size: 0.92rem; }
.service-body a::after { content: " →"; }

/* ---------- Doctor ---------- */
.doctor-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
}
.doctor-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.doctor-cred { color: var(--teal-deep); font-weight: 600; font-size: 0.95rem; }
.doctor-copy h3 { font-size: 1.5rem; margin-bottom: 2px; }
.doctor-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--ink); border-left: 3px solid var(--teal); padding-left: 18px; margin-top: 22px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--mint-line); padding: 28px 26px; margin: 0;
}
.testimonial-card blockquote {
  margin: 14px 0 16px; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--ink); font-style: italic;
}
.testimonial-card figcaption { color: var(--ink-soft); font-size: 0.88rem; }

/* ==========================================================
   BLOG / DENTAL INSIGHTS
   ========================================================== */

.blog-section {
  background: var(--porcelain);
}


/* ---------- BLOG HEADER ---------- */

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.blog-header .section-head {
  margin-bottom: 0;
}

.blog-eyebrow {
  display: block;
  margin-bottom: 12px;

  color: var(--gold);

  font-size: 0.78rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.blog-header h2 em {
  color: var(--sage);
  font-style: italic;
}

.blog-header p {
  max-width: 580px;
}


/* ---------- VIEW ALL ---------- */

.blog-view-all {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 20px;

  border: 1px solid var(--ink);
  border-radius: 999px;

  color: var(--ink);

  font-size: 0.88rem;
  font-weight: 700;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}

.blog-view-all span {
  transition: transform .25s ease;
}

.blog-view-all:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.blog-view-all:hover span {
  transform: translateX(4px);
}


/* ---------- BLOG GRID ---------- */

.blog-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}


/* ---------- BLOG CARD ---------- */

.blog-card {
  overflow: hidden;

  background: var(--white);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-card);

  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

.blog-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 25px 45px -22px rgba(21,48,43,.38);
}


/* ---------- BLOG IMAGE ---------- */

.blog-image {
  position: relative;

  display: block;

  height: 245px;

  overflow: hidden;

  background: var(--porcelain-2);
}

.blog-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s var(--ease);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}


/* ---------- CATEGORY ---------- */

.blog-category {
  position: absolute;

  left: 16px;
  bottom: 16px;

  padding: 7px 13px;

  border-radius: 999px;

  background: rgba(255,255,255,.94);

  color: var(--ink);

  font-size: .72rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .06em;
}


/* ---------- CONTENT ---------- */

.blog-content {
  padding: 25px 24px 28px;
}

.blog-meta {
  margin-bottom: 10px;

  color: var(--gold-dark);

  font-size: .74rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-content h3 {
  margin: 0 0 12px;

  color: var(--ink);

  font-family: var(--font-display);

  font-size: 1.45rem;
  font-weight: 500;

  line-height: 1.15;
}

.blog-content p {
  margin: 0 0 20px;

  color: var(--text-soft);

  font-size: .92rem;
  line-height: 1.65;
}


/* ---------- READ ARTICLE ---------- */

.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--ink);

  font-size: .88rem;
  font-weight: 800;
}

.blog-read span {
  transition: transform .25s ease;
}

.blog-read:hover {
  color: var(--gold-dark);
}

.blog-read:hover span {
  transform: translateX(4px);
}


/* ==========================================================
   BLOG RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 640px) {

  .blog-header {
    display: block;
    margin-bottom: 32px;
  }

  .blog-view-all {
    margin-top: 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-image {
    height: 230px;
  }

  .blog-content {
    padding: 23px 21px 27px;
  }

  .blog-content h3 {
    font-size: 1.35rem;
  }

}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Appointment ---------- */
.appointment-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start;
}
.appointment-points li {
  padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--ink-soft); font-size: 0.95rem;
}
.appointment-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--teal);
}
.appointment-form {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row label span { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-family: var(--font-body); font-size: 0.96rem;
  background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
.form-note { min-height: 1.4em; font-size: 0.9rem; color: var(--teal-deep); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info dl { margin: 22px 0 28px; }
.contact-info dl > div { margin-bottom: 16px; }
.contact-info dt { font-size: 0.82rem; text-transform: none; color: var(--teal-deep); font-weight: 600; margin-bottom: 3px; }
.contact-info dd { margin: 0; color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-map iframe {
  width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius-lg);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--ink); color: #CFE0DC; padding: 60px 24px 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text em { color: var(--teal-pale); }
.footer-brand p { color: #A9C1BB; font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.92rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #A9C1BB; font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 22px 0; font-size: 0.85rem; color: #85A099;
}

/* ==========================================================
   Floating CTAs
   ========================================================== */
.floating-ctas {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.06); }
.fab-whatsapp { background: var(--whatsapp); }
.fab-call { background: var(--teal); display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .doctor-grid, .appointment-grid, .contact-grid { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 360px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 66px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { padding: 36px 20px 64px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-badge { position: static; margin-top: -30px; max-width: 100%; }
  .hero-trust { gap: 18px; }

  .section { padding: 60px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .appointment-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fab-call { display: flex; }
  .floating-ctas { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   MOBILE HEADER — DARK BACKGROUND
   ========================================= */
@media (max-width: 640px){

  .site-header{
    position: absolute;
    top:0;
    left:0;
    right:0;
    width:100%;
    background:var(----white);
    padding:14px 0;
    z-index:100;
  }

  .header-inner{
    padding:0 20px;
  }

  .brand{
    color:var(--white);
  }

  .brand-name{
    color:var(--white);
  }

  .main-nav{
    background:var(--porcelain);
  }

  .nav-toggle span{
    background:var(--white);
  }

  /* Don't switch the header to white while scrolling */
  .site-header.is-scrolled{
    background:var(--white);
    padding:14px 0;
  }

  .site-header.is-scrolled .brand{
    color:var(--white);
  }

  .site-header.is-scrolled .brand-name{
    color:var(--white);
  }

  .site-header.is-scrolled .nav-toggle span{
    background:var(--white);
  }
}
@media (max-width: 760px) {
  .nav-toggle span {
    background: var(--ink) !important;
  }
}
