:root {
  --bg: #f6fbfb;
  --surface: #ffffff;
  --surface-soft: #eaf6f4;
  --ink: #17313a;
  --muted: #60747a;
  --teal: #0d625f;
  --teal-2: #1b7d77;
  --teal-soft: #dff1ef;
  --gold: #c99b5a;
  --line: rgba(23, 49, 58, .12);
  --shadow: 0 24px 60px rgba(27, 89, 86, .12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 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: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 110px 0; }

.skip-link {
  position: fixed; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 251, 251, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 49, 58, .08);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 44px; height: 44px; color: var(--teal-2); flex: 0 0 44px; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: .92rem; letter-spacing: -.01em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { text-decoration: none; font-size: .92rem; font-weight: 700; color: #3d555c; transition: color .2s ease, transform .2s ease; }
.primary-nav a:hover { color: var(--teal); }
.primary-nav .nav-cta { color: white; background: var(--teal); padding: 12px 18px; border-radius: 999px; }
.primary-nav .nav-cta:hover { color: white; transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s ease; }

.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 86px); display: grid; align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 155, 90, .16), transparent 28%),
    linear-gradient(135deg, #f7fbfb 0%, #edf7f6 55%, #e2f2f0 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 110px;
  background: linear-gradient(to bottom, transparent, rgba(246,251,251,.95)); pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-2); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .ortho-intro h2, .contact h2 { margin: 18px 0 0; letter-spacing: -.045em; line-height: .98; }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 6.3rem); max-width: 760px; }
.hero h1 span { color: var(--teal-2); }
.hero-role { margin: 28px 0 0; max-width: 700px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 720; color: #385259; }
.hero-text { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: white; box-shadow: 0 14px 30px rgba(13, 98, 95, .22); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.wa-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.visual-card-main {
  width: min(100%, 455px); aspect-ratio: .86; border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(231,246,244,.9));
  border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow); padding: 30px;
  display: grid; align-content: space-between; overflow: hidden; position: relative;
}
.visual-card-main::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(44,133,126,.08); right: -80px; top: -90px; }
.tooth-illustration { width: 78%; margin: 0 auto; align-self: center; filter: drop-shadow(0 20px 30px rgba(27,89,86,.08)); }
.visual-label { display: grid; gap: 3px; }
.visual-label span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.visual-label strong { font-size: 1.65rem; letter-spacing: -.03em; }
.mini-card { position: absolute; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 16px 40px rgba(30,89,86,.12); border-radius: 18px; padding: 14px 18px; font-size: .88rem; }
.mini-card-a { left: -18px; top: 112px; }
.mini-card-b { right: -12px; bottom: 82px; }
.mini-icon { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: #f8efe2; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-orb-a { width: 380px; height: 380px; background: rgba(51, 142, 135, .07); left: -180px; top: 8%; }
.hero-orb-b { width: 240px; height: 240px; border: 1px solid rgba(201,155,90,.25); right: 4%; bottom: -120px; }

.section-heading { max-width: 690px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading h2, .ortho-intro h2 { font-size: clamp(2.5rem, 4.7vw, 4.7rem); }
.section-heading p { margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; }

.specialty { background: var(--bg); }
.specialty-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.specialty-card { min-height: 220px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.7); display: grid; align-content: space-between; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.specialty-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(29,83,81,.08); border-color: rgba(28,125,119,.22); }
.specialty-card.featured { background: var(--teal); color: white; border-color: transparent; box-shadow: 0 18px 44px rgba(13,98,95,.18); }
.icon-shell { width: 54px; height: 54px; padding: 12px; border-radius: 16px; color: var(--teal-2); background: var(--teal-soft); }
.featured .icon-shell { color: white; background: rgba(255,255,255,.12); }
.specialty-card h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }

.orthodontics { background: #143f43; color: white; position: relative; overflow: hidden; }
.orthodontics::before { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; left: -250px; bottom: -250px; }
.ortho-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.ortho-intro { position: sticky; top: 130px; }
.ortho-intro .eyebrow { color: #9edbd6; }
.ortho-intro h2 { max-width: 420px; }
.ortho-line { width: 88px; height: 3px; background: var(--gold); margin-top: 32px; }
.ortho-cards { display: grid; gap: 14px; }
.ortho-card { display: grid; grid-template-columns: 65px 1fr auto; gap: 24px; align-items: center; min-height: 128px; padding: 25px 28px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); transition: background .2s ease, transform .2s ease; }
.ortho-card:hover { background: rgba(255,255,255,.09); transform: translateX(4px); }
.ortho-card .number { color: #8ecdc7; font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.ortho-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.ortho-card a { text-decoration: none; color: white; font-size: .83rem; font-weight: 800; white-space: nowrap; }
.ortho-card a span { color: var(--gold); margin-left: 8px; }

.treatments { background: #f7fbfb; }
.treatment-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.treatment-card { min-height: 210px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 25px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.treatment-card::after { content: ""; position: absolute; right: -52px; top: -52px; width: 120px; height: 120px; border-radius: 50%; background: var(--surface-soft); transition: transform .3s ease; }
.treatment-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(29,83,81,.08); border-color: rgba(28,125,119,.22); }
.treatment-card:hover::after { transform: scale(1.25); }
.t-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: .72rem; font-weight: 900; position: relative; z-index: 2; }
.treatment-card h3 { margin: 30px 0 0; max-width: 250px; line-height: 1.18; font-size: 1.27rem; letter-spacing: -.025em; position: relative; z-index: 2; }
.treatment-card a { margin-top: auto; text-decoration: none; font-size: .82rem; font-weight: 850; color: var(--teal-2); position: relative; z-index: 2; }
.treatment-card a span { margin-left: 5px; color: var(--gold); }

.contact { padding-top: 45px; background: #f7fbfb; }
.contact-panel { position: relative; overflow: hidden; min-height: 380px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #0d625f, #16494e); color: white; padding: 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; box-shadow: 0 26px 60px rgba(13,98,95,.18); }
.contact-decoration { position: absolute; right: 25%; top: -20px; width: 220px; color: white; transform: rotate(12deg); pointer-events: none; }
.eyebrow.light { color: #b4e1dc; }
.contact h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); }
.contact-copy p { max-width: 620px; color: rgba(255,255,255,.74); }
.contact-action { position: relative; z-index: 2; justify-self: end; width: min(100%, 360px); display: grid; gap: 8px; padding: 28px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.contact-action > span { color: rgba(255,255,255,.68); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.contact-action strong { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.btn-light { margin-top: 16px; color: var(--teal); background: white; }

.site-footer { padding: 38px 0 46px; background: #f7fbfb; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 30px; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer-inner strong { font-size: .96rem; }
.footer-inner p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.footer-inner a { text-decoration: none; font-size: .86rem; font-weight: 800; color: var(--teal); }

.floating-wa { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1f9d74; color: white; box-shadow: 0 12px 30px rgba(31,157,116,.30); transition: transform .2s ease, box-shadow .2s ease; }
.floating-wa:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 34px rgba(31,157,116,.34); }
.floating-wa svg { width: 30px; }

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-in .55s ease both; }
  @keyframes reveal-in {
    from { opacity: .001; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 980px) {
  .section-pad { padding: 86px 0; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 86px 0 auto; background: rgba(246,251,251,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 24px 20px 30px; display: grid; gap: 8px; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .28s ease; }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 12px 6px; font-size: 1rem; }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { min-height: 500px; max-width: 620px; width: 100%; margin-inline: auto; }
  .mini-card-a { left: 3%; }
  .mini-card-b { right: 2%; }
  .ortho-layout { grid-template-columns: 1fr; gap: 44px; }
  .ortho-intro { position: static; }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .specialty-card:last-child { grid-column: 1 / -1; }
  .treatment-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 50px; }
  .contact-action { justify-self: start; }
  .contact-decoration { right: -30px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-pad { padding: 70px 0; }
  .header-inner { min-height: 76px; }
  .primary-nav { inset: 76px 0 auto; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy small { font-size: .65rem; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-visual { min-height: 410px; }
  .visual-card-main { width: 82%; border-radius: 30px; padding: 22px; }
  .mini-card { font-size: .76rem; padding: 11px 13px; }
  .mini-card-a { top: 62px; left: 0; }
  .mini-card-b { bottom: 50px; right: 0; }
  .specialty-grid, .treatment-grid { grid-template-columns: 1fr; }
  .specialty-card:last-child { grid-column: auto; }
  .specialty-card { min-height: 180px; }
  .ortho-card { grid-template-columns: 46px 1fr; gap: 12px 16px; padding: 22px; }
  .ortho-card a { grid-column: 2; white-space: normal; }
  .contact-panel { padding: 38px 24px; border-radius: 26px; }
  .contact h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .contact-action { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .floating-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: .76rem; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: 2.72rem; }
  .mini-card { display: none; }
  .visual-card-main { width: 92%; }
}
