/* Smile Story Medical Center — concept by Beans Digital
   Palette: ivory / champagne gold / deep espresso.
   Derived from the clinic's real identity: their gold script logo on
   ivory and marble, carried across their official site and interiors. */

@view-transition { navigation: auto; }

:root {
  --ivory: #faf6ee;
  --ivory-2: #f3ecdd;
  --gold: #b3872e;
  --gold-soft: #d6b36a;
  --espresso: #2d2416;
  --espresso-soft: #6b5b41;
  --white: #fffdf8;
  --line: rgba(45, 36, 22, 0.14);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }

body {
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 300;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
strong { font-weight: 500; }

::selection { background: var(--gold-soft); color: var(--espresso); }

/* ---- concept banner ---- */
.concept-banner {
  background: var(--espresso);
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.45rem 1rem;
}
.concept-banner a { color: var(--gold-soft); }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; view-transition-name: brand-mark; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  text-decoration: none;
  color: var(--espresso);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--espresso);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

/* ---- typography ---- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--espresso);
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.rule-center { width: 56px; height: 1px; background: var(--gold); margin: 1.2rem auto; }
.rule-left { width: 56px; height: 1px; background: var(--gold); margin: 1.2rem 0; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 1rem clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(50rem 24rem at 50% -30%, rgba(214, 179, 106, 0.25), transparent 70%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede { margin-top: 1.2rem; color: var(--espresso-soft); font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.btn-line { color: var(--gold); background: transparent; }
.btn-line:hover { background: var(--gold); color: var(--white); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2.6rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.trust .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.trust .lbl { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--espresso-soft); }

/* ---- sections ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 1rem; }
.section.tinted { background: var(--ivory-2); border-block: 1px solid var(--line); }
.section.dark { background: var(--espresso); color: var(--ivory); }
.section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.dark p { color: rgba(250, 246, 238, 0.78); }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.section .sub { color: var(--espresso-soft); max-width: 62ch; margin-top: 0.7rem; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* split layout with photo */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.split .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(45, 36, 22, 0.5);
}
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall img { aspect-ratio: 3 / 4; }
.photo-wide img { aspect-ratio: 16 / 10; }

/* service cards */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 2.2rem; }
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(45, 36, 22, 0.45); }
.svc .glyph {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(214, 179, 106, 0.18);
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.svc .glyph svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.svc p { font-size: 0.93rem; color: var(--espresso-soft); }
.svc ul { margin: 0.6rem 0 0 1.1rem; font-size: 0.93rem; color: var(--espresso-soft); }
.svc ul li { margin-bottom: 0.2rem; }

/* review wall */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.2rem; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0;
  color: var(--gold-soft);
  position: absolute;
  top: 1.6rem;
  left: 1.2rem;
  opacity: 0.6;
}
.quote p { font-size: 0.97rem; padding-top: 0.6rem; }
.quote .stars { color: var(--gold); letter-spacing: 0.18em; margin-bottom: 0.5rem; }
.quote footer { margin-top: 0.9rem; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso-soft); }

/* steps */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 2.2rem; counter-reset: step; }
.step { padding: 1.4rem; border-top: 2px solid var(--gold); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--espresso-soft); }

/* hours + map */
.hours-wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; margin-top: 2rem; }
table.hours { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.hours caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0 0 0.8rem;
}
table.hours th, table.hours td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }
table.hours td:last-child { text-align: right; color: var(--gold); font-weight: 500; }
.open-note { margin-top: 1rem; font-size: 0.92rem; color: var(--espresso-soft); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.map-frame iframe { width: 100%; height: 330px; border: 0; display: block; }

/* contact cards */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 2rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--espresso-soft); font-size: 0.95rem; }
.contact-card a.big { font-size: 1.12rem; font-weight: 500; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1rem;
  background:
    radial-gradient(44rem 22rem at 50% 130%, rgba(214, 179, 106, 0.3), transparent 70%),
    var(--espresso);
  color: var(--ivory);
}
.cta-band h2 { color: var(--ivory); font-size: clamp(2rem, 5.5vw, 3.4rem); }
.cta-band h2 em { color: var(--gold-soft); font-style: italic; }
.cta-band p { color: rgba(250, 246, 238, 0.75); margin: 0.9rem 0 1.8rem; }

/* disclaimer */
.disclaimer {
  max-width: 1140px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--espresso-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

/* footer */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 2.2rem 1rem 5.5rem; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  color: var(--espresso-soft);
  font-size: 0.9rem;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-inner a { color: var(--espresso-soft); }
.footer-inner a:hover { color: var(--gold); }
.credit { color: var(--gold); font-weight: 500; }

/* floating WhatsApp + call */
.float-dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: 0.6rem; }
.float-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 10px 26px rgba(45, 36, 22, 0.3);
}
.float-btn svg { width: 20px; height: 20px; flex: none; }
.float-wa { background: #25d366; color: #0b2a12; }
.float-call { background: var(--espresso); color: var(--ivory); }
.float-btn:hover { filter: brightness(1.07); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html.no-observer .reveal { opacity: 1; transform: none; }

/* inner page head */
.page-head {
  text-align: center;
  padding: clamp(2.8rem, 7vw, 4.8rem) 1rem 2.2rem;
  background:
    radial-gradient(44rem 18rem at 50% -40%, rgba(214, 179, 106, 0.22), transparent 70%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.page-head .lede { color: var(--espresso-soft); max-width: 60ch; margin: 1rem auto 0; }

/* mobile */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .no-js .main-nav { display: flex; position: static; }
  .float-btn span { display: none; }
  .float-btn { padding: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
