/* ==========================================================================
   foryourgrin.com — Marlo A. Miller, DDS, MS Orthodontics
   Hand-built replacement for the Elementor/Genesis Block Theme site.
   All values below were measured from the live site (1920px desktop,
   Elementor breakpoints: tablet <=1024px, mobile <=767px).
   ========================================================================== */

/* Public Sans: the exact variable font files bundled with the original theme
   (Genesis Block Theme). Self-hosted from /assets/fonts — run tools/fetch-media.sh.
   The second URL is a fallback to the live site until the files are downloaded. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/ps_l_n.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/ps_le_n.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/ps_l_i.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/ps_le_i.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Elementor global kit (post-7.css) */
  --red: #ED2427;          /* primary */
  --charcoal: #3D3D3D;     /* secondary */
  --gray: #7A7A7A;         /* text */
  --lilac: #CEBED1;        /* accent */
  --light: #EDEDED;
  --white: #FFFFFF;
  --black: #000000;
  --blue: #0096D3;
  /* Theme (Genesis Block Theme) */
  --ink: #272C30;          /* body / heading text */
  --slate: #62707C;        /* links */
  --btn-gray: #69727D;     /* Elementor default button */
  --fb: #3B5998;
  --ig: #262626;
  --shadow: 0 0 30px 0 rgba(0, 0, 0, .1);

  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-alt: "Karla", sans-serif;
  --container: 1140px;
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-body); font-weight: 600; color: var(--ink); line-height: 1.2; }
strong, b { font-weight: bolder; } /* theme: 300 -> 400, 500 -> 700 */
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; }

/* ---------- Typography helpers ------------------------------------------- */
.eyebrow { font-family: var(--font-alt); font-size: 16px; font-weight: 400; line-height: 1; color: var(--charcoal); margin: 0 0 20px; }
.eyebrow--lg { font-size: 22px; }
.eyebrow--md { font-size: 18px; }
.h-xl { font-size: 60px; line-height: 1; }
.h-lg { font-size: 50px; line-height: 1; }
.h-md { font-size: 45px; line-height: 1; }
.h-sm { font-size: 35px; line-height: 1; }
.h-card { font-size: 28.8px; line-height: 1; }
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--white); }
.center { text-align: center; }

/* Long-form copy blocks (Elementor text-editor widgets with h2/h3/lists) */
.prose h2 { font-size: 28.8px; line-height: 1.2; margin: 0 0 20px; }
.prose h3 { font-size: 25.2px; line-height: 1.2; margin: 0 0 3%; }
.prose > * + h2 { margin-top: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 25.2px 20px; padding-left: 0; }
.prose li { margin-bottom: 0; }
.narrow > h2, .prose.narrow h2 { margin-bottom: 24.6px; }
.prose.narrow > p:last-child { margin-bottom: 21.6px; }
.mt-40 { margin-top: 40px; }
.stack { display: flex; flex-direction: column; }
.prose.narrow { display: flow-root; width: 100%; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 300; line-height: 1;
  color: var(--white); background: var(--btn-gray);
  padding: 12px 24px; border-radius: 3px; border: 0; cursor: pointer;
  transition: filter .2s, transform .2s;
}
.btn:hover { color: var(--white); filter: brightness(.92); }
.btn--red { background: var(--red); }
.btn--gray { background: var(--gray); }
.btn--pill { font-size: 18px; padding: 13px 25px; border-radius: 25px; }
.btn--lg { font-size: 18px; padding: 20px 40px; border-radius: 5px; }
.btn--r10 { border-radius: 10px; }
.btn--shadow { box-shadow: var(--shadow); }

/* ==========================================================================
   Header (Elementor Header & Footer template #138)
   ========================================================================== */
.topbar { background: var(--red); padding: 0 20px; position: relative; z-index: 30; }
.topbar__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; min-height: 59px; }
.topbar__contact { flex: 0 0 810px; display: flex; flex-wrap: wrap; align-items: center; padding: 10px; margin: 0; list-style: none; gap: 0; }
.topbar__contact li { display: flex; align-items: center; }
.topbar__contact li + li { margin-left: 28px; }
.topbar__contact a { display: inline-flex; align-items: center; color: var(--white); font-weight: 300; font-size: 18px; line-height: 28.8px; }
.topbar__contact i { color: var(--light); font-size: 14px; width: 14px; margin-right: 12px; text-align: center; }
.topbar__social { flex: 0 0 143px; display: flex; gap: 5px; padding: 10px; }
.topbar__pay { flex: 0 0 183px; padding: 10px; text-align: right; }

.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; color: var(--white); font-size: 15px;
}
.social a:hover { color: var(--white); opacity: .9; }
.social .fb { background: var(--fb); }
.social .ig { background: var(--ig); }
.social--lg a { width: 32px; height: 32px; font-size: 16px; }

.masthead { position: relative; z-index: 20; padding: 0 30px; margin-bottom: -150px; }
.masthead__inner { display: grid; grid-template-columns: 339px 1fr 336px; align-items: center; min-height: 133px; }
.masthead__logo { padding: 10px; }
.masthead__logo img { width: 230px; height: auto; }
.masthead__cta { padding: 10px; }

.nav { display: flex; justify-content: center; padding: 10px; }
.nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-alt); font-size: 21px; font-weight: 500; line-height: 1;
  color: var(--white); padding: 10px 15px;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--red); }
.nav__link i { font-size: 12px; }
.nav__sub {
  position: absolute; top: 41px; left: 0; width: 450px; margin: 0; padding: 0; list-style: none;
  background: var(--charcoal); border: 1px solid #9a9a9a; border-radius: 10px;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub li + li { border-top: 1px solid #9a9a9a; }
.nav__sub a { display: block; padding: 25px; font-family: var(--font-alt); font-size: 21px; font-weight: 500; line-height: 1; color: var(--white); }
.nav__sub a:hover { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; padding: 10px; cursor: pointer; }

/* ==========================================================================
   Footer (Elementor Header & Footer template #144)
   ========================================================================== */
.footer-cta { position: relative; z-index: 3; padding: 30px 20px 0; }
.footer-cta__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 359px 211px 342px 228px; }
.footer-cta__cell { display: flex; align-items: center; margin: 10px 0 -60px; min-height: 219px; padding: 40px; color: var(--white); }
.footer-cta__cell--dark { background: var(--charcoal); }
.footer-cta__cell--red { background: var(--red); }
.footer-cta__cell:nth-child(1) { margin-left: 10px; border-radius: 10px 0 0 10px; }
.footer-cta__cell:nth-child(2), .footer-cta__cell:nth-child(4) { padding-left: 0; }
.footer-cta__cell:nth-child(4) { margin-right: 10px; border-radius: 0 10px 10px 0; }
.footer-cta__title { font-size: 28.8px; font-weight: 600; line-height: 1.2; color: var(--white); margin: 0 0 10px; }
.footer-cta__cell--red .footer-cta__title { font-size: 28.4px; font-weight: 500; line-height: 1.5; text-transform: capitalize; margin-bottom: 10px; }
.footer-cta__text { font-size: 18px; line-height: 28.8px; margin: 0; }

.site-footer { position: relative; z-index: 1; padding: 120px 20px 30px; background: var(--charcoal); color: var(--white); overflow: hidden; }
.site-footer::before { /* background photo overlay, 10% */
  content: ""; position: absolute; inset: 0;
  background: url("/wp-content/uploads/2023/11/IMG_2770-scaled.jpg") center / cover no-repeat;
  opacity: .1; pointer-events: none;
}
.shape { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; z-index: 1; }
.shape svg { display: block; width: calc(100% + 1.3px); position: relative; left: 50%; transform: translateX(-50%); }
.shape path { fill: var(--white); }
.shape--top { top: -1px; }
.shape--bottom { bottom: -1px; transform: rotate(180deg); }
.shape--wave svg { height: 50px; }
.shape--curve svg { height: 49px; }

.site-footer__grid { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 10px; display: grid; grid-template-columns: 385px 294px 1fr; }
.site-footer__col { padding: 10px; }
.site-footer__col--brand { padding: 0 50px 0 0; }
.site-footer__col--brand img { width: 276px; margin-bottom: 20px; }
.site-footer__col--brand p { margin-bottom: 40px; }
.site-footer__heading { font-size: 20px; font-weight: 600; line-height: 1; color: var(--white); margin: 0 0 20px; }
.site-footer__links { list-style: none; margin: 0 0 20px; padding: 0; }
.site-footer__links a { color: var(--white); font-family: var(--font-alt); font-weight: 500; font-size: 18px; line-height: 28.8px; display: inline-block; padding-bottom: 0; }
.site-footer__links a:hover { color: var(--red); }
.site-footer__col .btn + .btn { margin-top: 20px; }
.site-footer__stack { display: flex; flex-direction: column; align-items: flex-start; }
.icon-list { list-style: none; margin: 0 0 20px; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; }
.icon-list li + li { margin-top: 0; }
.icon-list i { color: var(--red); width: 14px; font-size: 14px; margin: 7px 10px 0 0; text-align: center; flex: none; }
.icon-list a { color: inherit; }
.icon-list a:hover { color: var(--red); }
.hours { list-style: none; margin: 0; padding: 0; }

.copyright { background: var(--charcoal); color: var(--white); }
.copyright__inner { max-width: var(--container); margin: 0 auto; padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; }
.copyright p { padding: 10px; margin: 0; text-align: center; }
.copyright a { color: var(--slate); }

/* ==========================================================================
   Shared sections
   ========================================================================== */
/* Inner-page hero with breadcrumb (all pages except Home) */
.page-hero {
  position: relative; background: var(--charcoal); padding: 60px 20px; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; filter: saturate(0); }
.page-hero__inner { position: relative; z-index: 1; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero__content { padding: 120px 0 30px; }
.page-hero h1 { font-family: var(--font-alt); font-size: 56px; font-weight: 400; line-height: 1.15; color: var(--white); margin: 0 0 20px; }
.breadcrumb { display: flex; justify-content: center; gap: 0; font-family: var(--font-alt); font-size: 18px; font-weight: 500; line-height: 1; color: var(--white); }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--red); padding: 0 8px; }

/* Dark testimonial band */
.testimonial-band { background: var(--charcoal); padding: 60px 20px; }
.testimonial { max-width: var(--container); margin: 0 auto; border-left: 4px solid var(--red); padding-left: 20px; color: var(--white); }
.testimonial__quote { font-size: 20px; font-weight: 300; line-height: 32px; margin: 0 0 20px; }
.testimonial__name { font-size: 18px; font-weight: 400; line-height: 27px; }
.testimonial__job { font-size: 15.3px; font-weight: 300; line-height: 15.3px; }

/* Teeth icon + "Call or contact us" closing strip */
.cta-strip { padding: 70px 20px 50px; text-align: center; }
.cta-strip img { width: 171px; height: 171px; margin: 0 auto 20px; }
.cta-strip p { font-size: 28px; font-weight: 500; line-height: 44.8px; color: var(--black); max-width: var(--container); margin: 15px auto 33.6px; }
.cta-strip a { color: var(--slate); text-decoration: underline; }
.cta-strip a:hover { color: var(--red); }

/* Dark "Schedule an Appointment" banner with photo */
.book-banner { position: relative; background: var(--charcoal); padding: 0 20px; overflow: hidden; }
.book-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; filter: saturate(0); }
.book-banner__inner { position: relative; max-width: 1000px; min-height: 400px; margin: 0 auto; display: flex; align-items: center; justify-content: center; text-align: center; padding: 90px 10px; }
.book-banner__inner > div { width: 100%; }
.book-banner h2 { font-size: 50px; line-height: 1; color: var(--white); margin: 0 0 20px; }
.book-banner p { color: var(--white); margin: 0 0 41.6px; }

/* Rounded 3/4-up card rows (dark / photo / red / photo) */
.card-row { display: grid; }
.card { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.card--dark { background: var(--charcoal); color: var(--white); }
.card--red { background: var(--red); color: var(--white); }
.card--white { background: var(--white); }
.card--photo { background-size: cover; background-position: center; min-height: 470px; }
.card h2 { font-size: 28.8px; line-height: 1; margin: 0 0 20px; }
.card--dark h2, .card--red h2 { color: var(--white); }
.card p { margin-bottom: 20px; }
.card .btn { align-self: flex-start; }

/* Check / plus icon lists */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: baseline; }
.check-list i { font-size: 14px; width: 14px; flex: none; }
.check-list--red i { color: var(--red); }
.check-list a { color: var(--black); }
.check-list a:hover { color: var(--red); }

/* Toggle (Elementor "toggle" widget) */
.toggle { border-bottom: 1px solid #d5d8dc; }
.toggle summary { list-style: none; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1; color: var(--ink); padding: 15px 0; display: flex; gap: 10px; align-items: center; }
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary i { font-size: 12px; width: 10px; }
.toggle summary .fa-caret-down { display: none; }
.toggle[open] summary .fa-caret-right { display: none; }
.toggle[open] summary .fa-caret-down { display: inline-block; }
.toggle__body { padding: 0 0 15px; }

/* Before / after comparison slider (PowerPack image comparison) */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ba { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; --pos: 50%; aspect-ratio: auto; }
.ba img { width: 100%; height: auto; display: block; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after img { width: 100%; height: 100%; object-fit: cover; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 3px solid #fff; transform: translateX(-1.5px); cursor: ew-resize; }
.ba__handle::after {
  content: "\f104  \f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; white-space: pre;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; letter-spacing: -1px;
}
.ba__label { position: absolute; top: 15px; padding: 6px 12px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .2); opacity: 0; transition: opacity .2s; }
.ba:hover .ba__label { opacity: 1; }
.ba__label--before { left: 15px; }
.ba__label--after { right: 15px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Entrance animations (replaces Elementor fadeIn/fadeInUp/zoomIn etc.) */
[data-anim] { opacity: 0; transition: opacity .9s ease, transform .9s ease; }
[data-anim="fadeInUp"] { transform: translateY(40px); }
[data-anim="fadeInLeft"] { transform: translateX(-60px); }
[data-anim="fadeInRight"] { transform: translateX(60px); }
[data-anim="zoomIn"] { transform: scale(.4); }
[data-anim="rotateInUpRight"] { transform: rotate(-90deg); transform-origin: right bottom; }
[data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-anim] { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Responsive — tablet (Elementor <=1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .topbar__contact { flex: 1 1 auto; }
  .topbar__contact li + li { margin-left: 18px; }
  .masthead { padding: 0 20px; }
  .masthead__inner { grid-template-columns: 1fr auto auto; min-height: 110px; }
  .masthead__logo img { width: 180px; }
  .nav-toggle { display: block; }
  .nav { position: static; padding: 0; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--charcoal); padding: 10px 0;
  }
  .nav.is-open .nav__list { display: flex; }
  .nav__link { width: 100%; justify-content: space-between; padding: 15px 20px; }
  .nav__sub { position: static; width: auto; opacity: 1; visibility: visible; transform: none; border: 0; border-radius: 0; display: none; background: rgba(0,0,0,.2); }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sub a { padding: 15px 35px; font-size: 18px; }
  .masthead__cta { order: 2; }
  .nav { order: 3; }

  .footer-cta__inner { grid-template-columns: 1fr auto; }
  .footer-cta__cell { margin: 0; min-height: 0; }
  .footer-cta__cell:nth-child(1) { margin-left: 0; border-radius: 10px 0 0 0; }
  .footer-cta__cell:nth-child(2) { border-radius: 0 10px 0 0; padding-left: 40px; }
  .footer-cta__cell:nth-child(3) { border-radius: 0 0 0 10px; }
  .footer-cta__cell:nth-child(4) { margin: 0 0 -60px; border-radius: 0 0 10px 0; padding-left: 40px; }
  .footer-cta__cell:nth-child(4) { margin-bottom: -60px; }
  .footer-cta__cell:nth-child(3) { margin-bottom: -60px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .site-footer__col--brand { grid-column: 1 / -1; padding-right: 0; }

  .page-hero h1 { font-size: 44px; }
  .h-xl { font-size: 48px; }
  .h-lg { font-size: 40px; }
  .h-md { font-size: 38px; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .card-row--3 { grid-template-columns: 1fr; }
  .card-row--3 > * { margin: 0 !important; border-radius: 0 !important; }
  .card-row--3 > :first-child { border-radius: 10px 10px 0 0 !important; }
  .card-row--3 > :last-child { border-radius: 0 0 10px 10px !important; }
  .split, .holistic__inner { grid-template-columns: 1fr; }
  .split__text--gap90 { margin-right: 0; }
}

/* ==========================================================================
   Responsive — mobile (Elementor <=767px)
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .topbar__inner { flex-direction: column; padding: 6px 0; }
  .topbar__contact { justify-content: center; padding: 6px 0; }
  .topbar__contact li { width: 100%; justify-content: center; }
  .topbar__contact li + li { margin-left: 0; }
  .topbar__contact a { font-size: 15px; line-height: 24px; }
  .topbar__social, .topbar__pay { flex: none; padding: 4px 0; }
  .masthead { margin-bottom: -110px; padding: 0 10px; }
  .masthead__cta { display: none; }
  .masthead__inner { grid-template-columns: 1fr auto; }
  .masthead__logo img { width: 150px; }

  .footer-cta__inner { grid-template-columns: 1fr; }
  .footer-cta__cell { border-radius: 0 !important; padding: 30px !important; margin: 0 !important; }
  .footer-cta__cell:nth-child(1) { border-radius: 10px 10px 0 0 !important; }
  .footer-cta__cell:nth-child(4) { border-radius: 0 0 10px 10px !important; margin-bottom: -60px !important; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .copyright__inner { grid-template-columns: 1fr; }

  .page-hero { padding: 40px 20px; }
  .page-hero__inner { min-height: 380px; }
  .page-hero h1 { font-size: 34px; }
  .h-xl { font-size: 40px; }
  .h-lg, .h-md { font-size: 32px; }
  .h-sm { font-size: 28px; }
  .h-card, .card h2 { font-size: 24px; }
  .book-banner h2 { font-size: 34px; }
  .cta-strip p { font-size: 22px; line-height: 1.5; }
  .ba-grid { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .section { padding: 40px 15px; }
  .approach { padding: 40px 15px 80px; }
  .card--pad60, .card--shape { padding: 40px 30px; }
  .holistic__media img { height: 300px; }
  .prose h3 { font-size: 22px; margin-bottom: 20px; }
}

/* ==========================================================================
   Shared components (video, quote, carousel, playlist, zigzag)
   ========================================================================== */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat; overflow: hidden;
}
.yt i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 80px; color: rgba(255, 255, 255, .7); text-shadow: 1px 0 6px rgba(0,0,0,.3); transition: transform .2s; }
.yt:hover i { transform: translate(-50%, -50%) scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.quote { margin: 0; padding: 10px 0 10px 20px; border-left: 5px solid var(--red); color: var(--white); }
.quote p { font-size: 18px; font-weight: 600; line-height: 25.2px; margin: 0 0 20px; }
.quote cite { font-style: normal; font-size: 18px; font-weight: 700; color: var(--light); }

.zigzag { position: relative; display: inline-block; z-index: 0; }
.zigzag svg { position: absolute; left: 50%; top: 50%; width: calc(100% + 20px); height: calc(100% + 20px); transform: translate(-50%, -50%); overflow: visible; z-index: -1; pointer-events: none; }
.zigzag path { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.zigzag.is-drawn path { animation: draw 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.carousel { position: relative; padding: 0 40px 30px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; column-gap: 30px; transition: transform .5s ease; }
.carousel__track > * { flex: 0 0 calc((100% - 90px) / 4); }
.carousel__prev, .carousel__next { position: absolute; top: calc(50% - 30px); transform: translateY(-50%); background: none; border: 0; font-size: 26px; color: var(--black); cursor: pointer; padding: 6px; }
.carousel__prev { left: 0; }
.carousel__next { right: 0; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: #ccc; cursor: pointer; }
.carousel__dots button.is-active { background: var(--black); }

.member { margin: 0; text-align: center; }
.member img { width: 150px; height: auto; margin: 0 auto 15px; }
.member strong { display: block; font-size: 21.6px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.member strong::after { content: ""; display: block; width: 60px; height: 3px; background: var(--ink); margin: 12px auto 12px; }
.member span { display: block; font-size: 18px; font-weight: 300; }

.playlist { display: grid; grid-template-columns: 33% 67%; height: 434px; box-shadow: 0 0 10px rgba(0,0,0,.05); }
.playlist__side { background: var(--white); display: flex; flex-direction: column; min-height: 0; }
.playlist__head { display: flex; justify-content: space-between; align-items: center; height: 56px; flex: none; background: var(--red); color: var(--white); padding: 0 16px; border-bottom: 1px solid #d5d8dc; }
.playlist__head span:first-child { font-weight: 700; font-size: 16px; line-height: 19.2px; }
.playlist__head span:last-child { font-size: 14px; line-height: 20px; align-self: flex-start; padding-top: 18px; }
.playlist__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.playlist__item { position: relative; display: flex; align-items: center; gap: 8px; height: 56px; flex: none; padding: 0 16px; background: var(--white); border-bottom: 1px solid #d5d8dc; cursor: pointer; }
.playlist__item img { width: 75px; height: 42px; object-fit: cover; background: #d5d8dc; }
.playlist__item i { position: absolute; left: 71px; top: 28px; font-size: 16px; line-height: 1; color: var(--light); }
.playlist__item.is-active, .playlist__item:hover { background: #ededed; }
.playlist__player { background: #333; display: flex; }
.playlist__player video { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Inner-page building blocks
   ========================================================================== */
.section { padding: 60px 20px; }
.container--pad { padding: 10px; }
.mb-20 { margin-bottom: 20px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.r20 { border-radius: 20px; }
.r40 { border-radius: 40px; }

/* Rows of 3 photos: full-width (flush) or padded with gaps */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px; }
.photo-row img { width: 100%; height: auto; padding: 10px; }
.photo-row img { box-sizing: border-box; }
.photo-row--flush { padding: 10px 20px 50px; }

/* Three-up card row (dark / photo / white) on light gray */
.approach { background: #EEEEEE; padding: 60px 20px 120px; }
.card-row--3 { max-width: var(--container); margin: 0 auto; grid-template-columns: repeat(3, 1fr); min-height: 520px; }
.card-row--3 > :first-child { margin-left: 10px; border-radius: 10px 0 0 10px; }
.card-row--3 > :last-child { border-radius: 0 10px 10px 0; }
.card--pad60 { padding: 60px; }
.card--shape { position: relative; padding: 50px; overflow: hidden; }
.card--shape::before { content: ""; position: absolute; inset: 0; background: var(--shape) no-repeat 100% 0 / contain; pointer-events: none; }
.card--shape > * { position: relative; }
.card--white h2 { color: var(--ink); }

/* Two-column text + media */
.split { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split__text { padding: 10px; }
.split__text--gap90 { margin-right: 90px; }
.split__media { padding: 10px; align-self: start; }
.split__media img { width: 100%; }
.note-right { border-left: 3px solid var(--red); text-align: right; padding-left: 10px; }

.holistic { padding: 0 20px; }
.holistic__inner { max-width: var(--container); margin: 0 auto; padding: 54px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.holistic__media { padding: 10px; display: flex; align-items: center; }
.holistic__media img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; }
.holistic__text { padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.holistic__text .eyebrow, .holistic__text p { margin: 0; }
.holistic__text p + p { margin-top: 1.2em; }

.before-after { padding: 65px 20px 95px; }
.ba-grid { gap: 40px 20px; padding: 10px; }

/* ==========================================================================
   Home
   ========================================================================== */
.home-hero { position: relative; background: var(--charcoal); padding: 110px 20px 80px; margin-top: -15px; overflow: hidden; }
.home-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 0% 50%; opacity: .36; }
.home-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 55% 45%; min-height: 659px; }
.home-hero__copy { align-self: center; padding: 10px; margin: 120px 30px 120px 0; color: var(--white); }
.home-hero__kicker { font-family: var(--font-alt); font-size: 16px; font-weight: 400; line-height: 1; color: var(--white); margin: 0 0 20px; }
.home-hero__title { font-size: 60px; line-height: 1; color: var(--white); margin: 0 0 20px; }
.home-hero__copy p { margin: 0 0 41.6px; }
.home-hero__art { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 10px 10px 0; }
.home-hero__portrait { position: relative; z-index: 15; width: 100%; height: 600px; background: no-repeat 50% 100% / contain; transform: scale(1.2); transform-origin: 50% 100%; }
.home-hero__shape { position: absolute; left: 0; right: 0; top: 159px; bottom: 0; background-repeat: no-repeat; background-position: 0 0; z-index: 0; }
.home-hero__lottie { position: absolute; top: auto; bottom: 10px; left: 10px; width: 250px; z-index: 10; opacity: .1; transform: translate(-40px, -40px); }
.home-hero__shape[data-anim].is-in, .home-hero__lottie[data-anim].is-in { transform: translate(-40px, -40px); }
.home-hero__shape[data-anim].is-in { transform: none; }

.treatments { padding: 30px 20px 90px; }
.treatments__grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; }
.treatments__intro { position: relative; z-index: 2; background: var(--charcoal); margin: -160px 0 0 10px; padding: 40px; min-height: 412px; border-radius: 10px 10px 0 10px; display: flex; align-items: center; }
.treatments__intro h2 { font-size: 28.8px; line-height: 1; color: var(--white); }
.treatments__card { background: var(--white); margin-top: -120px; min-height: 372px; padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.treatments__card--offset { box-shadow: 30px 0 30px 0 rgba(0, 0, 0, .1); }
.treatments__card--last { margin-right: 10px; border-radius: 0 10px 10px 0; }
.treatments__card img { width: 104px; height: auto; margin-bottom: 20px; }
.treatments__card h2 { font-size: 18px; font-weight: 600; line-height: 21.6px; color: var(--charcoal); margin: 0 0 10px; }
.treatments__card h2 a { color: inherit; }
.treatments__card p { color: var(--ink); margin: 0; }

.home-video { display: grid; grid-template-columns: 821fr 1089fr; gap: 10px; padding: 60px 0; overflow: hidden; }
.home-video__media { padding: 10px; display: flex; align-items: center; border-radius: 0 10px 0 0; }
.home-video__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 0 40px 0 30px; }
.home-video__copy .eyebrow, .home-video__copy h2, .home-video__copy p { margin: 0; }
.home-video__copy .h-md { color: var(--ink); }

.owned { background: var(--light); padding: 57.6px 0; text-align: center; }
.owned .container { display: flex; flex-direction: column; gap: 20px; }
.owned__title { font-size: 40px; line-height: 48px; color: var(--ink); }

.smiles { padding: 60px 20px; }
.smiles__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.smiles__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 60px 70px 60px 10px; margin-left: 10px; }
.smiles__copy .h-card { margin-bottom: 20px; }
.smiles__copy p { margin-bottom: 20px; }
.smiles__quote { background: var(--charcoal); border-radius: 0 10px 10px 0; display: flex; align-items: center; padding: 0 60px; margin-right: 10px; }

.service-cards { padding: 60px 40px; }
.card-row--4 { grid-template-columns: repeat(4, 1fr); min-height: 473px; }
.card-row--4 > :first-child { margin-left: 10px; border-radius: 10px 0 0 10px; }
.card-row--4 > :last-child { margin-right: 10px; border-radius: 0 10px 10px 0; }

.home-faq { padding: 60px 0; }
.home-faq .container { padding: 0 15px; }

.dr { padding: 0 20px; }
.dr__inner { max-width: var(--container); margin: 0 auto; padding: 60px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr__photo { position: relative; margin: 10px; border-radius: 10px; min-height: 397px; }
.dr__photo img { position: absolute; top: -21px; left: 3px; width: 468px; max-width: none; }
.dr__copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 10px; margin: 10px 10px 10px 0; }
.dr__copy .h-card { color: var(--ink); }
.dr .check-list { font-size: 18px; color: var(--black); }

.staff { padding: 135px 38px 115px; }
.staff .h-lg { margin-bottom: 30px; }

.video-testimonials { background: var(--light); padding: 56px 20px 88px; }
.video-testimonials .h-sm { margin-bottom: 56px; }
.video-testimonials .container { max-width: 1110px; }

@media (max-width: 1024px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .home-hero__copy { margin: 60px 0 0; }
  .home-hero__art { height: 480px; }
  .home-hero__portrait { height: 460px; transform: none; }
  .treatments__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .treatments__intro { grid-column: 1 / -1; margin: -60px 0 0; min-height: 0; border-radius: 10px; }
  .treatments__card, .treatments__card--last { margin: 0; border-radius: 10px; }
  .home-video { grid-template-columns: 1fr; }
  .home-video__copy { padding: 0 30px; }
  .smiles__grid { grid-template-columns: 1fr; }
  .smiles__copy { margin: 0; padding: 40px 20px; }
  .smiles__quote { border-radius: 10px; margin: 0; padding: 40px; }
  .card-row--4 { grid-template-columns: 1fr 1fr; }
  .card-row--4 > * { margin: 0 !important; border-radius: 0 !important; }
  .card--photo { min-height: 360px; }
  .service-cards { padding: 40px 20px; }
  .dr__inner { grid-template-columns: 1fr; }
  .dr__photo { min-height: 0; }
  .dr__photo img { position: static; width: 100%; max-width: 468px; margin: 0 auto; }
  .carousel__track > * { flex-basis: calc((100% - 30px) / 2); }
  .playlist { grid-template-columns: 1fr; height: auto; }
  .playlist__list { display: flex; overflow-x: auto; }
  .playlist__player video { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .home-hero { padding: 90px 15px 0; }
  .home-hero__title { font-size: 40px; }
  .home-hero__art { height: 380px; }
  .home-hero__portrait { height: 370px; }
  .treatments { padding: 30px 15px 50px; }
  .treatments__grid { grid-template-columns: 1fr; }
  .treatments__intro { margin-top: 0; }
  .owned__title { font-size: 30px; line-height: 1.3; }
  .card-row--4 { grid-template-columns: 1fr; }
  .staff { padding: 60px 15px; }
  .carousel__track > * { flex-basis: 100%; }
}

/* ==========================================================================
   Inner-page variants
   ========================================================================== */
.page-hero--full { padding-left: 0; padding-right: 0; }
.page-hero--full .page-hero__content { padding-left: 10px; padding-right: 10px; }
.page-hero h1.page-hero__h1--xl { font-size: 100px; line-height: 1; }
.breadcrumb--light, .breadcrumb--light a { color: var(--light); }
.bg-light { background: var(--light); }
.h-40 { font-size: 40px; line-height: 1; }
.h-45 { font-size: 45px; line-height: 1; }
.h-57 { font-size: 57px; line-height: 1; }
.kicker-red { font-family: var(--font-alt); font-size: 20px; font-weight: 400; line-height: 1; color: var(--red); }
.r35 { border-radius: 35px; }
.stack-center { display: flex; flex-direction: column; align-items: center; }
.divider { border: 0; border-top: 2px solid var(--red); width: 80%; margin: 0 0 20px; }
.divider--full { width: 100%; }
.divider--3 { border-top-width: 3px; }
.callout { border-left: 4px solid var(--red); padding-left: 20px; font-size: 17px; line-height: 27.2px; }
.split--67 { grid-template-columns: 2fr 1fr; }
.split--57 { grid-template-columns: 652fr 487fr; }
.split__media--center { align-self: center; }
.owned--gray { background: var(--gray); }
.owned--gray p, .owned--gray .owned__title { color: var(--white); }

/* Blue "Schedule a ... Appointment >>>" bar */
.blue-bar { background: var(--blue); padding: 15px 10px; text-align: center; min-height: 30px; }
.blue-bar h2 { font-size: 28.8px; line-height: 1; color: var(--white); }
.blue-bar a { color: var(--white); }
.blue-bar a:hover { color: var(--charcoal); }

/* Video thumbnails / embeds */
.yt--card { border-radius: 25px; overflow: hidden; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.yt--728 { max-width: 728px; }
.yt-embed { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 40px; animation: lbIn .3s ease; }
.lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 15px; right: 20px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }
@keyframes lbIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* Two-up before/after grid inside a column */
.ba-grid--2 { grid-template-columns: 1fr 1fr; padding: 10px; }

/* Accordion (Elementor nested accordion, uSmile page) */
.accordion { width: 100%; }
.accordion details { margin-bottom: 5px; }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px; line-height: 21.6px; border: 1px solid #d5d8dc; font-size: 18px; font-weight: 700; color: var(--ink); background: var(--white); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion details[open] summary { background: var(--red); color: var(--white); border-color: var(--red); }
.accordion summary .fa-minus, .accordion details[open] summary .fa-plus { display: none; }
.accordion details[open] summary .fa-minus { display: inline-block; }
.accordion__body { background: rgba(237, 237, 237, .42); padding: 20px; }
.accordion__body ul { margin-bottom: 0; }

/* Patient Center: first visit + forms card */
.first-visit { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 638fr 501fr; align-items: center; }
.first-visit__text { padding: 10px; margin-right: 30px; }
.forms-card { background: var(--charcoal); border-radius: 30px; box-shadow: 12px 15px 10px 1px rgba(0, 0, 0, .5); padding: 30px; margin: 0 70px 0 30px; text-align: center; color: var(--white); }
.forms-card h3 { font-family: var(--font-alt); font-size: 30px; font-weight: 400; line-height: 1; color: var(--white); margin-bottom: 20px; }
.forms-card__list { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.forms-card__list a { color: var(--white); }
.forms-card__list a:hover { color: var(--red); }

/* Toggle grids on a faint dental pattern (emergency instructions, FAQs) */
.emergency { position: relative; background: var(--pattern) 0 0 repeat; }
.emergency::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .66); }
.emergency__inner { position: relative; padding: 20px 40px 20px 10px; }
.emergency__cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; }
.emergency__cols > div { padding: 10px; }
.emergency .toggle__body { color: var(--charcoal); }

/* Testimonial with a thicker rule (FAQs page) */
.testimonial--thick { border-left-width: 5px; padding-left: 25px; }

/* Contact page */
.map { width: 100%; height: 300px; border: 0; }
.form-card { background: var(--charcoal); border-radius: 50px; padding: 35px; display: flex; align-items: center; min-height: 684px; }
.contact-form { width: 100%; display: flex; flex-direction: column; gap: 25px; }
.field { display: flex; flex-direction: column; padding: 0 5px; }
.field label { font-size: 18px; font-weight: 600; color: var(--white); line-height: 29px; }
.field .req { color: var(--red); margin-left: 3px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 18px; font-weight: 400; color: var(--black);
  background: var(--light); border: 1px solid var(--btn-gray); border-radius: 2px; padding: 15px; width: 100%; line-height: 25.2px;
}
.field textarea { font-size: 15px; padding: 5px 14px; border-radius: 3px; resize: vertical; height: 96px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field--hp { position: absolute; left: -9999px; }
.form-submit { align-self: flex-start; margin-left: 5px; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--white); background: var(--btn-gray); border: 0; border-radius: 4px; padding: 15px 30px; cursor: pointer; }
.form-submit:hover { filter: brightness(.92); }
.form-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { color: var(--white); margin: 0; min-height: 1.6em; }
.form-status.is-error { color: #ffb4b5; }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { outline: 2px solid #ffb4b5; outline-offset: 1px; }
.prose-post > div[style] { max-width: 100%; }
.weave { padding: 60px 20px; }
.weave img { width: 502px; }
.contact-boxes { padding: 45px 20px; }
.contact-boxes__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.contact-box { margin: 20px; padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-box > i { font-size: 30px; line-height: 30px; height: 30px; color: var(--charcoal); margin-bottom: 9px; }
.contact-box h3 { font-size: 18px; font-weight: 300; line-height: 28.8px; margin-bottom: 10px; }
.contact-box h3 a { color: var(--ink); }
.contact-box p { color: var(--gray); margin-bottom: 20px; }
.btn--sm { font-size: 18px; padding: 10px 20px; border-radius: 2px; }

/* ==========================================================================
   Blog (Genesis Block Theme single + archive templates)
   ========================================================================== */
.single-post .masthead, .archive .masthead { background: var(--charcoal); margin-bottom: 0; }
.post, .archive { max-width: 830px; margin: 0 auto; padding: 60px 0 83px; }
.archive { padding-bottom: 60px; }
.post__header { margin-bottom: 41.5px; }
.post__title { font-size: 42px; font-weight: 600; line-height: 54.6px; margin-bottom: 24.9px; }
.post__title a { color: var(--ink); }
.post__title a:hover { color: var(--red); }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray); margin: 0; }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; }
.featured-image { margin-bottom: 41.5px; }
.featured-image img { width: 100%; height: auto; }
.prose-post p { margin: 0 0 21.6px; }
.prose-post h2 { font-size: 28.8px; line-height: 34.56px; margin: 0 0 24.9px; }
.prose-post h3 { font-size: 25.2px; line-height: 30.24px; margin: 0 0 24.9px; }
.prose-post h4 { font-size: 21.6px; margin: 0 0 20px; }
.prose-post a { color: var(--red); }
.prose-post a:hover { color: var(--ink); }
.prose-post ul, .prose-post ol { padding-left: 32.4px; margin: 0 0 25.2px; }
.prose-post li { margin-bottom: 15.5px; }
.prose-post figure { margin: 0 0 25px; }
.prose-post table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose-post td, .prose-post th { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
.prose-post .wp-block-table { overflow-x: auto; }
.prose-post img { height: auto; }
.prose-post blockquote { border-left: 4px solid var(--red); margin: 0 0 25px; padding-left: 20px; }
.meta-list { list-style: none; padding: 0; margin: 40px 0 0; font-size: 16px; }
.meta-list span { font-weight: 600; margin-right: 6px; }
.meta-list a { color: var(--red); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 83px; font-size: 18px; font-weight: 600; line-height: 25.2px; }
.post-nav a { color: var(--ink); display: block; }
.post-nav a:hover { color: var(--red); }
.post-nav__label { display: block; font-size: 14px; font-weight: 400; color: var(--gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.post-nav__next { grid-column: 2; text-align: right; }
.archive-item { border-bottom: 3px solid #eee; padding-bottom: 83px; margin-bottom: 66px; }
.archive-item .post__header { margin-bottom: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #ddd; color: var(--ink); }
.page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }
a.page-numbers:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 1024px) {
  .page-hero h1.page-hero__h1--xl { font-size: 64px; }
  .h-57 { font-size: 44px; }
  .split--67, .split--57, .first-visit { grid-template-columns: 1fr; }
  .first-visit__text { margin-right: 0; }
  .forms-card { margin: 30px 0 0; }
  .form-card { min-height: 0; margin-top: 30px; border-radius: 30px; }
  .contact-boxes__grid { grid-template-columns: 1fr; }
  .contact-box { margin: 0; padding: 25px; }
  .post, .archive { padding: 50px 20px 70px; }
  .split__text[style] { margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 767px) {
  .page-hero h1.page-hero__h1--xl { font-size: 42px; }
  .h-40, .h-45, .h-57 { font-size: 32px; }
  .blue-bar h2 { font-size: 22px; line-height: 1.3; }
  .emergency__inner { padding: 10px 0; }
  .emergency__cols { grid-template-columns: 1fr; }
  .emergency__cols > div { padding: 0; }
  .ba-grid--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-card { padding: 25px; }
  .weave img { width: 100%; max-width: 360px; }
  .post__title { font-size: 32px; line-height: 1.25; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: 1; text-align: left; }
}

/* Elementor text-editor widgets keep the last paragraph's 1.2em margin inside the widget */
div.mb-20 { display: flow-root; }
div.mb-20 > p:last-child, .card--pad60 > p:last-of-type, .holistic__text > div > p:last-child { margin-bottom: 21.6px; }
.card--pad60 > p:last-of-type { margin-bottom: 41.6px; }
@media (min-width: 768px) { .photo-row:not(.photo-row--flush) { grid-template-columns: repeat(3, minmax(0, 627px)); } }
.card > p:last-of-type { margin-bottom: 41.6px; }
.home-faq h2 { line-height: 1; }
@media (min-width: 1025px) { .footer-cta__cell:nth-child(2), .footer-cta__cell:nth-child(4) { justify-content: flex-end; } }
@media (min-width: 1025px) { .footer-cta__cell:nth-child(1) > div { width: 280px; flex: none; } }
.owned__title { margin-bottom: 34px; }
.owned .container > p:last-child { margin-bottom: 21.6px; }
/* Emergency instructions: dark toggle bars */
.emergency .toggle { border: 0; margin-bottom: 35px; box-shadow: 3px 3px 15px 2px rgba(0, 0, 0, .5); }
.emergency .toggle:last-child { margin-bottom: 0; }
.emergency .toggle summary { background: var(--charcoal); color: var(--white); padding: 15px; gap: 10px; }
.emergency .toggle summary i { font-size: 18px; width: 18px; color: var(--red); }
.emergency .toggle[open] summary .fa-caret-up { display: inline-block; }
.emergency .toggle summary .fa-caret-up { display: none; }
.emergency .toggle[open] summary .fa-caret-right { display: none; }
.emergency .toggle__body { background: var(--light); padding: 25px; color: var(--charcoal); }
.emergency .toggle__body p:last-child { margin-bottom: 0; }
/* Elementor divider widget: 15px gap above and below the line */
.divider { border: 0; height: 32px; margin: 0 0 20px; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat; }
.divider--3 { height: 33px; background-size: 100% 3px; }
.divider:last-child { margin-bottom: 0; }
.testimonial figcaption { min-height: 45px; }
.section .container > p:last-child { margin-bottom: 21.6px; }
/* paragraphs that stand in for an Elementor text-editor widget keep their own 1.2em margin plus the 20px widget gap */
p.mb-20:not(.center):not(.eyebrow):not(.te-bare):not(.callout) { margin-bottom: 41.6px; }
@media (min-width: 1025px) { .contact-box:nth-child(2) { padding-left: 0; padding-right: 0; } }
.book-banner h2.h-45 { font-size: 45px; }
.split__text > p:last-child, .accordion__body > p:last-child { margin-bottom: 21.6px; }
.site-footer__links li { padding-bottom: 5px; margin-bottom: 4.75px; }
.site-footer__links li:last-child { padding-bottom: 0; margin-bottom: 0; }
.site-footer .social--lg { min-height: 42px; }
/* CTA strip: image 20px + text widget's own 15px top margin (no collapse) */
.cta-strip img { margin-bottom: 35px; }
.cta-strip p { margin-top: 0; }
.prose-post > div:not([style]) { margin: 28.8px 0; }
.site-footer__col--brand > a:first-child { display: block; width: 276px; margin: 0 auto 20px; }
.site-footer__col--brand > a:first-child img { margin: 0; }
.home-faq .prose > p:last-child { margin-bottom: 21.6px; }
.page-services .cta-strip, .page-myobrace .cta-strip { padding-bottom: 60px; }
@media (min-width: 1025px) {
  .form-card { align-self: stretch; min-height: 0; }
  .page-contact .form-card { min-height: 912px; }
  .page-contact .page-hero { margin-top: -179px; }
}
.page-faqs .cta-strip { padding-bottom: 60px; }
.page-aligners .book-banner__inner { padding-block: 100px; }
.split__media > p:last-child { margin-bottom: 21.6px; }
