/* Waterford 2026 design — loaded only on pages using the "Waterford 2026" template. */

:root {
  --wo-ink: #1F2A2A;
  --wo-muted: #4C5757;
  --wo-teal: #23705F;
  --wo-teal-dark: #1A5448;
  --wo-brand: #52B09C;
  --wo-brand-ink: #102421;
  --wo-mint: #E3F2EE;
  --wo-soft: #F3F8F6;
  --wo-line: #E3E9E7;
  --wo-border: #CFDAD6;
  --wo-ring: #C7CDCC;
  --wo-dark2: #2B3838;
  --wo-mint-text: #8FD1C1;
  --wo-light-text: #D5DFDC;
  --wo-pale: #E1F2EC;
  --wo-gold: #C98A12;
  --wo-display: 'Marcellus', Georgia, serif;
  --wo-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wo-radius: 22px;
  --wo-radius-lg: 28px;
}

body.wo2026 { margin: 0; background: #FFFFFF; }

.wo { font-family: var(--wo-body); color: var(--wo-ink); background: #FFFFFF; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wo *, .wo *::before, .wo *::after { box-sizing: border-box; }
.wo img { max-width: 100%; height: auto; display: block; }
.wo a { color: var(--wo-teal); }
.wo a:hover { color: var(--wo-teal-dark); }
.wo :where(h1, h2, h3, p, ul, ol, dl, figure) { margin: 0; }
.wo :focus-visible { outline: 3px solid var(--wo-brand); outline-offset: 3px; border-radius: 6px; }

.wo-sr, .wo-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wo-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; background: #FFFFFF; padding: 12px 18px; border-radius: 12px; }

.wo-container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.wo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.wo-btn--sm { min-height: 48px; padding: 0 20px; font-size: 16px; }
.wo-btn--lg { min-height: 56px; padding: 0 28px; }
.wo .wo-btn--primary { background: var(--wo-teal); color: #FFFFFF; }
.wo .wo-btn--primary:hover { background: var(--wo-teal-dark); color: #FFFFFF; }
.wo .wo-btn--secondary { background: #FFFFFF; color: var(--wo-ink); border-color: var(--wo-border); }
.wo .wo-btn--secondary:hover { border-color: var(--wo-teal); color: var(--wo-ink); }
.wo .wo-btn--dark { background: var(--wo-ink); color: #FFFFFF; }
.wo .wo-btn--dark:hover { background: #000000; color: #FFFFFF; }
.wo .wo-btn--white { background: #FFFFFF; color: var(--wo-teal-dark); font-weight: 700; }
.wo .wo-btn--white:hover { background: var(--wo-pale); color: var(--wo-teal-dark); }
.wo .wo-btn--outline { background: transparent; color: var(--wo-teal); border-color: var(--wo-teal); }
.wo .wo-btn--outline:hover { background: var(--wo-mint); color: var(--wo-teal-dark); }
.wo .wo-btn--outline-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.wo .wo-btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.wo .wo-btn--brand { background: var(--wo-brand); color: var(--wo-brand-ink); font-weight: 700; }
.wo-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar & header ---------- */
.wo-topbar { background: var(--wo-ink); color: #E8EEEC; font-size: 14px; }
.wo-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }

.wo-header { background: #FFFFFF; border-bottom: 1px solid var(--wo-line); position: relative; z-index: 50; }
.wo-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.wo-header__logo img { height: 68px; width: auto; }
.wo-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-weight: 500; font-size: 16px; }
.wo .wo-nav a { color: var(--wo-ink); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.wo .wo-nav a:hover { color: var(--wo-teal); }
.wo .wo-nav a[aria-current="page"] { color: var(--wo-teal); font-weight: 700; border-bottom-color: var(--wo-brand); }
.wo-header__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wo-header__toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1.5px solid var(--wo-border); border-radius: 12px; background: #FFFFFF; color: var(--wo-ink); cursor: pointer; }

@media (max-width: 1080px) {
  .wo-header__toggle { display: inline-flex; order: 2; }
  .wo-header__logo { order: 1; }
  .wo-header__actions { order: 3; width: 100%; }
  .wo-header__actions .wo-btn { flex: 1 1 0; }
  .wo-nav { order: 4; width: 100%; flex-direction: column; gap: 0; display: none; border-top: 1px solid var(--wo-line); }
  .wo-nav.is-open { display: flex; }
  .wo .wo-nav a { padding: 14px 0; border-bottom: 1px solid var(--wo-line); }
  .wo .wo-nav a[aria-current="page"] { border-bottom-color: var(--wo-line); }
}

/* ---------- Offer banner ---------- */
.wo-offer { background: var(--wo-brand); color: var(--wo-brand-ink); }
.wo-offer__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.wo .wo-offer__link { flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; color: var(--wo-brand-ink); text-decoration: none; text-align: center; }
.wo-offer__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--wo-brand-ink); color: #FFFFFF; }
.wo-offer__title { font-family: var(--wo-display); font-size: 26px; line-height: 1.2; }
.wo-offer__text { font-size: 16px; }
.wo-offer__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.wo-offer__close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent; color: var(--wo-brand-ink); cursor: pointer; }
.wo-offer__close:hover { background: rgba(16,36,33,0.1); }

/* ---------- Sections & type ---------- */
.wo-section { padding: 96px 0; }
.wo-section--tight-top { padding-top: 0; }
.wo-section--hero { padding: 72px 0 80px; }
.wo-bg-soft { background: var(--wo-soft); }
.wo-bg-mint { background: var(--wo-mint); }
.wo-bg-dark { background: var(--wo-ink); color: #FFFFFF; }

.wo-crumbs { font-size: 14px; color: var(--wo-muted); margin-bottom: 14px; }
.wo .wo-crumbs a { color: var(--wo-muted); }
.wo-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wo-teal); margin-bottom: 12px; }
.wo-bg-dark .wo-eyebrow { color: var(--wo-mint-text); }
.wo-bg-mint .wo-eyebrow { color: var(--wo-teal-dark); }
.wo-h1 { font-family: var(--wo-display); font-weight: 400; font-size: 60px; line-height: 1.08; letter-spacing: -0.01em; }
.wo-h1--xl { font-size: 64px; line-height: 1.05; }
.wo-h2 { font-family: var(--wo-display); font-weight: 400; font-size: 44px; line-height: 1.15; }
.wo-h2--md { font-size: 40px; }
.wo-h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.wo-lead { font-size: 20px; line-height: 1.55; color: var(--wo-muted); margin-top: 20px; max-width: 600px; }
.wo-body-lg { font-size: 18px; color: var(--wo-muted); margin-top: 18px; }
.wo-muted { color: var(--wo-muted); }
.wo-bg-dark .wo-muted, .wo-bg-dark .wo-body-lg { color: var(--wo-light-text); }
.wo-narrow { max-width: 720px; }
.wo-center { text-align: center; margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .wo-section { padding: 64px 0; }
  .wo-section--hero { padding: 48px 0 56px; }
  .wo-h1, .wo-h1--xl { font-size: 42px; }
  .wo-h2, .wo-h2--md { font-size: 34px; }
  .wo-lead { font-size: 18px; }
}

/* ---------- Layout helpers ---------- */
.wo-split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.wo-split > * { flex: 1 1 420px; min-width: 0; }
.wo-split--top { align-items: flex-start; }
.wo-split--stretch { align-items: stretch; }
.wo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); gap: 24px; }
.wo-grid--gap-sm { gap: 20px; }
.wo-mt-sm { margin-top: 24px; }
.wo-mt { margin-top: 40px; }
.wo-mt-lg { margin-top: 48px; }

/* ---------- Cards ---------- */
.wo-card { background: #FFFFFF; border-radius: var(--wo-radius); padding: 28px; }
.wo-card--soft { background: var(--wo-soft); }
.wo-card--line { border: 1px solid var(--wo-line); }
.wo-card--dark { background: var(--wo-dark2); color: #FFFFFF; }
.wo-card--dark p { color: var(--wo-light-text); }
.wo-card--brand { background: var(--wo-brand); color: var(--wo-brand-ink); }
.wo-card--teal { background: var(--wo-teal); color: #FFFFFF; }
.wo-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.wo-card p { font-size: 16px; }
.wo-card--soft p, .wo-card--line p { color: var(--wo-muted); }

.wo-photo { width: 100%; border-radius: var(--wo-radius-lg); object-fit: cover; background: var(--wo-mint); }

/* Booking card */
.wo-book { background: #FFFFFF; border-radius: var(--wo-radius-lg); padding: 32px; box-shadow: 0 16px 40px rgba(31,42,42,0.08); }
.wo-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--wo-mint); color: var(--wo-teal-dark); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.wo-book__choices { display: grid; gap: 12px; margin-top: 22px; }
.wo .wo-book__choice { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 22px; background: var(--wo-teal); color: #FFFFFF; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 18px; }
.wo .wo-book__choice:hover { background: var(--wo-teal-dark); color: #FFFFFF; }
.wo .wo-book__choice--dark { background: var(--wo-ink); }
.wo .wo-book__choice--dark:hover { background: #000000; }

/* Numbered steps */
.wo-steps { list-style: none; padding: 0; }
.wo-step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--wo-teal); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin-bottom: 20px; }
.wo-step h3 { font-size: 22px; }

/* Bulleted lists */
.wo .wo-list { padding-left: 22px; display: grid; gap: 8px; list-style: disc; }
.wo .wo-list li { list-style: inherit; }
.wo-list--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
.wo-bring { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; border: 1px solid var(--wo-line); border-radius: var(--wo-radius); padding: 28px 32px; }
.wo-bring h3 { font-size: 20px; font-weight: 700; flex: 0 0 auto; }
.wo-bring .wo-list { flex: 1 1 480px; }

/* FAQ */
.wo-faq { border-top: 1px solid var(--wo-line); }
.wo-faq details { border-bottom: 1px solid var(--wo-line); }
.wo-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; font-size: 19px; font-weight: 700; cursor: pointer; }
.wo-faq summary::-webkit-details-marker { display: none; }
.wo-faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; background: var(--wo-mint); color: var(--wo-teal-dark); transition: transform 0.2s; }
.wo-faq details[open] summary::after { background: var(--wo-teal); color: #FFFFFF; transform: rotate(45deg); }
.wo-faq details p { padding: 0 48px 24px 0; color: var(--wo-muted); }

/* Location card */
.wo-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; font-size: 16px; }
.wo-hours dd { margin: 0; }

/* ---------- Footer ---------- */
.wo-footer { background: var(--wo-ink); color: var(--wo-light-text); font-size: 16px; }
.wo-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.wo-footer__logo { display: inline-flex; background: #FFFFFF; border-radius: 16px; padding: 14px; }
.wo-footer__logo img { height: 60px; width: auto; }
.wo-footer__about { margin-top: 18px; font-size: 15px; }
.wo-footer__heading { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wo-mint-text); }
.wo-footer p + p { margin-top: 6px; }
.wo .wo-footer__link { display: block; color: #FFFFFF; text-decoration: none; padding: 4px 0; }
.wo .wo-footer__link:hover { color: var(--wo-mint-text); }
.wo-footer__legal { border-top: 1px solid #364544; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; color: #AEBBB8; }
.wo-footer__right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.wo-footer__policies { display: flex; flex-wrap: wrap; gap: 20px; }
.wo .wo-footer__policies a { color: #AEBBB8; }
.wo .wo-footer__policies a:hover { color: #FFFFFF; }
.wo-footer__social { display: flex; gap: 8px; }
.wo .wo-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #4A5A59; color: #FFFFFF; text-decoration: none; }
.wo .wo-footer__social a:hover { border-color: var(--wo-mint-text); color: var(--wo-mint-text); }

@media print {
  .wo-topbar, .wo-offer, .wo-header__actions, .wo-header__toggle { display: none !important; }
}

/* Smile finder (Home) */
.wo .wo-finder__opt { text-align: left; cursor: pointer; min-height: 64px; padding: 12px 22px; border-radius: 16px; font-family: inherit; background: transparent; color: #FFFFFF; border: 2px solid #4A5A59; }
.wo .wo-finder__opt:hover { border-color: var(--wo-mint-text); }
.wo .wo-finder__opt[aria-pressed="true"] { background: var(--wo-brand); color: var(--wo-brand-ink); border-color: var(--wo-brand); }
.wo-finder__label { display: block; font-weight: 700; font-size: 17px; }
.wo-finder__sub { display: block; font-size: 14px; opacity: 0.85; }
.wo-finder__panel:not([hidden]) { display: flex; }
.wo-finder__panel[hidden] { display: none !important; }

/* 1.0.2: avoid one-word last lines */
.wo :where(h1, h2, h3, h4) { text-wrap: balance; }
.wo :where(p, li, dd, figcaption, blockquote) { text-wrap: pretty; }

/* ---------- 1.0.3: phone layout (desktop unchanged) ---------- */
.wo-show-sm { display: none; }
@media (max-width: 720px) {
  .wo-hide-sm { display: none !important; }
  .wo-show-sm { display: inline; }
  .wo-container { padding-left: 20px; padding-right: 20px; }

  /* Top bar + header: one compact row */
  .wo-topbar { font-size: 13px; }
  .wo-topbar__inner { padding-top: 8px; padding-bottom: 8px; justify-content: center; text-align: center; }
  .wo-header__inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .wo-header__logo img { height: 50px; }
  .wo-header__actions { order: 2; width: auto; margin-left: auto; gap: 8px; flex-wrap: nowrap; }
  .wo-header__actions .wo-btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; }
  .wo-header__toggle { order: 3; width: 44px; height: 44px; }
  .wo-offer__title { font-size: 22px; }
  .wo-offer__inner { padding-top: 8px; padding-bottom: 8px; }

  /* Section spacing in page content */
  .wo #wo-main [style*="padding: 96px 24px"],
  .wo #wo-main [style*="padding: 88px 24px"],
  .wo #wo-main [style*="padding: 80px 24px"],
  .wo #wo-main [style*="padding: 72px 24px"] { padding-top: 48px !important; padding-bottom: 56px !important; padding-left: 20px !important; padding-right: 20px !important; }
  .wo #wo-main [style*="padding: 88px 24px 0"] { padding-bottom: 0 !important; }
  .wo #wo-main [style*="padding: 0 24px 96px"] { padding-bottom: 56px !important; padding-left: 20px !important; padding-right: 20px !important; }
  .wo #wo-main [style*="padding: 64px 24px 96px"] { padding-top: 40px !important; padding-bottom: 56px !important; }
  .wo-section { padding: 48px 0; }
  .wo-section--hero { padding: 36px 0 44px; }
  .wo-section--tight-top { padding-top: 0; }
  .wo #wo-main [style*="gap: 56px"], .wo #wo-main [style*="gap: 64px"] { gap: 32px !important; }
  .wo-split { gap: 28px; }
  .wo #wo-main [style*="margin-top: 48px"], .wo #wo-main [style*="margin-top: 44px"], .wo #wo-main [style*="margin: 48px 0 0"] { margin-top: 28px !important; }
  .wo-mt { margin-top: 28px; } .wo-mt-lg { margin-top: 32px; }

  /* Type */
  .wo #wo-main h1, .wo-h1, .wo-h1--xl { font-size: 38px !important; line-height: 1.1 !important; }
  .wo #wo-main h2[style*="font-size: 4"], .wo-h2, .wo-h2--md { font-size: 30px !important; line-height: 1.18 !important; }
  .wo #wo-main [style*="font-size: 48px"] { font-size: 34px !important; }
  .wo #wo-main [style*="font-size: 20px; line-height: 1.55"], .wo-lead, .wo-body-lg { font-size: 17px !important; }
  .wo #wo-main p[style*="font-size: 19px"], .wo #wo-main p[style*="font-size: 18px"] { font-size: 17px !important; }

  /* Panels and cards */
  .wo #wo-main [style*="padding: 48px"], .wo #wo-main [style*="padding: 56px 48px"] { padding: 28px 22px !important; }
  .wo #wo-main [style*="padding: 32px"] { padding: 24px !important; }
  .wo-card { padding: 22px; }
  .wo #wo-main [style*="border-radius: 28px"] { border-radius: 22px !important; }

  /* Photos: shorter on phones */
  .wo #wo-main img[style*="height: 480px"], .wo #wo-main img[style*="height: 440px"] { height: 320px !important; }
  .wo #wo-main img[style*="height: 420px"], .wo #wo-main img[style*="height: 380px"] { height: 260px !important; }
  .wo #wo-main img[style*="height: 240px"] { height: 200px !important; }
  .wo #wo-main iframe[style*="min-height: 420px"] { min-height: 300px !important; }

  /* Hero portrait circles (Home, About) */
  .wo #wo-main [style*="aspect-ratio: 1 / 1"] { max-width: 300px !important; margin: 8px auto 0; }
  .wo #wo-main [style*="aspect-ratio: 1 / 1"] [style*="top: 409px"] { top: auto !important; bottom: -34px !important; left: 50% !important; transform: translateX(-50%); width: max-content; max-width: 300px; padding: 12px 16px !important; }
  .wo #wo-main [style*="aspect-ratio: 1 / 1"] [style*="width: 238px"] { width: auto !important; }
  .wo #wo-main [style*="flex: 1 1 420px; min-width: 0; display: flex; justify-content: center"] { padding-bottom: 40px; }

  /* Home: "What we treat" cards two across */
  .wo #wo-main [style*="minmax(200px, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .wo #wo-main [style*="padding: 18px 22px 22px"] { padding: 12px 14px 16px !important; }
  .wo #wo-main [style*="padding: 18px 22px 22px"] > div:first-child { font-size: 16px !important; }
  .wo #wo-main [style*="padding: 18px 22px 22px"] > div + div { font-size: 14px !important; }

  /* Home: finder buttons fit three across */
  .wo .wo-finder__opt { padding: 10px 14px; min-height: 56px; flex: 1 1 0; }
  .wo-finder__label { font-size: 15px; }
  .wo-finder__sub { font-size: 12px; }

  /* Treatments: comparison table becomes stacked cards */
  .wo #compare table, .wo #compare tbody, .wo #compare tr, .wo #compare th, .wo #compare td { display: block; min-width: 0 !important; width: auto !important; }
  .wo #compare thead { display: none; }
  .wo #compare tr { padding: 16px 18px; }
  .wo #compare th[scope="row"] { padding: 0 0 6px !important; font-size: 17px; }
  .wo #compare td { padding: 4px 0 !important; font-size: 15px; }
  .wo #compare td::before { display: block; font-weight: 700; color: #1F2A2A; font-size: 13px; }
  .wo #compare td:nth-of-type(1)::before { content: "Traditional braces"; }
  .wo #compare td:nth-of-type(2)::before { content: "Clear braces"; }
  .wo #compare td:nth-of-type(3)::before { content: "Clear aligners"; }

  /* Buttons in content: full width rows read better */
  .wo #wo-main a[style*="min-height: 56px"], .wo #wo-main a[style*="min-height: 52px"] { min-height: 50px !important; }
  .wo-footer__cols { gap: 28px !important; }
}
@media (max-width: 720px) {
  .wo-footer__cols { padding-top: 48px; padding-bottom: 28px; }
}
@media (max-width: 720px) {
  .wo #compare td[colspan]::before { content: none; }
  .wo .wo-finder__opt { padding: 10px; }
  .wo-header__logo { flex: none; }
}

/* 1.0.4: keep the dismissed offer banner hidden even if another stylesheet styles <aside> */
.wo .wo-offer[hidden] { display: none !important; }
