:root {
  --teal: #789da8;
  --teal-dark: #527680;
  --ink: #20282b;
  --muted: #697579;
  --cream: #f5f1e9;
  --cream-2: #ece7dc;
  --white: #ffffff;
  --line: rgba(32, 40, 43, 0.12);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(38, 53, 57, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfaf7;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(32,40,43,.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .08em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: .8rem;
}
.brand-text {
  display: grid;
  line-height: 1;
}
.brand-text strong { font-size: 1.18rem; }
.brand-text small {
  font-size: .67rem;
  letter-spacing: .25em;
  margin-top: 5px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .93rem;
}
.main-nav > a:not(.btn):hover { color: var(--teal-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-dark); }
.btn-small { min-height: 42px; padding: 0 18px; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { color: white; border-color: var(--teal-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 9px;
}
.menu-toggle span {
  height: 1px;
  background: var(--ink);
  display: block;
  margin: 6px 0;
}

.hero {
  padding: 84px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(120,157,168,.17), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f2eb 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: .76rem;
}
.hero h1, .section-heading h2, .dentist-copy h2, .contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.5rem);
  line-height: .95;
  max-width: 730px;
}
.hero h1 span { color: var(--teal-dark); }
.hero-text {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.text-link { font-weight: 700; }
.text-link span { margin-left: 8px; color: var(--teal-dark); }
.hero-meta {
  display: flex;
  gap: 42px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-meta div { display: grid; }
.hero-meta span { color: var(--muted); font-size: .9rem; }

.visual-card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 650px;
  background: linear-gradient(160deg, #d9e4e6 0%, #9cb8c0 55%, #789da8 100%);
  border-radius: 36px 36px 120px 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visual-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  filter: blur(2px);
}
.orb-one { width: 260px; height: 260px; top: -70px; right: -55px; }
.orb-two { width: 160px; height: 160px; left: -45px; bottom: 90px; }
.tooth-line {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.tooth-line svg { width: 48%; }
.tooth-line path {
  fill: none;
  stroke: rgba(255,255,255,.82);
  stroke-width: 4;
}
.visual-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.visual-caption span { font-weight: 800; letter-spacing: .16em; }
.visual-caption small { opacity: .85; }

.trust-strip {
  background: var(--ink);
  color: white;
}
.trust-grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-grid div {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
  display: grid;
  align-content: center;
  gap: 5px;
}
.trust-grid div:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.trust-grid span { color: #9cb8c0; font-size: .75rem; letter-spacing: .12em; }
.trust-grid strong { font-size: .95rem; font-weight: 600; }

.section { padding: 110px 0; }
.section-tint { background: var(--cream); }
.section-dark { background: #263438; color: white; }
.section-heading h2, .dentist-copy h2, .contact-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
}
.section-heading.narrow { max-width: 720px; }
.section-heading > p:last-child { color: var(--muted); max-width: 620px; }
.section-heading.light > p:last-child { color: rgba(255,255,255,.68); }
.section-heading.light .eyebrow { color: #9cb8c0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 90px;
  align-items: start;
}
.prose { font-size: 1.08rem; color: var(--muted); }
.prose p:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  gap: 18px;
}
.treatments-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
}
.treatment-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(32,40,43,.07);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 230px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.treatment-card span { color: var(--teal-dark); font-size: .72rem; letter-spacing: .12em; }
.treatment-card h3 { margin: 30px 0 10px; line-height: 1.25; }
.treatment-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.dentist-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: center;
}
.portrait-placeholder {
  min-height: 560px;
  background: linear-gradient(150deg, #dfe9e8, #abc2c7);
  border-radius: 30px 30px 110px 30px;
  display: grid;
  place-items: center;
}
.portrait-inner {
  color: white;
  text-align: center;
  display: grid;
  gap: 12px;
}
.portrait-inner span {
  font-family: Georgia, serif;
  font-size: 6rem;
  opacity: .65;
}
.qualification {
  color: var(--teal-dark);
  font-weight: 700;
}
.dentist-copy p:not(.eyebrow):not(.qualification) { color: var(--muted); max-width: 650px; }

.clinic-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 18px;
  margin-top: 50px;
}
.gallery-card {
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.16), rgba(120,157,168,.32)),
    #44575d;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.08);
}
.gallery-card.large { grid-row: 1 / 3; }

.faq-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 90px;
}
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal-dark);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: -7px 0 25px;
  color: var(--muted);
  max-width: 760px;
}

.contact-section { background: #e7efef; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 80px;
  align-items: start;
}
.contact-copy p:not(.eyebrow) { color: var(--muted); max-width: 600px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.contact-card {
  background: white;
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-card > div + div { margin-top: 25px; }
.contact-card small {
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: .12em;
}
.contact-card p { margin: 6px 0 0; }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }
.map-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 800;
}

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #1f292c;
  color: white;
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr .6fr 1.4fr;
  gap: 50px;
}
.footer-brand .brand-mark { color: white; border-color: rgba(255,255,255,.4); }
.footer-brand .brand-text small { color: rgba(255,255,255,.58); }
.site-footer p { color: rgba(255,255,255,.62); }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links a:hover { color: #9cb8c0; }
.footer-note { text-align: right; }
.fine-print { font-size: .78rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    padding: 22px;
    border-radius: 18px;
    background: #fbfaf7;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .hero-grid, .two-col, .dentist-grid, .faq-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding-top: 62px; }
  .hero-visual { max-width: 650px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .hero { padding: 46px 0 65px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .hero-meta { gap: 18px; justify-content: space-between; }
  .visual-card { border-radius: 26px 26px 80px 26px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-left: 1px solid rgba(255,255,255,.12); }
  .treatments-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 430px; }
  .clinic-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .gallery-card.large { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .contact-actions .btn { width: 100%; }
}
/* =========================
   OUR STORY
========================= */

.story-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  margin-bottom: 30px;
}

.story-point {
  padding: 26px 24px;
  border: 1px solid rgba(31, 51, 56, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.story-point span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.story-point h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.story-point p {
  margin: 0;
  line-height: 1.7;
}

.story-closing {
  margin-top: 8px;
}

.story-tagline {
  margin-top: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
}

@media (max-width: 640px) {
  .story-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story-point {
    padding: 22px 20px;
  }
}

/* Real clinic photography */
.hero-photo { margin: 0; position: relative; overflow: hidden; border-radius: 32px 32px 100px 32px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: #e9e5dc; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 55px 25px 25px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.clinic-gallery { grid-template-rows: 250px 250px; }
.gallery-card { position: relative; display: block; margin: 0; overflow: hidden; background: #44575d; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 35px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.66)); color: #fff; font-weight: 600; }
@media(max-width:640px) { .hero-photo { aspect-ratio: 5 / 4; border-radius: 24px 24px 65px 24px; } .clinic-gallery { grid-template-rows: repeat(4, 220px); } }


/* TIME DENTAL homepage hero photo — show reception and wall logo */
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 42px; }
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-photo img { object-position: 72% center; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .hero-photo { aspect-ratio: 3 / 2; }
  .hero-photo img { object-position: 65% center; }
}
@media (max-width: 640px) {
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-photo img { object-position: 72% center; }
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portrait-placeholder {
  overflow: hidden;
}

.dentist-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: inherit;
}

