/* ============================================================
   Okonic Dental — charcoal · gold · ivory
   Display: Cormorant Garamond · Body/UI: Jost
   ============================================================ */

:root {
  --ink: #22262c;
  --ink-deep: #171a1f;
  --ink-soft: #3a4048;
  --ivory: #f6f3ec;
  --ivory-warm: #efeae0;
  --white: #fffdf9;
  --gold: #ab8d62;
  --gold-deep: #866a43;
  --gold-light: #cdb591;
  --gold-pale: rgba(171, 141, 98, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 50px rgba(23, 26, 31, 0.14);
  --shadow-card: 0 10px 30px rgba(23, 26, 31, 0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

/* Clip (not hidden) so the off-canvas mobile drawer can't widen the page
   while position: sticky on the nav keeps working */
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; }

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: 0.01em;
}

h2 em, h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 55%, var(--gold-light));
  background-size: 160% 100%;
  background-position: 0 0;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(134, 106, 67, 0.35);
}

.btn-gold:hover {
  background-position: 90% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(134, 106, 67, 0.45);
}

.btn-outline {
  border-color: rgba(255, 253, 249, 0.55);
  color: var(--white);
}

.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-ghost {
  color: var(--ink);
  border-color: transparent;
  padding-inline: 0.9rem;
}

.btn-ghost:hover { color: var(--gold-deep); }

.btn-lg { padding: 0.95rem 2rem; font-size: 0.86rem; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Utility bar ---------- */

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ink-deep);
  color: rgba(246, 243, 236, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
}

.utility-note strong { color: var(--gold-light); font-weight: 500; }

.utility-star { color: var(--gold); margin-right: 0.4rem; }

.utility-contacts { display: flex; align-items: center; gap: 0.6rem; }

.utility-link { color: rgba(246, 243, 236, 0.85); text-decoration: none; }

.utility-link:hover { color: var(--gold-light); }

.utility-sep { color: var(--gold-deep); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(23, 26, 31, 0.72), rgba(23, 26, 31, 0.42));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nav.is-solid {
  background: rgba(246, 243, 236, 0.94);
  box-shadow: 0 1px 0 rgba(34, 38, 44, 0.08), 0 10px 30px rgba(23, 26, 31, 0.07);
}

.nav-logo { display: block; position: relative; }

.nav-logo img { height: 58px; width: auto; transition: opacity 0.3s var(--ease-out); }

.nav-logo-dark { opacity: 0; position: absolute; inset: 0; }

.nav.is-solid .nav-logo-dark { opacity: 1; position: static; }

.nav.is-solid .nav-logo-light { opacity: 0; position: absolute; inset: 0; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246, 243, 236, 0.92);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav.is-solid .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}

.nav-links a:hover::after { right: 0; }

.nav-links a:hover { color: var(--gold-light); }

.nav.is-solid .nav-links a:hover { color: var(--gold-deep); }

.nav-actions { display: flex; align-items: center; gap: 0.4rem; }

.nav-call { color: rgba(246, 243, 236, 0.92); }

.nav.is-solid .nav-call { color: var(--ink); }

.nav-call:hover { color: var(--gold-light); }

.nav.is-solid .nav-call:hover { color: var(--gold-deep); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: currentColor;
  color: var(--ivory);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav.is-solid .nav-burger span { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  margin-top: calc(-1 * (58px + 1.3rem + 0.5rem + 24px + 1rem));
  /* pulled up behind sticky nav via padding instead */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--ivory);
}

.hero-bg { position: absolute; inset: 0; }

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-layer-aerial {
  animation: aerialCycle 22s ease-in-out infinite;
}

.hero-layer-front {
  opacity: 0;
  animation: frontCycle 22s ease-in-out infinite;
}

@keyframes aerialCycle {
  0%    { opacity: 1; transform: scale(1.02); }
  36%   { opacity: 1; transform: scale(1.22); }
  46%   { opacity: 0; transform: scale(1.3); }
  90%   { opacity: 0; transform: scale(1.02); }
  100%  { opacity: 1; transform: scale(1.02); }
}

@keyframes frontCycle {
  0%    { opacity: 0; transform: scale(1.14) translateY(2%); }
  36%   { opacity: 0; transform: scale(1.14) translateY(2%); }
  46%   { opacity: 1; transform: scale(1.12) translateY(1.6%); }
  88%   { opacity: 1; transform: scale(1.0) translateY(0); }
  100%  { opacity: 0; transform: scale(1.0) translateY(0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 26, 31, 0.88) 0%, rgba(23, 26, 31, 0.62) 42%, rgba(23, 26, 31, 0.18) 78%),
    linear-gradient(to top, rgba(23, 26, 31, 0.75) 0%, rgba(23, 26, 31, 0) 32%);
}

.hero-octagon {
  position: absolute;
  right: clamp(-8rem, -2vw, 0rem);
  top: 50%;
  translate: 0 -50%;
  width: clamp(320px, 42vw, 640px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

.hero-octagon path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
}

.octa-draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: octaDraw 2.6s var(--ease-out) 0.4s forwards;
}

.octa-draw-b { stroke: var(--gold-light); animation-delay: 0.8s; }

@keyframes octaDraw { to { stroke-dashoffset: 0; } }

.octa-spin-a, .octa-spin-b { transform-origin: 200px 200px; }

.octa-spin-a { animation: spinSlow 90s linear infinite; }

.octa-spin-b { animation: spinSlowRev 120s linear infinite; }

@keyframes spinSlow { to { transform: rotate(360deg); } }

@keyframes spinSlowRev { to { transform: rotate(-360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.25rem, 4vw, 3rem) 7rem;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.eyebrow-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.75rem;
  border: 1px solid currentColor;
  transform: rotate(22.5deg);
  vertical-align: 1px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.hero-title em { color: var(--gold-light); }

.hero-sub {
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 300;
  color: rgba(246, 243, 236, 0.88);
  margin-bottom: 2.4rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-rating {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(246, 243, 236, 0.96);
  color: var(--ink);
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 3px;
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out);
}

.hero-rating:hover { transform: translateY(-3px); }

.rating-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
}

.rating-body { display: flex; flex-direction: column; line-height: 1.35; }

.rating-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.15em; }

.rating-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  translate: -50% 0;
  z-index: 2;
  width: 1px;
  height: 54px;
  background: rgba(246, 243, 236, 0.22);
  overflow: hidden;
}

.hero-scrollcue span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-light);
  animation: cueDrop 2.2s ease-in-out infinite;
}

@keyframes cueDrop {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* Load-in rise animation */

.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.9s var(--ease-out) forwards;
}

.r1 { animation-delay: 0.15s; }
.r2 { animation-delay: 0.3s; }
.r3 { animation-delay: 0.48s; }
.r4 { animation-delay: 0.64s; }
.r5 { animation-delay: 0.85s; }

@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.5rem, 5vw, 4rem);
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: var(--ivory-warm);
  border-bottom: 1px solid rgba(171, 141, 98, 0.25);
}

.trust-strip span {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
}

.trust-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 0.7rem;
  background: var(--gold);
  transform: rotate(22.5deg);
}

/* ---------- Sections shared ---------- */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.section-lede {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.eyebrow-oncharcoal { color: var(--gold-light); }

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.about-media { position: relative; }

.octa-frame {
  position: relative;
  clip-path: polygon(50% 0%, 85.4% 14.6%, 100% 50%, 85.4% 85.4%, 50% 100%, 14.6% 85.4%, 0% 50%, 14.6% 14.6%);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gold-pale);
}

.octa-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s var(--ease-out);
}

.about-media:hover .octa-frame img { transform: scale(1.14); }

.about-card {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 46%;
  border: 5px solid var(--ivory);
  box-shadow: var(--shadow-soft);
  transition-delay: 0.25s;
}

.about-copy h2 { margin-bottom: 1.3rem; }

.about-copy > p { color: var(--ink-soft); max-width: 56ch; }

.doctor-quote {
  margin: 1.8rem 0 2.2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}

.doctor-quote p {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.doctor-quote footer { display: flex; flex-direction: column; }

.doctor-name {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doctor-cred { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.03em; }

.stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(171, 141, 98, 0.3);
  padding-top: 1.6rem;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */

.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.service {
  position: relative;
  background: var(--ivory);
  padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid rgba(171, 141, 98, 0.18);
  border-radius: 3px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(171, 141, 98, 0.45);
}

.service::before {
  content: "";
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.service:hover::before { opacity: 1; }

.service-cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

.service h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  margin-bottom: 0.45rem;
}

.service p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Feature rows ---------- */

.feature-rows { background: var(--ivory); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.feature + .feature { border-top: 1px solid rgba(171, 141, 98, 0.2); }

.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(246, 243, 236, 0.55);
  border-radius: 2px;
  pointer-events: none;
}

.feature-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 5s var(--ease-out);
}

.feature-media:hover img { transform: scale(1.07); }

.feature-flip .feature-media { order: 2; }

.feature-copy h2 { margin-bottom: 1.1rem; }

.feature-copy p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.4rem; }

.text-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(134, 106, 67, 0.4);
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}

.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Reviews ---------- */

.reviews {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(171, 141, 98, 0.16), transparent 60%),
    var(--ink-deep);
  color: var(--ivory);
}

.reviews h2 em { color: var(--gold-light); }

.reviews .section-lede { color: rgba(246, 243, 236, 0.7); }

.carousel { max-width: 820px; margin: 0 auto; position: relative; }

.carousel-track { position: relative; min-height: 260px; }

.review-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
  padding: 0 clamp(0.5rem, 4vw, 2.5rem);
}

.review-card.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.review-card p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 1.6rem;
}

.review-card footer {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.review-stars { color: var(--gold); letter-spacing: 0.25em; font-size: 0.9rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-light);
  background: transparent;
  transform: rotate(22.5deg);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dots button[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(22.5deg) scale(1.25);
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "media copy" "map map";
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.visit-media { grid-area: media; overflow: hidden; border-radius: 3px; box-shadow: var(--shadow-soft); }

.visit-photo { width: 100%; will-change: transform; transform: scale(1.12); }

.visit-copy { grid-area: copy; }

.visit-copy h2 { margin-bottom: 1rem; }

.visit-copy > p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 46ch; }

.visit-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}

.visit-block h3 {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.visit-block p { font-size: 0.95rem; }

.visit-block a { color: var(--ink); }

.visit-block .text-link { margin-top: 0.5rem; }

.hours div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }

.hours dt { color: var(--ink-soft); }

.hours dd { font-weight: 400; }

.visit-map {
  grid-area: map;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(171, 141, 98, 0.25);
}

.visit-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(900px 460px at 12% 110%, rgba(171, 141, 98, 0.18), transparent 55%),
    var(--ink);
  color: var(--ivory);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: center;
}

.contact h2 em { color: var(--gold-light); }

.contact-copy > p { color: rgba(246, 243, 236, 0.82); max-width: 44ch; margin-bottom: 1.6rem; }

.contact-copy a { color: var(--gold-light); }

.contact-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.contact-badges span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(205, 181, 145, 0.4);
  color: var(--gold-light);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
}

.contact-form {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 4px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.label-note { text-transform: none; letter-spacing: 0.02em; font-weight: 300; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(34, 38, 44, 0.18);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(171, 141, 98, 0.2);
}

.contact-form textarea { resize: vertical; }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink-deep); color: rgba(246, 243, 236, 0.8); }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.footer-logo { width: min(230px, 60%); margin-bottom: 1.2rem; }

.footer-brand p { font-size: 0.9rem; max-width: 34ch; }

.footer-col h3 {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: rgba(246, 243, 236, 0.8);
  text-decoration: none;
  padding: 0.22rem 0;
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-col p { font-size: 0.92rem; padding: 0.22rem 0; }

.footer-hours { color: rgba(246, 243, 236, 0.6); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  padding: 1.2rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.78rem;
  color: rgba(246, 243, 236, 0.55);
  max-width: calc(var(--maxw) + 6rem);
  margin: 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-call { display: none; }
}

@media (max-width: 860px) {
  .about,
  .feature,
  .visit,
  .contact-inner { grid-template-columns: 1fr; }
  .visit { grid-template-areas: "media" "copy" "map"; }
  .feature-flip .feature-media { order: 0; }
  .about-card { right: 0.5rem; bottom: -2rem; }
  .about-copy { margin-top: 2.5rem; }
  .hero-octagon { display: none; }
  .hero-rating { position: static; margin: 0 clamp(1.25rem, 4vw, 3rem) 2.2rem; align-self: flex-start; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: var(--ink-deep);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    z-index: 70;
  }

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

  .nav-links a,
  .nav.is-solid .nav-links a { color: var(--ivory); font-size: 1rem; }

  .nav-burger { display: flex; position: relative; z-index: 80; }

  .nav-links.is-open ~ .nav-actions .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-links.is-open ~ .nav-actions .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-links.is-open ~ .nav-actions .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .utility-bar { justify-content: center; text-align: center; font-size: 0.72rem; }
  .utility-contacts { display: none; }
  .nav { gap: 0.6rem; }
  .nav .btn-gold { font-size: 0.66rem; padding: 0.55rem 0.9rem; letter-spacing: 0.1em; }
  /* 16px inputs stop iOS Safari's focus auto-zoom */
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 1rem; }
  /* bigger touch targets for carousel dots */
  .carousel-dots { gap: 1.1rem; }
  .carousel-dots button { width: 13px; height: 13px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-ctas { width: 100%; }
  .nav-logo img { height: 46px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-layer-aerial { animation: none; opacity: 0; }
  .hero-layer-front { animation: none; opacity: 1; transform: none; }
  .octa-draw { animation: none; stroke-dashoffset: 0; }
  .octa-spin-a, .octa-spin-b { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-scrollcue { display: none; }
  .visit-photo { transform: none !important; }
  .review-card { transition: opacity 0.3s ease; }
}

/* ============================================================
   Subpages
   ============================================================ */

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(171, 141, 98, 0.2), transparent 60%),
    var(--ink-deep);
  color: var(--ivory);
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  max-width: 20ch;
  margin-bottom: 0.9rem;
}

.page-hero h1 em { color: var(--gold-light); }

.page-hero p.lede {
  max-width: 60ch;
  color: rgba(246, 243, 236, 0.85);
  font-size: 1.04rem;
}

.page-hero .hero-octagon {
  width: clamp(260px, 30vw, 420px);
  opacity: 0.35;
  right: -6rem;
}

.crumbs {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.crumbs a { color: inherit; text-decoration: none; }

.crumbs a:hover { text-decoration: underline; }

.crumbs span[aria-hidden] { margin: 0 0.55rem; color: var(--gold-deep); }

/* CTA band (pre-footer on subpages) */

.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(171, 141, 98, 0.2), transparent 55%),
    var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.cta-band h2 { margin-bottom: 0.8rem; }

.cta-band h2 em { color: var(--gold-light); }

.cta-band p { color: rgba(246, 243, 236, 0.82); max-width: 52ch; margin: 0 auto 1.8rem; }

.cta-band .hero-ctas { justify-content: center; }

/* Generic content blocks */

.content-narrow { max-width: 820px; margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.two-col h2 { margin-bottom: 1.1rem; }

.two-col p { color: var(--ink-soft); margin-bottom: 1rem; }

.img-card { border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-card); }

.img-card img { width: 100%; object-fit: cover; }

/* Values trio */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.value-card {
  background: var(--white);
  border: 1px solid rgba(171, 141, 98, 0.2);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: 1.8rem 1.6rem;
}

.value-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.6rem; }

.value-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* Doctor page block */

.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}

.doctor-facts {
  background: var(--ivory-warm);
  border-left: 2px solid var(--gold);
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}

.doctor-facts dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.9rem;
}

.doctor-facts dt:first-child { margin-top: 0; }

.doctor-facts dd { font-size: 0.95rem; color: var(--ink); }

/* Services page */

.svc-group { max-width: var(--maxw); margin: 0 auto clamp(3rem, 6vw, 4.5rem); }

.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(171, 141, 98, 0.3);
  padding-bottom: 0.8rem;
  margin-bottom: 1.6rem;
}

.svc-group-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.svc-group-head .svc-count {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.svc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

.svc-row {
  background: var(--white);
  border: 1px solid rgba(171, 141, 98, 0.18);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.4rem;
}

.svc-row h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.4rem; }

.svc-row p { font-size: 0.92rem; color: var(--ink-soft); }

/* Before / After sliders */

.ba-intro { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.ba-card {
  background: var(--white);
  border: 1px solid rgba(171, 141, 98, 0.22);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: var(--gold-deep);
  font-size: 0.7rem;
}

.ba-tag {
  position: absolute;
  top: 0.8rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(23, 26, 31, 0.72);
  color: var(--ivory);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  pointer-events: none;
}

.ba-tag-before { left: 0.8rem; }

.ba-tag-after { right: 0.8rem; }

.ba-caption { padding: 1.1rem 1.3rem 1.2rem; }

.ba-caption h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.2rem; }

.ba-caption p { font-size: 0.85rem; color: var(--ink-soft); }

.ba-disclaimer {
  max-width: 760px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(171, 141, 98, 0.3);
  padding-top: 1.4rem;
}

/* Reviews page */

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid rgba(171, 141, 98, 0.25);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 1.6rem 2rem;
  max-width: 520px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.rating-summary .rating-num { font-size: 3.2rem; }

.reviews-grid {
  columns: 3;
  column-gap: 1.2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.review-tile {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid rgba(171, 141, 98, 0.2);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.3rem;
  margin: 0 0 1.2rem;
}

.review-tile p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.review-tile footer {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-tile .review-stars { color: var(--gold); font-size: 0.85rem; }

.reviews-more { text-align: center; margin-top: 2.2rem; }

/* Visit page extras */

.visit-page-photos {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
  max-width: var(--maxw);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.visit-page-photos figure { border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }

.visit-page-photos img { width: 100%; height: 100%; object-fit: cover; }

.visit-page-photos figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(23,26,31,0.8), transparent);
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.6rem 1.2rem 0.9rem;
}

/* Active nav link */

.nav-links a.is-current { color: var(--gold-light); }

.nav.is-solid .nav-links a.is-current { color: var(--gold-deep); }

.nav-links a.is-current::after { right: 0; }

@media (max-width: 1023px) {
  .reviews-grid { columns: 2; }
}

@media (max-width: 860px) {
  .two-col, .doctor-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .svc-rows { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .visit-page-photos { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .reviews-grid { columns: 1; }
}
