/* flow.css — shared section rhythm for every page. Edit here, not per page.
   Rhythm: green hero > cream > green pricing > sage-tint FAQ > gold CTA > dark footer */
section { position: relative; }

/* 1. Light sections that follow a green one get a soft sage tint (breaks up the cream) */
.offer-section + section:not(.offer-section):not(.contact) { background: var(--sage-light) !important; }
.offer-section + section:not(.offer-section) .trust-card,
.offer-section + section:not(.offer-section) .value-card,
.offer-section + section:not(.offer-section) .why-card,
.offer-section + section:not(.offer-section) .accordion-item,
.offer-section + section:not(.offer-section) .included-grid li,
.offer-section + section:not(.offer-section) .step-card { background: #fff; }

/* 2. Final call-to-action: warm gold panel instead of a third block of green */
.offer-section[style*="text-align:center"] {
  background: var(--gold-light) !important;
  color: var(--text) !important;
}
.offer-section[style*="text-align:center"] h2 { color: var(--sage-dark) !important; }
.offer-section[style*="text-align:center"] p { color: #3d3d39 !important; opacity: 1 !important; }
.offer-section[style*="text-align:center"] .corner-half { background: var(--sage-mid) !important; opacity: 0.18 !important; }

/* 4. Wave edges between sections (colour = the section above) */
.offer-section + section:not(.offer-section):not(.contact)::before,
section:not(.offer-section):not(.page-hero):not(.hero) + .offer-section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  background-repeat: no-repeat; background-size: 100% 100%;
  pointer-events: none; z-index: 0;
}
/* green above (pricing -> FAQ) */
.offer-section:not([style*="text-align:center"]) + section:not(.offer-section):not(.contact)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v14C1200 48 960 48 720 26S240 4 0 30z' fill='%233D6B5A'/%3E%3C/svg%3E");
}
/* cream above (cream -> pricing) */
section:not(.offer-section):not(.page-hero):not(.hero) + .offer-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v14C1200 48 960 48 720 26S240 4 0 30z' fill='%23F7F4EE'/%3E%3C/svg%3E");
}
/* sage above (FAQ -> CTA) */
.offer-section + section:not(.offer-section) + .offer-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v14C1200 48 960 48 720 26S240 4 0 30z' fill='%23E8F0EC'/%3E%3C/svg%3E");
}
.offer-section + section:not(.offer-section):not(.contact),
section:not(.offer-section):not(.page-hero):not(.hero) + .offer-section { padding-top: 84px; }
.offer-section + section:not(.offer-section):not(.contact) > *,
section:not(.offer-section):not(.page-hero):not(.hero) + .offer-section > .wrap { position: relative; z-index: 1; }

/* 5. Slightly tighter vertical rhythm */
section:not(.page-hero):not(.hero) { padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 700px) {
  section:not(.page-hero):not(.hero) { padding-top: 44px; padding-bottom: 44px; }
  .offer-section + section:not(.offer-section):not(.contact),
  section:not(.offer-section):not(.page-hero):not(.hero) + .offer-section { padding-top: 64px; }
}

/* 6. Accessibility: contrast-safe colour tokens (WCAG AA) */
:root { --accent: #A64E2B; }
.offer-section, .page-hero, .hero, .contact, .proof { --gold: #F8E4B2; }
footer .logo span { color: #F8E4B2 !important; }
.breadcrumb, .breadcrumb a { color: rgba(247,244,238,0.92) !important; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { opacity: 1 !important; }
.offer-section .table-note, .offer-section .fine-print { opacity: 1 !important; color: rgba(247,244,238,0.92) !important; }
.compare-table td:first-child { color: rgba(247,244,238,0.95) !important; }
.contact-note { opacity: 1 !important; }
.contact .contact-detail .label { opacity: 1; color: rgba(247,244,238,0.85); }
.offer-section[style*="text-align:center"] a:not(.btn) { color: var(--accent) !important; text-decoration: underline; }

/* 7. Keyboard focus, skip link, tap comfort */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
.offer-section a:focus-visible, .page-hero a:focus-visible, .hero a:focus-visible, footer a:focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 1000; text-decoration: none; font-weight: 500; }
.skip-link:focus { left: 8px; }
a.logo { text-decoration: none; display: inline-block; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 8. Remaining low-contrast overrides on dark sections */
.compare-table .price-row td:first-child { opacity: 1 !important; }
.offer-section:not([style*="text-align:center"]) > .wrap > p[style*="opacity"], .page-hero p[style*="opacity"] { opacity: 1 !important; color: rgba(247,244,238,0.94); }
.offer-section:not([style*="text-align:center"]) a[style*="gold"], .offer-section a.table-link { color: #FBEBC4 !important; }
.page-hero p { color: #F7F4EE !important; opacity: 1 !important; }
.note-box a { color: #FFFFFF !important; text-decoration: underline; }

/* 9. Touch comfort */
.mobile-menu-toggle { min-width: 44px; min-height: 44px; }
.referral-contact a { display: inline-block; padding: 8px 4px; }
.featured-price-card .tag-badge { font-size: 12px; }

/* 10. Illustration (inline SVG line art, brand colours) */
.hero-art { position: absolute; right: max(24px, calc((100vw - 1120px) / 2)); bottom: 74px; width: 250px; height: auto;
  color: #F7F4EE; --art-accent: #F8E4B2; --art-bg: #3D6B5A; pointer-events: none; opacity: .92; z-index: 1; }
.hero .hero-art { bottom: 40px; }
.team-visual { display: flex; align-items: center; gap: 44px; margin: 8px 0 34px; max-width: 880px; }
.team-art { flex: 0 0 210px; width: 210px; height: auto; color: var(--sage-dark); --art-accent: var(--accent); --art-bg: #fff; }
.team-visual h3 { font-size: 24px; margin-bottom: 10px; }
.team-visual p { font-size: 16.5px; margin: 0; max-width: 520px; }
.offer-section .team-art { color: #F7F4EE; --art-accent: #F8E4B2; --art-bg: #3D6B5A; }
.offer-section .team-visual p { opacity: .95; }
@media (max-width: 1060px) { .hero-art { display: none; } }
@media (max-width: 700px) { .team-visual { flex-direction: column; align-items: flex-start; gap: 18px; } .team-art { width: 150px; flex-basis: auto; } }
.team-visual h3 { font-family: 'Playfair Display', serif; }

/* 11. Process steps: horizontal row on desktop instead of one long list */
@media (min-width: 901px) {
  .timeline { max-width: none !important; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
  .timeline-item { grid-template-columns: 1fr !important; gap: 14px !important; padding: 26px 22px 24px !important;
    background: rgba(247,244,238,0.07); border: 1px solid rgba(247,244,238,0.14); border-radius: 12px; }
  .timeline-item:not(:last-child)::before { display: none; }
  .timeline-item h3 { font-size: 19px; margin-bottom: 8px; }
  .timeline-item p { font-size: 14.5px; }
}
/* 12. Trust/value cards: tighter, even rhythm */
.trust-card, .value-card { padding-top: 24px; padding-bottom: 22px; }
.trust-grid { gap: 20px; }
.timeline-item { align-content: start; }
.pay-note { margin-top: 28px; max-width: 760px; font-size: 15px; color: rgba(247,244,238,0.92); border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; }

/* 13. Fit-check: heading left, list right, so the section isn't a narrow strip with empty space */
@media (min-width: 901px) {
  .wrap:has(> .fit-grid) { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 64px; align-items: start; }
  .wrap:has(> .fit-grid) > .eyebrow-label { grid-column: 1; grid-row: 1; }
  .wrap:has(> .fit-grid) > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .wrap:has(> .fit-grid) > .fit-grid { grid-column: 2; grid-row: 1 / span 3; margin-top: 0 !important; max-width: none !important; }
  .wrap:has(> .fit-grid) > *:not(.eyebrow-label):not(h2):not(.fit-grid) { grid-column: 1 / -1; }
}

/* 14. Split layout: heading left, body right (use on any .wrap with .split + .split-body) */
@media (min-width: 901px) {
  .split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 64px; align-items: start; }
  .split > .eyebrow-label { grid-column: 1; grid-row: 1; }
  .split > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .split > .split-body { grid-column: 2; grid-row: 1 / span 3; }
  .split > *:not(.eyebrow-label):not(h2):not(.split-body) { grid-column: 1 / -1; }
  .split-body > p:first-child { margin-top: 0; }
  .split + * , .split > .team-visual { margin-top: 34px; }
}

/* 15. Tile icons, enrollment flow steps, home 6-card grid */
.tile-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tile-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.table-note-light { margin-top: 26px; font-size: 14.5px; max-width: 760px; color: #3d3d39; }
.flow-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.flow-steps li { counter-increment: step; position: relative; background: #fff; border-radius: 12px; padding: 22px 18px 20px; box-shadow: 0 1px 0 rgba(26,26,24,0.06); display: flex; flex-direction: column; gap: 8px; }
.flow-steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 4px; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -20px; width: 20px; height: 2px; background: var(--sage-mid); }
.flow-steps strong { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--sage-dark); font-weight: 700; }
.flow-steps span { font-size: 14.5px; line-height: 1.5; color: #3d3d39; }
@media (min-width: 901px) { .why-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr; } .flow-steps li:not(:last-child)::after { display: none; } }
.note-light { margin-top: 26px; max-width: 760px; font-size: 15px; color: #2f2f2b; border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; }
@media (min-width: 901px) { .flow-steps li:not(:last-child)::after { right: -20px; } }

/* 16. Good-to-know cards, add-on cards, 4-up tiles */
.know-section { background: var(--sage-light); }
.know-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
.know-card { background: #fff; border-radius: 12px; border-left: 4px solid var(--gold); padding: 22px 24px; box-shadow: 0 1px 0 rgba(26,26,24,0.06); }
.know-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--sage-dark); margin: 0 0 8px; font-weight: 700; line-height: 1.3; }
.know-card p { font-size: 15px; line-height: 1.6; color: #2f2f2b; margin: 0; }
.know-card p + p { margin-top: 8px; }
.know-card a { color: var(--accent); }
.addon-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
.addon-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 0 rgba(26,26,24,0.06); display: flex; flex-direction: column; gap: 10px; }
.addon-card h3 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--sage-dark); margin: 0; font-weight: 700; }
.addon-card p { font-size: 15px; line-height: 1.6; color: #2f2f2b; margin: 0; }
.addon-price { align-self: flex-start; background: var(--gold-light); color: #6b4a0f; border: 1px solid #e6cf9a; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
@media (min-width: 901px) {
  .know-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .addon-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .trust-grid.four { grid-template-columns: repeat(4, 1fr); }
}

/* 17. Services dropdown */
header nav ul li.has-sub { position: relative; }
header nav ul li.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
header nav ul.submenu { display: none; }
@media (min-width: 901px) {
  header nav ul.submenu { position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 10px 0; margin-top: 6px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-light); border: 1px solid rgba(26,26,24,0.1); border-radius: 8px; box-shadow: 0 14px 28px rgba(26,26,24,0.12); z-index: 200; }
  header nav ul li.has-sub:hover > ul.submenu, header nav ul li.has-sub:focus-within > ul.submenu { display: flex; }
  header nav ul.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  header nav ul.submenu a { display: block; padding: 10px 20px; white-space: nowrap; }
  header nav ul.submenu a:hover, header nav ul.submenu a:focus-visible { background: var(--sage-light); }
}
@media (max-width: 900px) {
  header nav ul.submenu { display: flex; position: static; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0 0 16px; margin: 0; background: transparent; box-shadow: none; border: 0; }
  header nav ul li.has-sub > a::after { display: none; }
  header nav ul.submenu a { font-size: 14.5px; }
}

/* 18. Variety: stat strip, fact list, price list, open grid, trust row */
.stat-strip { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 34px 0 30px; }
.stat { border-top: 3px solid var(--accent); padding-top: 14px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1; font-weight: 900; color: var(--sage-dark); }
.stat-unit { font-size: 15px; font-weight: 600; color: var(--accent); margin-left: 8px; }
.stat p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #2f2f2b; max-width: 340px; }
.fact-list { margin: 30px 0 0; padding: 0; }
.fact-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-top: 1px solid rgba(42,77,64,0.22); }
.fact-row:last-child { border-bottom: 1px solid rgba(42,77,64,0.22); }
.fact-row dt { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--sage-dark); line-height: 1.3; }
.fact-row dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: #2f2f2b; }
.fact-row dd p { margin: 0; } .fact-row dd p + p { margin-top: 8px; }
.fact-row dd a { color: var(--accent); }
.price-list { list-style: none; margin: 30px 0 0; padding: 0; }
.price-list li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(42,77,64,0.22); align-items: start; }
.price-list li:last-child { border-bottom: 1px solid rgba(42,77,64,0.22); }
.price-name h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--sage-dark); margin: 0 0 6px; font-weight: 700; }
.price-name p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #2f2f2b; max-width: 640px; }
.price-list .addon-price { white-space: nowrap; }
.open-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 34px; }
.open-item h3 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--accent); margin: 0 0 8px; font-weight: 700; }
.open-item p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #2f2f2b; }
.trust-row { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
.trust-item { border-top: 3px solid var(--sage-mid); padding-top: 14px; }
.trust-item h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--sage-dark); margin: 0 0 6px; font-weight: 700; line-height: 1.3; }
.trust-item p { margin: 0; font-size: 15px; line-height: 1.55; color: #2f2f2b; }
.why-card { background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
@media (min-width: 901px) {
  .stat-strip { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .fact-row { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); column-gap: 56px; }
  .price-list li { grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
  .open-grid { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .trust-row { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.price-list .addon-price { align-self: center; }
.contact-detail .value a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-detail .value a[style] { text-decoration: none; }
