/* Drs. Wong & Partners Dental Surgeons — site stylesheet.
   Tokens: ink #10232a, teal #0b7a66 (actions, links), teal-bright #00b19e (accents), sky #1ba6db (logo blue, emergency), mint #e6f4f1, mist #f3f6f7.
   Type: Plus Jakarta Sans. Grid: 1120px container, 24px gutters, 72/48px section rhythm. */

:root {
  --ink: #10232a; --ink-2: #3b4f56; --muted: #5f7076;
  --teal: #0b7a66; --teal-deep: #075c4d; --teal-bright: #00b19e; --sky: #1ba6db; --sky-deep: #0d7fb0;
  --mint: #e6f4f1; --mist: #f3f6f7; --line: #d7e3e0; --white: #fff;
  --radius: 14px; --radius-sm: 8px;
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px; --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--white); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { left: 8px; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid var(--teal); line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--mint); color: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--teal-deep); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 0; }

/* --- header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand img { width: 172px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; margin: 0; }
.site-nav > ul > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--ink-2); font-weight: 500; text-decoration: none; border-radius: var(--radius-sm); }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"] { color: var(--teal-deep); background: var(--mint); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.sub-toggle::after { content: ""; position: absolute; left: 11px; top: 17px; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.sub { position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; list-style: none; margin: 0; display: none; box-shadow: 0 12px 32px rgba(16,35,42,.10); }
.sub a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; }
.sub a:hover { background: var(--mint); color: var(--teal-deep); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.header-cta { min-height: 44px; padding: 10px 18px; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* --- breadcrumb --- */
.breadcrumb { font-size: 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 2px; }
.breadcrumb li { margin: 0; display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin: 0 8px; }
.breadcrumb a { display: inline-block; padding: 10px 2px; min-height: 44px; text-decoration: none; color: var(--muted); }
.breadcrumb a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.breadcrumb a:hover { color: var(--teal-deep); text-decoration: underline; }

/* --- sections --- */
.section { padding: 72px 0; }
.section.wash { background: var(--mint); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.prose { max-width: 800px; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead, .lead { font-size: 1.2rem; color: var(--ink-2); }
.tagline { color: var(--teal); font-weight: 500; font-size: 1.12rem; }
.inline-media, .wide-media { margin: 1.5em 0; }
.inline-media img, .wide-media img, .card-media img { border-radius: var(--radius); }
.video-frame video, .video-frame iframe { width: 100%; border-radius: var(--radius); background: #000; }
.ratio { aspect-ratio: 16 / 9; }
.ratio iframe { width: 100%; height: 100%; border: 0; }

/* --- hero --- */
.hero { background: linear-gradient(180deg, var(--mint) 0%, #f2f9f7 100%); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero.has-media .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; }
.hero .tagline { margin-top: -0.2em; }
.hero-media video, .hero-media img { border-radius: var(--radius); box-shadow: 0 24px 48px rgba(11,122,102,.18); }
body.inner .hero { padding: 40px 0 52px; }
body.inner .hero h1 { max-width: 20ch; }

/* --- bands --- */
.band.emergency { background: var(--sky); color: var(--white); }
.band.emergency .container { padding-top: 14px; padding-bottom: 14px; }
.band.emergency p { margin: 0; font-size: 1.02rem; }
.band.emergency a { color: var(--white); font-weight: 800; text-decoration-thickness: 2px; }
.band.clinics { background: var(--teal-deep); color: var(--white); padding: 72px 0; }
.clinics-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.band.clinics h2 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: -0.3em; }
.band.clinics .big { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--teal-bright); margin: 0; }
.band.clinics p { color: rgba(255,255,255,.88); }
.states { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.states li { margin: 0; padding: 10px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 500; }
.band.cta { background: var(--mist); border-top: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-row h2 { margin-bottom: 0.25em; }
.cta-row p { margin: 0; color: var(--ink-2); }
.cta-row .actions { margin: 0; }

/* --- cards & grids --- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h2, .card h3 { font-size: 1.22rem; margin-bottom: 0.4em; }
.card p { color: var(--ink-2); margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card.value { text-align: left; }
.card.value .icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--mint); color: var(--teal); margin-bottom: 16px; }
.card.value .icon svg { width: 26px; height: 26px; }
.card.service { border-top: 4px solid var(--teal-bright); display: flex; flex-direction: column; }
.card.service h3 a { color: var(--ink); text-decoration: none; }
.card.service h3 a:hover { color: var(--teal-deep); }
.card.service .tagline { font-size: 1rem; }
.card.service .more { margin-top: auto; padding-top: 8px; font-weight: 600; }
.card.feature { padding: 0; overflow: hidden; }
.card.feature .card-body { padding: 24px 28px 28px; }
.card.feature .card-media { margin: 0; }
.card.feature .card-media img { border-radius: 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card.review { background: var(--white); min-width: 320px; scroll-snap-align: start; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-name { font-weight: 700; }
.stars { color: #e0a500; letter-spacing: 2px; font-size: 0.95rem; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-color: var(--teal) var(--mist); }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo { position: relative; display: block; text-decoration: none; color: var(--ink); }
.photo span { display: block; margin-top: 10px; font-weight: 700; }
.photo:hover span { color: var(--teal-deep); }
.logos { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.logos img { max-height: 64px; width: auto; }
.logos-section { padding: 40px 0; }

/* --- FAQ --- */
.faq { margin: 0.5em 0 1em; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; color: var(--teal); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 18px 14px; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* --- content components carried over --- */
.wong-callout { background: var(--white); border-left: 4px solid var(--teal-bright); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1em 0 1.5em; }
.wong-table-wrap { overflow-x: auto; margin: 0.8em 0 1.4em; }
.wong-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.wong-table th, .wong-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.wong-table th { background: var(--mist); }
.wong-faq-list { margin: 0.5em 0 1.5em; }
.wong-faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 10px; }
.wong-faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; position: relative; min-height: 48px; }
.wong-faq summary::-webkit-details-marker { display: none; }
.wong-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; color: var(--teal); }
.wong-faq[open] summary::after { content: "\2013"; }
.wong-faq-answer { padding: 0 18px 14px; color: var(--ink-2); }
.wong-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0.5em; }
.wong-cta .elementor-button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid var(--teal); }
.wong-cta .wong-btn-outline { background: transparent; color: var(--teal); }
.wong-clinic-grid, .wong-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0.6em 0 1.6em; }
.wong-clinic { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.wong-clinic h4, .wong-clinic h2 { margin: 0 0 0.4em; font-size: 1.05rem; }
.wong-clinic-address { color: var(--muted); font-size: 0.95em; }
.wong-clinic-links a { display: inline-block; margin: 6px 16px 0 0; padding: 8px 0; font-weight: 600; min-height: 44px; }
.wong-lead { font-size: 1.15rem; color: var(--ink-2); }

/* --- footer --- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 0.9em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; display: inline-block; padding: 7px 0; min-height: 40px; }
.site-footer a:hover { color: var(--teal-bright); text-decoration: underline; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 16px; background: var(--white); padding: 8px 10px; border-radius: var(--radius-sm); }
.footer-brand p { font-size: 0.95rem; }
.footer-contact p { margin-bottom: 0.6em; }
.footer-contact span { font-size: 0.9rem; color: rgba(255,255,255,.6); }
.footer-contact .social a { margin-right: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.9rem; }
.footer-legal p { margin: 0; }
.footer-legal a { margin-right: 16px; padding: 8px 0; }

/* --- responsive --- */
@media (max-width: 960px) {
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clinics-grid { grid-template-columns: 1fr; }
  .hero.has-media .hero-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 8px; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { width: 100%; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; width: 100%; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .header-cta { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-strip { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .hero { padding: 36px 0 44px; }
  .brand img { width: 140px; }
  .review-track { grid-auto-columns: 85%; }
  .cta-row { padding-top: 40px; padding-bottom: 40px; }
}

/* --- refinements after first review --- */
.site-nav > ul > li > a { white-space: nowrap; padding: 10px 11px; font-size: 15.5px; }
.site-nav > ul { gap: 2px; }
.brand img { width: 160px; }
.services .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; column-gap: 32px; align-items: start; }
.services .card:last-child:nth-child(3n + 1) h3 { grid-row: 1; }
.services .card:last-child:nth-child(3n + 1) .tagline { grid-row: 2; }
.services .card:last-child:nth-child(3n + 1) > p:not(.tagline):not(.more) { grid-column: 2; grid-row: 1 / span 2; }
.services .card:last-child:nth-child(3n + 1) .more { grid-column: 1 / -1; }
.review-track { align-items: start; }
.card.review { height: auto; }
.prose { max-width: 820px; }
.grid.cols-2 .card.feature h2 { font-size: 1.22rem; }
.logos-title { text-align: center; font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.wong-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wong-clinic-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.wong-clinic-links a { margin: 0; padding: 8px 0; min-height: 40px; }
.wong-clinic { padding: 16px 18px; }
.wong-clinic-address { margin-bottom: 4px; }
.more a { font-weight: 600; }
@media (max-width: 960px) { .services .card:last-child:nth-child(3n + 1) { display: block; } }
@media (max-width: 640px) { .wong-contact-grid { grid-template-columns: 1fr; } }
.video-link { display: block; position: relative; max-width: 720px; margin: 0 0 1.5em; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.video-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.video-link-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(0deg, rgba(16,35,42,.85), rgba(16,35,42,0)); color: var(--white); font-weight: 700; }

/* --- contrast and polish, final round --- */
.band.emergency { background: #0a6f9c; }
.stars { color: #9a6b00; }
.band.clinics .big { color: #a8ede2; }
.brand img { width: 160px; height: 80px; object-fit: contain; }
.reviewed { padding: 0 0 24px; }
.reviewed p { max-width: 820px; margin: 0; font-size: 0.9rem; color: var(--muted); }
.card.value h3 { margin-top: 0; }
