/* ============================================================
   Barrow Orthodontics — Redesign Prototype
   Tiny Byte Studio
   ============================================================ */

:root {
  --teal-900: #0c3b3a;
  --teal-700: #14605d;
  --teal-500: #1c8c87;
  --teal-300: #5bc2bd;
  --mint-100: #e7f6f4;
  --mint-50:  #f3faf9;

  --ink:      #16302f;
  --slate:    #51635f;
  --line:     #e2ece9;
  --cream:    #fbfaf6;
  --white:    #ffffff;

  --orange:   #f08a3c;
  --green:    #5cae6a;
  --teal-acc: #2ba6a0;
  --yellow:   #f5c542;
  --coral:    #ef6f5b;

  --grad: linear-gradient(120deg, var(--teal-500), var(--teal-300));

  --shadow-sm: 0 2px 8px rgba(12, 59, 58, .06);
  --shadow-md: 0 12px 30px rgba(12, 59, 58, .10);
  --shadow-lg: 0 30px 60px rgba(12, 59, 58, .16);

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

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--mint-50); }
.section--white { background: var(--white); }
.section--dark {
  background: radial-gradient(120% 140% at 80% 0%, var(--teal-700), var(--teal-900));
  color: #eafaf8;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: .7rem;
}
.section--dark .eyebrow { color: var(--teal-300); }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Diamonds (brand mark) ---------- */
.brand__diamonds { display: inline-flex; align-items: center; }
.brand__diamonds img { height: 26px; width: auto; display: block; }
.brand__diamonds img + img { margin-left: -7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-500); color: #fff; box-shadow: 0 10px 22px rgba(28,140,135,.28); }
.btn--primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(28,140,135,.34); }
.btn--secondary { background: var(--ink); color: #fff; }
.btn--secondary:hover { background: #0c211f; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.section--dark .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--text { background: transparent; color: var(--teal-700); padding-inline: .4rem; }
.btn--text:hover { color: var(--teal-500); }
.section--dark .btn--text { color: var(--teal-300); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow { color: var(--teal-700); font-weight: 600; font-size: .92rem; }
.link-arrow:hover { color: var(--teal-500); }

/* ---------- Prototype banner ---------- */
.proto-banner {
  background: var(--ink); color: #d8f3ef; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .55rem 1rem; text-align: center; position: relative;
}
.proto-banner strong { color: #fff; }
.proto-banner__close {
  position: absolute; right: .8rem; background: none; border: none; color: #9fc8c3;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.proto-banner__close:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__text { font-family: var(--font-head); font-size: 1.18rem; font-weight: 500; color: var(--ink); }
.brand__text strong { font-weight: 600; color: var(--teal-700); }
.brand--light .brand__text, .brand--light .brand__text strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--slate); position: relative; }
.main-nav > a:not(.btn):hover { color: var(--teal-700); }
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal-500); transition: width .2s ease;
}
.main-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 50% at 85% 10%, rgba(91,194,189,.30), transparent 60%),
    radial-gradient(45% 45% at 10% 90%, rgba(245,197,66,.18), transparent 60%),
    var(--mint-50);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 1.1rem; }
.hero__lede { font-size: 1.13rem; color: var(--slate); max-width: 34ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero__text-cta { font-size: .95rem; color: var(--slate); }
.hero__text-cta a { color: var(--teal-700); font-weight: 600; }

.hero__card-wrap { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg);
  background: var(--teal-700); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: .8rem 1rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem;
  font-size: .82rem;
}
.float-card strong { display: block; font-size: .98rem; color: var(--ink); }
.float-card span { color: var(--slate); }
.float-card--rating { left: -1.4rem; top: 16%; }
.float-card--local { right: -1.2rem; bottom: 12%; }
.float-card__badge { font-size: 1.5rem; }

.stars { color: var(--yellow); letter-spacing: 2px; font-size: 1rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.8rem 0; text-align: center; }
.trust__stat strong { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--teal-700); display: block; }
.trust__stat span { font-size: .9rem; color: var(--slate); }

/* ---------- Quick cards ---------- */
.quick { padding: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; position: relative; z-index: 5; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.quick-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quick-card__icon { width: 30px; height: 30px; object-fit: contain; margin-bottom: 1rem; }
.quick-card h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.quick-card p { font-size: .9rem; color: var(--slate); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head__sub { color: var(--slate); font-size: 1.05rem; margin-top: .7rem; }
.section-head--light .section-head__sub { color: #c4ece8; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; min-height: 420px; }
.about__photo {
  position: absolute; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 5px solid #fff;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo--1 { width: 66%; aspect-ratio: 4/3; left: 0; top: 0; z-index: 2; }
.about__photo--2 { width: 48%; aspect-ratio: 3/4; right: 0; bottom: 0; z-index: 3; }
.about__accent { position: absolute; width: 120px; height: 120px; right: 8%; top: -10px; background: radial-gradient(circle, rgba(245,197,66,.5), transparent 70%); z-index: 0; }
.about__copy h2 { margin-bottom: 1rem; }
.about__copy > p { color: var(--slate); margin-bottom: 1.4rem; }

.checklist { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; background: var(--mint-100); color: var(--teal-700);
  border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* ---------- Doctors ---------- */
.doctors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.doc-card {
  position: relative; text-align: center; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.6rem 1.8rem; transition: transform .2s ease, box-shadow .2s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-card__avatar {
  width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 1.2rem; overflow: hidden;
  background: linear-gradient(160deg, var(--mint-100), var(--teal-300));
  box-shadow: inset 0 -8px 24px rgba(12,59,58,.12);
}
.doc-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.doc-card__cred { color: var(--teal-700); font-weight: 600; font-size: .85rem; margin-bottom: .8rem; }
.doc-card__bio { color: var(--slate); font-size: .94rem; margin-bottom: 1rem; }
.doc-card__badge {
  position: absolute; top: 1rem; right: 1rem; background: var(--mint-100); color: var(--teal-700);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}

/* ---------- Before / After slider ---------- */
.ba {
  position: relative; max-width: 720px; margin: 0 auto; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  user-select: none; touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__reveal { clip-path: inset(0 50% 0 0); }
.ba__label {
  position: absolute; top: 1rem; z-index: 3; background: rgba(22,48,47,.78); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; background: rgba(28,140,135,.85); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 4;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(12,59,58,.15); pointer-events: none;
}
.ba__handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--teal-700);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; letter-spacing: 2px;
  box-shadow: var(--shadow-md);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 5;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 48px; height: 100%; border: none; background: transparent; cursor: ew-resize; }
.ba__note { text-align: center; color: var(--slate); font-size: .85rem; margin-top: 1.2rem; font-style: italic; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-300); }
.service-card--feature { background: linear-gradient(165deg, var(--teal-700), var(--teal-900)); border-color: transparent; }
.service-card--feature h3, .service-card--feature p { color: #fff; }
.service-card--feature p { color: #cdeeeb; }
.service-card--feature .link-arrow { color: var(--teal-300); }
.service-card__tag {
  position: absolute; top: 1.2rem; right: 1.2rem; background: var(--yellow); color: #5a4500;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.service-card__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem;
  border-radius: 14px; background: var(--mint-100); color: var(--teal-700);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card--feature .service-card__icon { background: rgba(255,255,255,.14); color: #fff; }
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card p { color: var(--slate); font-size: .95rem; margin-bottom: 1rem; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 210px; max-width: 300px; text-align: center; padding: 0 1rem; }
.step__num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
  box-shadow: 0 10px 22px rgba(28,140,135,.28);
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .95rem; }
.step__line { flex: 0 0 60px; height: 2px; background: var(--line); margin-top: 27px; }

.patients__cta {
  margin-top: 3rem; background: var(--mint-100); border-radius: var(--radius-lg);
  padding: 2rem clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.patients__cta h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.patients__cta p { color: var(--slate); }
.patients__cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Smiles ---------- */
.smiles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.smile-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease; }
.smile-tile:hover { transform: translateY(-4px); }
.smile-tile__img { aspect-ratio: 3/4; overflow: hidden; }
.smile-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.smile-tile:hover .smile-tile__img img { transform: scale(1.05); }
.smile-tile figcaption { padding: .9rem 1rem; font-size: .88rem; color: #cdeeeb; text-align: center; }
.smiles__action { text-align: center; }

/* ---------- Reviews ---------- */
.reviews__carousel { overflow: hidden; max-width: 760px; margin: 0 auto; }
.reviews__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.review {
  flex: 0 0 100%; padding: 0 1rem; text-align: center;
}
.review .stars { font-size: 1.3rem; margin-bottom: 1rem; }
.review p { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.4; color: var(--ink); margin-bottom: 1rem; }
.review cite { font-style: normal; font-weight: 600; color: var(--teal-700); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2rem; }
.reviews__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.4rem; color: var(--teal-700); cursor: pointer; transition: .2s; line-height: 1;
}
.reviews__btn:hover { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.reviews__dots { display: flex; gap: .5rem; }
.reviews__dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: .2s; }
.reviews__dots button.active { background: var(--teal-500); width: 26px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__head h2 { margin: .3rem 0 .7rem; }
.faq__head p { color: var(--slate); margin-bottom: 1.4rem; }
.faq__list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 1.1rem 0; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); transition: transform .2s; font-weight: 400; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--slate); padding-bottom: 1.1rem; font-size: .95rem; }

/* ---------- Locations ---------- */
.locations__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.location-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease; }
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.location-card--primary { border: 2px solid var(--teal-300); }
.location-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.location-card__addr { color: var(--slate); margin-bottom: .5rem; }
.location-card__phone { margin-bottom: 1rem; }
.location-card__phone a { color: var(--teal-700); font-weight: 600; }
.location-card__map {
  background: var(--mint-100); border-radius: var(--radius-sm); height: 110px; display: grid; place-items: center;
  color: var(--teal-700); font-weight: 600; margin-bottom: 1rem;
  background-image: linear-gradient(rgba(91,194,189,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(91,194,189,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__copy h2 { margin-bottom: 1rem; }
.contact__copy > p { color: #cdeeeb; margin-bottom: 1.6rem; }
.contact__list { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.contact__list li { display: flex; align-items: center; gap: .7rem; color: #eafaf8; }
.contact__list a { color: #fff; font-weight: 600; }
.contact__social { display: flex; gap: .7rem; }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 600; transition: .2s;
}
.social:hover { background: var(--teal-300); color: var(--teal-900); transform: translateY(-2px); }

.contact__form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; margin-top: .35rem; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--ink); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--teal-300); box-shadow: 0 0 0 3px rgba(91,194,189,.25); background: #fff;
}
.contact__form textarea { resize: vertical; }
.form-note { margin-top: 1rem; color: var(--teal-700); font-weight: 600; font-size: .9rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9cfcb; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer__logo { width: 200px; height: auto; background: #fff; padding: 14px 16px; border-radius: var(--radius-sm); }
.site-footer__brand p { margin-top: .9rem; max-width: 30ch; font-size: .92rem; }
.site-footer__affil { display: flex; gap: .8rem; margin-top: 1.1rem; }
.site-footer__affil img { height: 46px; width: auto; background: #fff; padding: 6px; border-radius: 8px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__nav h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer__nav a { display: block; font-size: .9rem; padding: .25rem 0; color: #b9cfcb; transition: color .2s; }
.site-footer__nav a:hover { color: var(--teal-300); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem;
}
.site-footer__credit strong { color: var(--teal-300); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero__inner, .about__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__card-wrap { max-width: 380px; margin: 0 auto; }
  .about__media { min-height: 320px; max-width: 420px; margin: 0 auto; }
  .services__grid, .quick__grid, .smiles__grid, .locations__grid, .doctors__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .step__line { display: none; }
  .site-footer__inner { grid-template-columns: 1fr; }

  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 6rem 1.6rem 2rem; gap: .4rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s ease; z-index: 60;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: .5rem; }
  .nav-toggle { display: flex; z-index: 61; }
}

@media (max-width: 560px) {
  .services__grid, .quick__grid, .smiles__grid, .locations__grid, .doctors__grid, .form-row { grid-template-columns: 1fr; }
  .float-card--rating { left: 0; }
  .float-card--local { right: 0; }
  .patients__cta { text-align: center; justify-content: center; }
  .patients__cta-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
