/* truedentalwi.com — the truedentaldpo.com look (cream ground, Fraunces + Inter + JetBrains Mono, navy and blue). */
:root {
  --cream: #f3ecdf;
  --cream-2: #ebe1cf;
  --paper: #faf5ea;
  --ink: #001c3b;
  --mute: #566076;
  --accent: #0274ec;
  --accent-text: #0560c9;
  --card: #ffffff;
  --hair: rgba(0,28,59,0.1);
  --line: rgba(0,28,59,0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
em { font-style: italic; color: var(--accent-text); font-weight: 500; }
a { color: var(--accent-text); }
[id] { scroll-margin-top: 24px; }
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 48px; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ——— Top bar ——— */
nav.top { padding: 24px 0; display: flex; align-items: center; gap: 30px; }
nav.top .brand { display: inline-flex; }
nav.top .wm { height: 52px; width: auto; }
nav.top a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
nav.top a:hover { color: var(--accent-text); }
nav.top .links { display: contents; }
nav.top .sp { flex: 1; }
nav.top .go, .btn.primary { background: var(--ink); color: var(--paper); }
nav.top .go { padding: 11px 20px; border-radius: 999px; }
nav.top .go:hover { color: var(--paper); background: #062a52; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: var(--mute); text-decoration: none; }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 44px; font: 500 14px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.menu-panel { display: none; }

/* ——— Shared type ——— */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font: 500 14px 'Inter', sans-serif; border: 0; cursor: pointer; }
.btn.primary:hover { background: #062a52; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.light { background: var(--paper); color: var(--ink); }
.meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mute); letter-spacing: 0.04em; line-height: 1.6; }

/* ——— Hero ——— */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 64px; padding: 48px 0 80px; align-items: end; }
h1.hero-h { font-family: 'Fraunces', serif; font-weight: 300; font-size: 104px; line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 0; text-wrap: pretty; }
.lede { font-family: 'Fraunces', serif; font-weight: 300; font-size: 21px; line-height: 1.45; color: var(--mute); max-width: 50ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.postcard { grid-column: 1 / -1; background: var(--paper); border-radius: 28px; padding: 24px; border: 1px solid var(--hair); box-shadow: 0 20px 50px rgba(0,28,59,0.08); display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.postcard .scene { border-radius: 20px; aspect-ratio: 1920 / 842; overflow: hidden; border: 1px solid var(--hair); background: var(--cream-2); }
.postcard .scene img { width: 100%; height: 100%; object-fit: cover; }
.card-details { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 14px 56px; padding: 2px 8px 4px; }
.detail .l { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.detail a { display: block; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--accent-text); text-decoration: none; margin-top: 4px; white-space: nowrap; }
.detail:last-child { justify-self: end; text-align: right; }

/* ——— Sections ——— */
.section { padding: 88px 0; border-top: 1px solid var(--hair); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .welcome h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 58px; line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 0; max-width: 18ch; text-wrap: balance; }
.sec-head p { font-family: 'Fraunces', serif; font-weight: 300; font-size: 19px; line-height: 1.5; color: var(--mute); margin: 0; max-width: 52ch; }

/* Schedule appointment */
.book { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.book a, .book button { background: var(--card); border: 1px solid var(--hair); border-radius: 24px; padding: 28px 28px 26px; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 26px; font: inherit; transition: transform .15s, box-shadow .15s; }
.book a:hover, .book button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,28,59,0.08); }
.book .n { font-family: 'Fraunces', serif; font-weight: 400; font-size: 30px; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: baseline; }
.book .n span { color: var(--accent-text); font-family: 'Inter', sans-serif; font-size: 20px; }
.book .s { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--mute); text-transform: uppercase; }
.book .mailcard { background: var(--ink); color: var(--paper); border-color: transparent; }
.book .mailcard .n span { color: #9cc7ff; }
.book .mailcard .s { color: rgba(243,236,223,0.7); text-transform: none; letter-spacing: 0.04em; }

/* Reviews */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 48px 22px; margin: 0 -48px; scrollbar-width: thin; }
.review { flex: 0 0 360px; scroll-snap-align: center; background: var(--card); border: 1px solid var(--hair); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.review .stars { height: 16px; width: auto; align-self: flex-start; }
.review p { font-family: 'Fraunces', serif; font-weight: 300; font-style: italic; font-size: 18px; line-height: 1.5; margin: 0; flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.review .who img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; }
.review .who b { display: block; font-weight: 600; font-size: 14px; }
.review .who span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }

/* Welcome */
.welcome { background: var(--paper); border: 1px solid var(--hair); border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
.welcome h2 { margin: 0 0 26px; max-width: 16ch; }
.welcome p { font-size: 16px; line-height: 1.65; color: var(--mute); margin: 0 0 16px; max-width: 62ch; }
.welcome .btn { margin-top: 14px; }
.slides { position: relative; aspect-ratio: 630 / 720; border-radius: 20px; overflow: hidden; border: 1px solid var(--hair); background: var(--cream-2); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.slides img.on { opacity: 1; }
.dots { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; margin: 0 -14px; }
.dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.dots button.on::before { background: var(--accent); }

/* Marquee band */
.band { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; margin-top: 88px; }
.band div { display: flex; width: max-content; animation: slide 40s linear infinite; }
.band span { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; padding: 0 34px; white-space: nowrap; }
.band span::after { content: '•'; margin-left: 68px; color: #9cc7ff; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { background: var(--paper); border: 1px solid var(--hair); border-top: 3px dotted rgba(2,116,236,0.55); border-radius: 22px; padding: 28px 26px; display: flex; flex-direction: column; gap: 34px; min-height: 190px; justify-content: space-between; }
.svc img { height: 52px; width: auto; align-self: flex-start; }
.svc h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.svc h3 small { display: block; font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--accent-text); margin-top: 4px; }

/* Smile gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 1px solid var(--hair); }
.gallery .wide { grid-column: span 2; aspect-ratio: 1100 / 273; }
.gallery .sq { aspect-ratio: 1; }

/* Team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.person { background: var(--card); border: 1px solid var(--hair); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; object-position: 50% 12%; }
.person div { padding: 18px 20px 22px; }
.person h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.person p { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; line-height: 1.6; text-transform: uppercase; color: var(--mute); margin: 0; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { background: var(--card); border: 1px solid var(--hair); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.office > img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.office .in { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.office h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.office .tel { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.office .row { font-size: 15px; line-height: 1.6; color: var(--mute); }
.office .row a { color: var(--mute); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.office .row a:hover { color: var(--accent-text); }
.office .row b { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }
.office .hours { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.office .suggest { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }

/* Contact band */
.story { margin: 0 0 88px; background: var(--ink) center / cover no-repeat; color: var(--paper); border-radius: 32px; padding: 88px 56px; text-align: center; position: relative; overflow: hidden; }
.story::before { content: ''; position: absolute; inset: 0; background: rgba(0,28,59,0.78); }
.story > * { position: relative; }
.story h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; margin: 0 auto 22px; max-width: 16ch; text-wrap: balance; }
.story h2 em { color: #9cc7ff; font-weight: 400; }
.story p { font-family: 'Fraunces', serif; font-weight: 300; font-size: 20px; line-height: 1.5; color: rgba(243,236,223,0.86); max-width: 62ch; margin: 0 auto 34px; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 48px 0 56px; }
.foot { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 48px; align-items: start; }
.foot img { height: 78px; width: auto; }
.foot h4 { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 32px; }
.foot li a:hover { color: var(--accent-text); }
.foot li span { color: var(--mute); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; gap: 28px; align-items: center; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--mute); }
.legal .sp { flex: 1; }
.legal a { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.legal a:hover { color: var(--accent-text); }
.legal a.pp { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Appointment form popup */
dialog { border: 0; border-radius: 28px; padding: 0; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0,28,59,0.35); }
dialog::backdrop { background: rgba(0,28,59,0.55); }
dialog form { padding: 36px 36px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
dialog h3 { grid-column: 1 / -1; font-family: 'Fraunces', serif; font-weight: 300; font-size: 36px; letter-spacing: -0.02em; margin: 0 40px 6px 0; }
dialog label { display: flex; flex-direction: column; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); min-width: 0; }
dialog label.full, dialog .note, dialog .say, dialog .btn { grid-column: 1 / -1; }
dialog input, dialog textarea { font: 400 16px 'Inter', sans-serif; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 46px; width: 100%; }
dialog textarea { min-height: 96px; resize: vertical; }
dialog input:focus, dialog textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
dialog .note { font-size: 14px; color: var(--mute); margin: 0; }
dialog .say { font-size: 15px; line-height: 1.55; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--hair); }
dialog .say[hidden] { display: none; }
dialog .btn { justify-content: center; min-height: 48px; }
dialog .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }

/* ——— Privacy policy and plain pages ——— */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 96px; }
.doc h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 10px; }
.doc .date { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin: 0 0 36px; }
.doc h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 28px; letter-spacing: -0.015em; margin: 48px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--paper); border: 1px solid var(--hair); border-top: 3px dotted rgba(2,116,236,0.55); border-radius: 22px; padding: 26px 30px; margin: 20px 0; }
.doc .box p:last-child, .doc .box ul:last-child { margin-bottom: 0; }

/* ——— Smaller screens ——— */
@media (max-width: 1180px) {
  h1.hero-h { font-size: 80px; }
  .card-details { gap: 14px 36px; }
  .detail a { font-size: 19px; }
  .services, .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .wide { grid-column: span 3; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .book { grid-template-columns: repeat(2, 1fr); }
  nav.top { gap: 20px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  nav.top { gap: 12px; padding: 16px 0; flex-wrap: wrap; }
  nav.top .wm { height: 44px; }
  nav.top .links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  nav.top .go, nav.top .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .lang a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 14px; }
  .menu-panel.open { display: block; flex-basis: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 22px; padding: 14px 22px 20px; }
  .menu-panel a { display: flex; align-items: center; min-height: 46px; font-size: 16px; border-bottom: 1px solid var(--hair); }
  .menu-panel h4 { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 18px 0 2px; }
  .menu-panel a span { color: var(--mute); margin-right: 10px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 56px; }
  h1.hero-h { font-size: 64px; margin: 16px 0 0; }
  .lede { font-size: 19px; margin-bottom: 24px; }
  .postcard { padding: 16px; border-radius: 22px; margin-top: 8px; }
  .postcard .scene { aspect-ratio: 16 / 10; border-radius: 14px; }
  .postcard .scene img { object-position: 70% 50%; }
  .card-details { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .detail:last-child { justify-self: start; text-align: left; grid-column: 1 / -1; }
  .detail a { font-size: 19px; }
  .section { padding: 60px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .sec-head h2, .welcome h2 { font-size: 42px; }
  .rail { padding: 4px 24px 18px; margin: 0 -24px; }
  .review { flex-basis: 84vw; max-width: 360px; padding: 24px; }
  .welcome { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; border-radius: 24px; }
  .band { margin-top: 60px; }
  .services, .gallery, .team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .wide { grid-column: span 2; }
  .svc { padding: 20px 18px; min-height: 160px; gap: 22px; }
  .svc h3 { font-size: 19px; }
  .svc h3 small { font-size: 14px; }
  .person h3 { font-size: 17px; }
  .person div { padding: 14px 14px 18px; }
  .offices { grid-template-columns: 1fr; }
  .office .tel, .office .suggest { display: inline-flex; align-items: center; min-height: 44px; }
  .office .row a { display: inline-block; padding: 8px 0; }
  .story { padding: 56px 24px; border-radius: 24px; margin-bottom: 60px; }
  .story h2 { font-size: 40px; }
  .story p { font-size: 17px; }
  .foot { grid-template-columns: 1fr; gap: 30px; }
  .foot li a { min-height: 44px; }
  .detail a { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .btn { min-height: 48px; }
  .doc h1 { font-size: 44px; }
  .doc a { display: inline-block; padding: 10px 0; }
  dialog form { grid-template-columns: 1fr; padding: 30px 22px 24px; }
  dialog h3 { font-size: 30px; }
}
@media (max-width: 540px) {
  h1.hero-h { font-size: 52px; }
  .book { grid-template-columns: 1fr; gap: 12px; }
  .book a, .book button { padding: 22px; gap: 14px; }
  .card-details { grid-template-columns: 1fr; gap: 2px; }
  .detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .detail a { font-size: 17px; }
  .legal { flex-direction: column; align-items: flex-start; gap: 4px; }
  .legal .sp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band div { animation: none; }
  .slides img { transition: none; }
}
