/* =============================================
   OT Practice — Main Stylesheet
   =============================================
   1.  Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Skip Link
   6.  Header & Navigation
   7.  Mobile Menu
   8.  Hero (Home)
   9.  Page Banner
   10. Sections
   11. Cards & Feature Grid
   12. Info Blocks
   13. Services & Fees
   14. Notices
   15. Forms
   16. Buttons
   17. Footer
   18. Back-to-Top
   19. Animations & Transitions
   20. Print
   ============================================= */

/* ─────────────────────────────────────────────
   1. Custom Properties
   ───────────────────────────────────────────── */
:root {
  /* Colour Palette */
  --clr-primary:        #0891b2; /* cyan-600  */
  --clr-primary-dark:   #477495; /* cyan-700  */
  --clr-primary-light:  #deeaf0; /* cyan-100  */
  --clr-secondary:      #a0becf; /* teal-700  */
  --clr-secondary-dark: #fda97e; /* teal-800  */
  --clr-cta:            #4e804d; /* everest green*/
  --clr-cta-dark:       #2f5230; /* emerald-700*/
  --clr-bg:             #f2f3ed; /* slate-50  */
  --clr-bg-alt:         #C8DCE3; /* cyan-50   */
  --clr-white:          #ffffff;
  --clr-text:           #0f172a; /* slate-900 */
  --clr-text-muted:     #475569; /* slate-600 */
  --clr-border:         #e2e8f0; /* slate-200 */
  --clr-error:          #dc2626;
  --clr-success:        #059669;
  --clr-warning-bg:     #fefce8;
  --clr-warning-border: #fde047;

  /* Typography */
  --font-heading: 'Libre Baskerville', serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Sizing */
  --nav-height:  72px;
  --max-width:   1200px;
  --section-gap: 5rem;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .06);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .08), 0 4px 6px -4px rgb(0 0 0 / .05);

  /* Radii */
  --radius-sm:  .375rem;
  --radius-md:  .5rem;
  --radius-lg:  .75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --tr-fast:  150ms ease;
  --tr-base:  200ms ease;
  --tr-slow:  300ms ease;

  /* Z-index scale */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 20;
  --z-modal:   30;
  --z-toast:   40;
  --z-nav:     50;
}

/* ─────────────────────────────────────────────
   2. Reset & Base
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--clr-primary-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--tr-base), text-decoration-color var(--tr-base);
}
a:hover  { text-decoration-color: currentColor; }
a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─────────────────────────────────────────────
   3. Typography
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-text);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: .875rem; }

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--clr-text-muted);
  max-width: 62ch;
}

.text-center   { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.center { display: block; margin-left: auto; margin-right: auto; }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────────
   4. Layout
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem;   } }

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ─────────────────────────────────────────────
   5. Skip Link
   ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: calc(var(--z-nav) + 10);
  padding: .5rem 1rem;
  background: var(--clr-primary-dark);
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--tr-fast);
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────
   6. Header & Navigation
   ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--tr-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px)  { .nav-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .nav-container { padding-inline: 2rem;   } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--clr-primary-dark); text-decoration-color: transparent; }
.nav-logo:focus-visible { outline-offset: 4px; }

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--clr-primary-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { color: #fff; }

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .875rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--tr-base), background-color var(--tr-base);
  white-space: nowrap;
  min-height: 44px;
}
.nav-link:hover    { color: var(--clr-primary-dark); background-color: var(--clr-bg-alt); }
.nav-link:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }
.nav-link.active   { color: var(--clr-primary-dark); background-color: var(--clr-primary-light); font-weight: 600; }

.nav-link--cta {
  background-color: var(--clr-cta);
  color: var(--clr-white) !important;
  font-weight: 600;
  padding-inline: 1.125rem;
  margin-left: .5rem;
}
.nav-link--cta:hover    { background-color: var(--clr-cta-dark); }
.nav-link--cta.active   { background-color: var(--clr-cta-dark); }

/* ─────────────────────────────────────────────
   7. Mobile Menu
   ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: .625rem;
  border-radius: var(--radius-md);
  transition: background-color var(--tr-base);
  cursor: pointer;
}
.nav-toggle:hover        { background-color: var(--clr-bg); }
.nav-toggle:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }
.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--tr-slow), opacity var(--tr-slow);
}

/* open state */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--clr-white);
    padding: 1.5rem 1rem 2rem;
    gap: .375rem;
    border-top: 1px solid var(--clr-border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--tr-slow);
    z-index: var(--z-overlay);
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-link { font-size: 1.1rem; padding: .75rem 1rem; justify-content: flex-start; }
  .nav-link--cta { margin-left: 0; margin-top: .5rem; justify-content: center; }
}

/* ─────────────────────────────────────────────
   8. Hero Section (Home Page)
   ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
  background-image:
    url('../images/header2.jpg'),
    linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,255,255,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  /* display: grid;
  grid-template-columns: 1fr; */
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.hero-content {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 90ch;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2rem;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(15,23,42,.82) 0%, rgba(15,23,42,.68) 58%, rgba(15,23,42,.12) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2rem;
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hero-content h1 {
  font-family: var(--font-body);
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(15,23,42,.4);
}

.hero-content .lead {
  color: var(--clr-white);
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(15,23,42,.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) { .hero-visual { display: none; } }

.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  max-width: 320px;
  width: 100%;
}
.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero-card-item:last-child { border-bottom: none; }
.hero-card-item svg { color: var(--clr-primary-light); flex-shrink: 0; margin-top: .125rem; }
.hero-card-item-text strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: .125rem; }
.hero-card-item-text span   { font-size: .8125rem; color: rgba(255,255,255,.75); }

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.trust-item svg { color: var(--clr-primary-light); }

/* ─────────────────────────────────────────────
   9. Page Banner (Inner Pages)
   ───────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
  color: var(--clr-white);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-banner h1 { color: var(--clr-white); margin-bottom: .75rem; }
.page-banner .lead { color: rgba(255,255,255,.85); margin-bottom: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.85); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ─────────────────────────────────────────────
   10. Sections
   ───────────────────────────────────────────── */
.section {
  padding-block: var(--section-gap);
}
.section--alt {
  background-color: var(--clr-bg-alt);
}
.section--white {
  background-color: var(--clr-bg);
}
.section--dark {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-secondary) 100%);
  background-image: url('../images/footer2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.section--dark .container {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 640px;
  padding: 3rem 3.5rem;
  border-radius: var(--radius-xl);
}
.section--dark .container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.75) 0%, rgba(15,23,42,.75) 100%, rgba(15,23,42,0) 100%);
}
.section--dark h2 { color: #fff; }
.section--dark p, .section--dark .lead { color: rgba(255,255,255,.85); }

.section-header {
  margin-bottom: 3rem;
}
.section-header.text-center { text-align: center; }
.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--clr-primary-dark);
  margin-bottom: .75rem;
}
.section--dark .section-subtitle { color: var(--clr-primary-light); }
.section-header h2 { margin-bottom: .75rem; }

/* ─────────────────────────────────────────────
   11. Cards & Feature Grid
   ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: box-shadow var(--tr-base), border-color var(--tr-base), transform var(--tr-base);
  cursor: default;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--clr-primary-dark);
  flex-shrink: 0;
}

.card h3 { margin-bottom: .625rem; font-size: 1.125rem; }
.card p   { color: var(--clr-text-muted); line-height: 1.65; font-size: 1.1rem; margin: 0; }

.services-carousel {
  max-width: 1040px;
  margin-inline: auto;
}

.services-carousel .carousel-wrapper {
  display: block;
}

.services-carousel .carousel-viewport {
  overflow: visible;
}

.services-carousel .carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
}

.services-carousel .carousel-track .card {
  min-width: 0;
}

.services-carousel .carousel-controls,
.services-carousel .carousel-dots {
  display: none;
}

/* ─────────────────────────────────────────────
   11b. FAQ Accordion
   ───────────────────────────────────────────── */
.faq-accordion {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
  width: 100%;
  box-sizing: border-box;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  background: var(--clr-white);
  transition: background .15s ease;
  width: 100%;
  box-sizing: border-box;
}
.section--alt .faq-question { background: var(--clr-bg-alt); }
.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--clr-text-muted);
}
.faq-item[open] > .faq-question::after { content: '−'; }

.faq-question:hover { background: #f1f5f9; }
.section--alt .faq-question:hover { background: #b8cdd6; }

.faq-answer {
  padding: .25rem 1.5rem 1.25rem;
  background: var(--clr-white);
  width: 100%;
  box-sizing: border-box;
}
.section--alt .faq-answer { background: var(--clr-bg-alt); }
section[aria-labelledby="coverage-faq-heading"] .faq-answer {
  background: #d8e7ec;
}
section[aria-labelledby="coverage-faq-heading"] .faq-question {
  background: #d8e7ec;
}
.faq-answer p {
  color: var(--clr-text-muted);
  line-height: 1.7;
  font-size: 1.1rem;
  margin: 0;
}
.faq-answer a { color: var(--clr-primary-dark); }

/* ─────────────────────────────────────────────
   12. Info Blocks (split content)
   ───────────────────────────────────────────── */
.info-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .info-block { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .info-block.reverse > :first-child { order: 2; }
  .info-block .info-block-content { display: flex; flex-direction: column; justify-content: center; }
}
.info-block--single { grid-template-columns: 1fr !important; }

.info-block-content h2 { margin-bottom: 1rem; }
.info-block-content p  { color: var(--clr-text-muted); }
.info-block-content p + p { margin-top: .875rem; }

.info-check-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.info-check-list--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 0;
}
.info-check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
}
.info-check-item svg {
  width: 20px;
  height: 20px;
  color: var(--clr-cta);
  flex-shrink: 0;
  margin-top: .125rem;
}

.approach-commitments {
  position: relative;
  padding-bottom: 7rem;
}
.approach-commitments-tree {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(72vw, 360px);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.approach-commitments-panel {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.approach-commitments-content {
  padding: .5rem;
}
.approach-commitments-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}
.approach-commitments-list {
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .approach-commitments {
    padding-left: 0;
    padding-bottom: 5rem;
  }
  .approach-commitments-tree {
    left: 0;
    width: clamp(240px, 24vw, 360px);
    transform: none;
  }
}

.info-block-visual {
  background: var(--clr-bg-alt);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--clr-border);
}

.education-qualifications {
  background: var(--clr-bg);
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-md);
}
.education-qualifications h2 {
  margin-bottom: 1.5rem;
}
.education-qualifications .info-check-list {
  gap: 1rem;
}
.education-qualifications .info-check-item {
  font-weight: 300;
  font-size: 1.1rem;
}
.professional-development {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.professional-development h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.professional-development p {
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .education-training-block {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    align-items: stretch;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat-item {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--clr-border);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-label {
  font-size: .8125rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   13. Services & Fees
   ───────────────────────────────────────────── */
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--tr-base), border-color var(--tr-base);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}

.service-card-header {
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--clr-border);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-dark);
  flex-shrink: 0;
}
.service-card-header h3 { font-size: 1.125rem; color: var(--clr-text); }
.service-card-header p  { font-size: .8125rem; color: var(--clr-text-muted); margin: .25rem 0 0; }

.service-card-body {
  padding: 1.5rem 1.75rem;
  flex: 1 1 auto;
}
.service-card-body p { font-size: 1.1rem; color: var(--clr-text-muted); line-height: 1.7; margin: 0; }
.service-card-body p + p { margin-top: .5rem; }

.service-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .375rem;
  min-height: 76px;
  margin-top: auto;
}
.service-card-footer .price { font-size: 1.1rem; font-weight: 700; color: var(--clr-text-muted); }
.service-card-footer .price-label { font-size: .9rem; color: var(--clr-text-muted); }

.service-tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  margin-top: 1rem;
}

/* Fees table */
.fees-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-white);
  font-size: 1.1rem;
}
.fees-table th {
  background: var(--clr-primary-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  white-space: nowrap;
}
.fees-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.fees-table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.fees-table td {
  padding: .9375rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
  line-height: 1.55;
}
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: var(--clr-bg); }
.fees-table td.fee-amount {
  font-weight: 700;
  color: var(--clr-primary-dark);
  white-space: nowrap;
}
.fee-free {
  font-weight: 700;
  color: var(--clr-cta);
}

/* ─────────────────────────────────────────────
   14. Notices
   ───────────────────────────────────────────── */
.notice {
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid;
}
.notice--info {
  background: var(--clr-bg-alt);
  border-color: var(--clr-primary-light);
  color: var(--clr-primary-dark);
}
.notice--info svg { color: var(--clr-primary-dark); flex-shrink: 0; margin-top: .125rem; }
.notice--info .notice-text { color: var(--clr-text); }
.notice--info .notice-text strong { color: var(--clr-primary-dark); }

.notice--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: var(--clr-cta-dark);
}
.notice--success svg { color: var(--clr-cta); flex-shrink: 0; margin-top: .125rem; }
.notice--success .notice-text { color: #166534; }

.notice--warning {
  background: var(--clr-warning-bg);
  border-color: var(--clr-warning-border);
}
.notice--warning svg { color: #ca8a04; flex-shrink: 0; margin-top: .125rem; }
.notice--warning .notice-text { color: #854d0e; }

.notice-text strong { display: block; margin-bottom: .25rem; }

/* ─────────────────────────────────────────────
   15. Forms
   ───────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.form-grid .field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .375rem; }

.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
}
.field .optional {
  font-weight: 400;
  color: var(--clr-text-muted);
}
.field .field-hint {
  font-size: .8125rem;
  color: var(--clr-text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
  line-height: 1.5;
  min-height: 44px;
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }

.field input:hover,
.field textarea:hover,
.field select:hover  { border-color: var(--clr-primary); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .15);
}

.field input.error,
.field textarea.error { border-color: var(--clr-error); }
.field .error-msg {
  font-size: .8125rem;
  color: var(--clr-error);
  font-weight: 500;
}

.field textarea { min-height: 140px; resize: vertical; }

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .25rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: unset;
  accent-color: var(--clr-primary-dark);
  cursor: pointer;
}

/* Form card */
.form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

/* Success / error state */
#form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
#form-success svg { color: var(--clr-cta); margin: 0 auto 1rem; }

/* ─────────────────────────────────────────────
   16. Buttons
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--tr-base), color var(--tr-base),
              border-color var(--tr-base), box-shadow var(--tr-base);
  min-height: 44px;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--clr-white);
  color: var(--clr-primary-dark);
}
.btn--primary:hover { background-color: var(--clr-primary-light); }

.btn--secondary {
  background-color: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.5);
}
.btn--secondary:hover { background-color: rgba(255,255,255,.1); border-color: #fff; }

.btn--cta {
  background-color: var(--clr-cta);
  color: var(--clr-white);
}
.btn--cta:hover { background-color: var(--clr-cta-dark); box-shadow: var(--shadow-md); }

.btn--outline {
  background-color: transparent;
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}
.btn--outline:hover { background-color: var(--clr-bg-alt); }

.btn--lg { padding: .875rem 2rem; font-size: 1.1rem; }

.btn:disabled, .btn.loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─────────────────────────────────────────────
   17. Footer
   ───────────────────────────────────────────── */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,.75);
  padding-block: 3rem 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-text h3 {
  font-family: var(--font-body);
  color: var(--clr-white);
  font-size: 1.125rem;
  margin-bottom: .625rem;
}
.footer-brand-text p { font-size: .875rem; line-height: 1.7; margin: 0; }

.footer-reg {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
}
.footer-reg svg { color: rgba(255,255,255,.4); }

.footer-col h4 {
  color: var(--clr-white);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links { display: flex; flex-direction: column; gap: .25rem; }
.footer-links li,
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-links li {
  line-height: 1.5;
}
.footer-links a {
  text-decoration: none;
  transition: color var(--tr-base);
  padding: .125rem 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: .375rem;
}
.footer-links a:hover { color: var(--clr-white); }
.footer-links a:focus-visible { outline: 2px solid var(--clr-primary); border-radius: var(--radius-sm); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}
.footer-contact-item svg { color: rgba(255,255,255,.4); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color var(--tr-base);
}
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,.85);
}

/* ─────────────────────────────────────────────
   18. Back-to-Top
   ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-raised);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--clr-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--tr-base), transform var(--tr-base);
  cursor: pointer;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--clr-secondary); }
.back-to-top:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }

/* ─────────────────────────────────────────────
   19. Animations & Transitions
   ───────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.fade-in {
  animation: fadeIn .4s ease forwards;
}


/* ─────────────────────────────────────────────
   20. Carousel
   ───────────────────────────────────────────── */
.carousel {
  position: relative;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 400ms ease;
  will-change: transform;
}

.carousel-track .card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

@media (max-width: 900px) {
  .carousel-track .card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 540px) {
  .carousel-track .card {
    flex: 0 0 100%;
  }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--tr-base), box-shadow var(--tr-base), color var(--tr-base);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--clr-primary-light);
  box-shadow: var(--shadow-md);
  color: var(--clr-primary-dark);
}

.carousel-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--tr-base), transform var(--tr-base);
}

.carousel-dot.active {
  background: var(--clr-cta);
  transform: scale(1.4);
}

@media (max-width: 767px) {
  .services-carousel {
    max-width: none;
  }

  .services-carousel .carousel-viewport {
    overflow: hidden;
  }

  .services-carousel .carousel-track {
    display: flex;
    justify-content: flex-start;
  }

  .services-carousel .carousel-track .card {
    flex: 0 0 100%;
  }

  .services-carousel .carousel-controls {
    display: flex;
  }

  .services-carousel .carousel-dots {
    display: flex;
  }
}

/* ─────────────────────────────────────────────
   21. Condition Badges
   ───────────────────────────────────────────── */
.condition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.badge {
  display: inline-block;
  padding: .4rem 3rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
}

.badge--blue-1 { background-color: #477495; }
.badge--green-2 { background-color: #40916c; }
.badge--green-3 { background-color: #52b788; }
.badge--green-4 { background-color: #74c69d; }
.badge--green-5 { background-color: #95d5b2; color: #1b4332; }
.badge--green-6 { background-color: #b7e4c7; color: #1b4332; }
.badge--green-7 { background-color: #d8f3dc; color: #1b4332; }
.badge--green-8 { background-color: #1b4332; }

/* ─────────────────────────────────────────────
   22. Privacy Policy
   ───────────────────────────────────────────── */
.privacy-content {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.privacy-content,
.privacy-content [data-custom-class='body'],
.privacy-content [data-custom-class='body'] * {
  font-family: var(--font-body) !important;
  color: var(--clr-text-muted) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.privacy-content [data-custom-class='title'],
.privacy-content [data-custom-class='title'] *,
.privacy-content h1 {
  font-family: var(--font-heading) !important;
  color: var(--clr-text) !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.25 !important;
}

.privacy-content [data-custom-class='subtitle'],
.privacy-content [data-custom-class='subtitle'] * {
  color: var(--clr-primary-dark) !important;
  font-size: .95rem !important;
}

.privacy-content [data-custom-class='heading_1'],
.privacy-content [data-custom-class='heading_1'] *,
.privacy-content h2 {
  font-family: var(--font-heading) !important;
  color: var(--clr-text) !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  line-height: 1.35 !important;
}

.privacy-content [data-custom-class='heading_2'],
.privacy-content [data-custom-class='heading_2'] *,
.privacy-content h3 {
  font-family: var(--font-heading) !important;
  color: var(--clr-primary-dark) !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
}

.privacy-content [data-custom-class='link'],
.privacy-content [data-custom-class='link'] *,
.privacy-content a {
  color: var(--clr-primary-dark) !important;
  font-size: inherit !important;
  font-family: inherit !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.privacy-content a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--clr-primary-dark) 35%, transparent);
  text-underline-offset: .16em;
}

.privacy-content a:hover {
  text-decoration-color: currentColor;
}

.privacy-content ul,
.privacy-content ol {
  list-style-position: outside;
  margin: .85rem 0 1.25rem 1.5rem;
}

.privacy-content ul { list-style-type: disc; }
.privacy-content ol { list-style-type: decimal; }

.privacy-content li {
  margin-block: .4rem;
  padding-left: .2rem;
}

.privacy-content div[style*="line-height"] {
  margin-block: .45rem;
}

.privacy-content br + br {
  display: none;
}

.privacy-content > span[style*="background: url(data:image/svg+xml"] {
  display: none !important;
}

@media (max-width: 640px) {
  .privacy-content {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
}

/* ─────────────────────────────────────────────
   23. Print
   ───────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .back-to-top, .hero-visual, .btn { display: none !important; }
  body  { background: #fff; color: #000; }
  .hero { background: transparent; color: #000; padding-block: 1rem; }
  .hero h1 { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
