/*
Theme Name: ClinicRankPro
Template: kadence
Description: ClinicRankPro child theme for Kadence. v2 implements the UI/UX Pro Max design system (design-system/clinicrankpro/MASTER.md): Trust & Authority pattern, Accessible & Ethical style, navy + blue-CTA palette, Figtree + Noto Sans, spacious density.
Version: 2.0.0
Author: ClinicRankPro
Text Domain: clinicrankpro
*/

/* ------------------------------------------------------------------
   1. Fonts (self-hosted variable fonts; no third-party requests)
   ------------------------------------------------------------------ */
@font-face { font-family: "Figtree";   font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-var.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/NotoSans-var.woff2") format("woff2"); }

/* ------------------------------------------------------------------
   2. Tokens — straight from MASTER.md. Kadence's --global-palette1..9 are remapped to them.
   ------------------------------------------------------------------ */
:root {
  --color-primary: #0F172A;        --color-on-primary: #FFFFFF;
  --color-secondary: #334155;      --color-on-secondary: #FFFFFF;
  --color-accent: #0369A1;         --color-on-accent: #FFFFFF;
  --color-accent-hover: #075985;
  --color-accent-soft: #E0F2FE;
  --color-background: #F8FAFC;     --color-foreground: #020617;
  --color-card: #FFFFFF;           --color-card-foreground: #020617;
  --color-muted: #E8ECF1;          --color-muted-foreground: #475569;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;    --color-on-destructive: #FFFFFF;
  --color-destructive-soft: #FEF2F2;
  --color-ring: #0F172A;

  --font-heading: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans", "Segoe UI", system-ui, sans-serif;

  /* Spacing: density 3/10 (spacious) */
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1.5rem; --space-lg: 2rem;
  --space-xl: 3rem; --space-2xl: 4rem; --space-3xl: 6rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --container: 1120px; --measure: 68ch; --gutter: 24px;
  --band-y: clamp(var(--space-xl), 7vw, var(--space-3xl));

  /* Kadence palette remap */
  --global-palette1: var(--color-accent);
  --global-palette2: var(--color-accent-hover);
  --global-palette3: var(--color-primary);
  --global-palette4: var(--color-secondary);
  --global-palette5: var(--color-muted-foreground);
  --global-palette6: var(--color-border);
  --global-palette7: var(--color-background);
  --global-palette8: var(--color-muted);
  --global-palette9: var(--color-card);
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ------------------------------------------------------------------
   3. Base typography (16px+ body, 1.5+ line-height, 4.5:1 contrast)
   ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body, body .entry-content, body .site-header, body .site-footer, body button, body input, body select, body textarea { font-family: var(--font-body); }
body { color: var(--color-secondary); background: var(--color-background); font-size: 1.0625rem; line-height: 1.6; font-variant-numeric: tabular-nums; }

h1, h2, h3, h4, .site-title a { font-family: var(--font-heading); color: var(--color-primary); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); font-weight: 700; line-height: 1.1; margin: 0 0 var(--space-md); max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; margin: 0 0 var(--space-sm); max-width: 28ch; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: var(--space-md) 0 var(--space-sm); }
h4 { font-size: 1.05rem; font-weight: 600; }

.entry-content p, .entry-content li { max-width: var(--measure); }
.entry-content p { margin: 0 0 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin: 0 0 var(--space-md); }
.entry-content li { margin: 0 0 var(--space-sm); }
.entry-content li::marker { color: var(--color-accent); }
.entry-content a:not(.wp-block-button__link) { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.entry-content a:not(.wp-block-button__link):hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }
.entry-content code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; background: var(--color-muted); padding: 0.1em 0.35em; border-radius: 4px; color: var(--color-primary); }

.crp-lead { font-size: 1.2rem; line-height: 1.55; color: var(--color-foreground); max-width: 58ch; }
.crp-reviewed { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: var(--space-sm); }

/* Interaction feedback: 150–300ms transitions, cursor-pointer, 44px targets */
a, button, summary, .wp-block-button__link, .header-button, .fluentform .ff-btn-submit { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, text-decoration-thickness 200ms ease; }
button, summary, [role="button"], .wp-block-button__link { cursor: pointer; }

/* ------------------------------------------------------------------
   4. Bands and containers
   ------------------------------------------------------------------ */
.crp-band { width: 100vw; margin-left: calc(50% - 50vw); padding: var(--band-y) var(--gutter); background: var(--color-card); }
body.content-width-fullwidth.content-style-unboxed .crp-band { width: auto; margin-left: 0; margin-right: 0; }
.crp-band--tint { background: var(--color-background); }
/* Head band: dark on every page (navy), white type, blue accents. */
.crp-band--head { background: var(--color-primary); color: #CBD5E1; padding-top: clamp(var(--space-xl), 7vw, var(--space-3xl)); padding-bottom: clamp(var(--space-xl), 6vw, var(--space-3xl)); border-bottom: 0; position: relative; overflow: hidden; }
.crp-band--head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 20%, rgba(3,105,161,0.35), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(3,105,161,0.18), transparent 60%); pointer-events: none; }
.crp-band--head > * { position: relative; }
.crp-band--head h1 { color: #fff; font-size: clamp(2.125rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; max-width: 20ch; }
.crp-band--head .crp-lead { color: #CBD5E1; font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.crp-band--head .crp-reviewed { color: #94A3B8; }
.crp-band--head a:not(.wp-block-button__link) { color: #7DD3FC; }
.entry-content .crp-band--head .wp-block-button__link { background: var(--color-accent); border-color: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -12px rgba(3,105,161,0.9); }
.entry-content .crp-band--head .wp-block-button__link:hover { background: #0284C7; border-color: #0284C7; }
.entry-content .crp-band--head .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); box-shadow: none; }
.entry-content .crp-band--head .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.crp-band--faq { background: var(--color-card); }
/* Draft notice on policy pages (remove the block when the attorney signs off) */
.crp-band--notice { background: #FFFBEB; border-bottom: 1px solid #FDE68A; padding-top: var(--space-md); padding-bottom: var(--space-md); }
.crp-band--notice .crp-draft-notice { margin: 0; font-size: 0.95rem; color: #78350F; max-width: none; }
.crp-band--notice .crp-draft-notice::before { content: "Draft"; display: inline-block; background: #B45309; color: #fff; font-weight: 600; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 4px; margin-right: 0.6rem; vertical-align: 1px; }
.crp-band--cta { background: var(--color-primary); color: #fff; padding: clamp(var(--space-xl), 6vw, var(--space-2xl)) var(--gutter); }
.crp-container { max-width: var(--container); margin: 0 auto; }
.crp-container--narrow { max-width: 760px; }
.crp-band > .wp-block-group__inner-container, .crp-container > .wp-block-group__inner-container { max-width: none; margin: 0; padding: 0; }
.crp-band h2:first-child, .crp-container > h2:first-child { margin-top: 0; }

/* Editorial split on wide screens (host = whichever element directly holds the H2 + content) */
@media (min-width: 1000px) {
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)) > .wp-block-group__inner-container,
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)):not(:has(> .wp-block-group__inner-container)) {
    display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); column-gap: clamp(var(--space-lg), 5vw, 5rem); align-items: start;
  }
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)) > .wp-block-group__inner-container > h2:first-child,
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)) > h2:first-child { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: var(--space-md); max-width: none; }
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)) > .wp-block-group__inner-container > :not(h2:first-child),
  .crp-band:not(.crp-band--head):not(.crp-band--faq):not(.crp-band--cta):not(.crp-band--proof) .crp-container:not(.crp-container--narrow):not(:has(.crp-table--pricing)) > :not(h2:first-child) { grid-column: 2; }
  .crp-band .crp-table { width: 100%; }
}

/* Hero: mission + credibility (answer card) */
.crp-hero .wp-block-columns { gap: clamp(var(--space-md), 4vw, var(--space-2xl)); align-items: center; }
.crp-hero .wp-block-column:first-child { flex-basis: 56%; }
.crp-hero .wp-block-column:last-child { flex-basis: 44%; }
@media (max-width: 781px) { .crp-hero .wp-block-columns { flex-direction: column; } .crp-hero .wp-block-column { flex-basis: auto !important; width: 100%; } }

/* ------------------------------------------------------------------
   4b. Hero visual stack: geo-grid + answer card + report card, layered.
   ------------------------------------------------------------------ */
.crp-hero .wp-block-column:first-child { flex-basis: 42%; }
.crp-hero .wp-block-column:last-child { flex-basis: 58%; }
/* Left column: geo-grid over the report card. Right column: the answer card, vertically centred. No overlaps. */
.crp-stack { display: grid; grid-template-columns: minmax(15rem, 16.5rem) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--space-md); align-items: start; }
/* In the stack the card is narrower, so the review count drops under the practice name. */
.crp-stack .crp-answer li { grid-template-columns: 1.6rem 1fr; }
.crp-stack .crp-answer li > span:last-child { grid-column: 2; white-space: normal; }
.crp-stack .crp-answer li.is-you > span:last-child { grid-column: 2; }
.crp-stack > * { min-width: 0; }
.crp-stack .crp-grid { grid-column: 1; grid-row: 1; width: 100%; }
.crp-stack .crp-report { grid-column: 1; grid-row: 2; width: 100%; }
.crp-stack .crp-answer { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; max-width: none; }
@media (max-width: 1100px) { .crp-stack { grid-template-columns: 1fr; } .crp-stack .crp-report { display: none; } .crp-stack .crp-grid { grid-column: 1; grid-row: 1; max-width: 22rem; } .crp-stack .crp-answer { grid-column: 1; grid-row: 2; } }
@media (max-width: 781px) {
  .crp-stack { grid-template-columns: 1fr; }
  .crp-stack .crp-grid, .crp-stack .crp-answer, .crp-stack .crp-report { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 0; }
  .crp-stack .crp-report { display: none; } /* keep the phone hero to two visuals */
  .crp-stack .crp-grid { max-width: 22rem; justify-self: center; }
}

/* Geo-grid heat map (inline SVG in a card) */
.crp-grid { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: var(--space-md); backdrop-filter: blur(6px); box-shadow: var(--shadow-xl); color: #E2E8F0; }
.crp-grid__title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: #fff; margin: 0 0 0.15rem; }
.crp-grid__meta { font-size: 0.78rem; color: #94A3B8; margin: 0 0 0.75rem; }
.crp-grid svg { display: block; width: 100%; height: auto; }
.crp-grid__legend { display: flex; gap: 1rem; font-size: 0.75rem; color: #94A3B8; margin: 0.75rem 0 0; }
.crp-grid__legend span::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: -1px; }
.crp-grid__legend .g::before { background: #22C55E; } .crp-grid__legend .a::before { background: #F59E0B; } .crp-grid__legend .r::before { background: #EF4444; }

/* Mini monthly report card */
.crp-report { background: var(--color-card); border-radius: var(--radius-md); padding: 1rem 1.1rem; box-shadow: var(--shadow-xl); color: var(--color-foreground); font-size: 0.85rem; }
.crp-report__title { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; margin: 0 0 0.1rem; color: var(--color-primary); }
.crp-report__meta { font-size: 0.72rem; color: var(--color-muted-foreground); margin: 0 0 0.6rem; }
.crp-report dl { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; margin: 0; }
.crp-report dt { color: var(--color-secondary); }
.crp-report dd { margin: 0; text-align: right; font-weight: 600; color: var(--color-primary); }
.crp-report dd small { display: block; font-weight: 500; font-size: 0.7rem; color: #15803D; }

/* Answer card on the dark hero keeps its white card treatment (contrast against navy) */
.crp-band--head .crp-answer { box-shadow: var(--shadow-xl); }

/* One orchestrated reveal on load; nothing on scroll. Off under reduced motion. */
@keyframes crp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .crp-band--head h1, .crp-band--head .crp-lead, .crp-band--head .wp-block-buttons, .crp-band--head .crp-reviewed { animation: crp-rise 420ms cubic-bezier(.2,.7,.2,1) both; }
  .crp-band--head .crp-lead { animation-delay: 60ms; } .crp-band--head .wp-block-buttons { animation-delay: 120ms; } .crp-band--head .crp-reviewed { animation-delay: 160ms; }
  .crp-stack .crp-grid { animation: crp-rise 520ms cubic-bezier(.2,.7,.2,1) 180ms both; }
  .crp-stack .crp-report { animation: crp-rise 520ms cubic-bezier(.2,.7,.2,1) 300ms both; }
  .crp-stack .crp-answer { animation: crp-rise 520ms cubic-bezier(.2,.7,.2,1) 420ms both; }
}

/* Product visuals row (home, "What does ClinicRankPro do?") */
.crp-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); list-style: none; padding: 0; margin: var(--space-md) 0 0; }
@media (max-width: 900px) { .crp-products { grid-template-columns: 1fr; } }
.crp-products li { margin: 0; max-width: none; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.crp-products figure { margin: 0; background: var(--color-primary); padding: var(--space-md); min-height: 11rem; display: flex; align-items: center; justify-content: center; }
.crp-products figure svg { width: 100%; max-width: 15rem; height: auto; display: block; }
.crp-products .crp-products__body { padding: var(--space-md); }
.crp-products h3 { margin: 0 0 var(--space-xs); font-size: 1.1rem; }
.crp-products p { margin: 0; font-size: 0.95rem; color: var(--color-muted-foreground); }
.crp-products a { color: var(--color-accent); }

/* ------------------------------------------------------------------
   5. Proof band (Trust & Authority: hero > proof > solution > CTA)
   ------------------------------------------------------------------ */
.crp-band--proof { background: var(--color-card); padding-top: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.crp-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .crp-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .crp-proof { grid-template-columns: 1fr; } }
.crp-proof li { margin: 0; max-width: none; background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); }
.crp-proof li strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-xs); }
.crp-proof li span { font-size: 0.95rem; color: var(--color-muted-foreground); }
.crp-proof li a { color: var(--color-accent); }
.crp-proof__icon { width: 1.5rem; height: 1.5rem; color: var(--color-accent); margin-bottom: var(--space-sm); display: block; }
.crp-proof-note { margin: var(--space-md) 0 0; font-size: 0.95rem; color: var(--color-muted-foreground); max-width: none; }

/* ------------------------------------------------------------------
   6. Answer card (credibility element in the hero and on the AI page)
   ------------------------------------------------------------------ */
.crp-answer { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md) var(--space-md) 1rem; box-shadow: var(--shadow-md); max-width: 30rem; font-size: 0.95rem; }
.crp-answer__prompt { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-primary); margin: 0 0 0.75rem; line-height: 1.3; }
.crp-answer__prompt::before { content: "\201C"; color: var(--color-accent); }
.crp-answer__prompt::after { content: "\201D"; color: var(--color-accent); }
.crp-answer__meta { font-size: 0.8rem; color: var(--color-muted-foreground); margin: 0 0 0.75rem; }
.crp-answer ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-border); }
.crp-answer li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); margin: 0; max-width: none; }
.crp-answer li > span:first-child { font-family: var(--font-heading); font-weight: 700; color: var(--color-accent); }
.crp-answer li > span:nth-child(2) { color: var(--color-foreground); }
.crp-answer li > span:last-child { font-size: 0.78rem; color: var(--color-muted-foreground); white-space: nowrap; }
.crp-answer li.is-you { background: var(--color-destructive-soft); margin: 0.35rem -0.75rem 0; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border-bottom: 0; }
.crp-answer li.is-you > span { color: var(--color-destructive); }
.crp-answer li.is-you > span:nth-child(2) { font-weight: 600; }
.crp-answer__foot { font-size: 0.78rem; color: var(--color-muted-foreground); margin: 0.75rem 0 0; }

/* ------------------------------------------------------------------
   7. Tables (rules-only; pricing highlights the recommended tier)
   ------------------------------------------------------------------ */
.crp-table table, .entry-content .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; border: 0; }
.crp-table th, .crp-table td { border: 0; border-bottom: 1px solid var(--color-border); padding: 0.75rem; text-align: left; vertical-align: top; }
.crp-table thead th { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); background: var(--color-muted); border-bottom: 2px solid var(--color-primary); }
.crp-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.crp-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.crp-table tbody td:first-child { color: var(--color-primary); font-weight: 500; }
.crp-table--pricing th:nth-child(3), .crp-table--pricing td:nth-child(3) { background: var(--color-accent-soft); }
.crp-table--pricing thead th:nth-child(3) { border-bottom-color: var(--color-accent); }
.crp-table--pricing thead th { font-size: 1rem; line-height: 1.35; }
.wp-block-table figcaption { font-size: 0.85rem; color: var(--color-muted-foreground); }
@media (max-width: 720px) {
  .crp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .crp-table table { min-width: 640px; }
  .crp-table--pricing table { min-width: 720px; }
  .crp-table--pricing tbody td:first-child { position: sticky; left: 0; background: inherit; }
}

/* ------------------------------------------------------------------
   8. FAQ (core Details block)
   ------------------------------------------------------------------ */
.entry-content .wp-block-details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-card); padding: 0.9rem var(--space-md); margin: 0 0 var(--space-sm); max-width: var(--measure); }
.entry-content .wp-block-details[open] { box-shadow: var(--shadow-sm); }
.entry-content .wp-block-details > summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-primary); list-style: none; position: relative; padding-right: 2rem; min-height: 44px; display: flex; align-items: center; }
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: translateY(-70%) rotate(45deg); transition: transform 200ms ease; }
.entry-content .wp-block-details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.entry-content .wp-block-details > p { margin: 0.75rem 0 0; }

/* ------------------------------------------------------------------
   9. Buttons (MASTER: primary accent, secondary outline navy), forms, CTA band
   ------------------------------------------------------------------ */
.wp-block-buttons { gap: 0.75rem; margin: var(--space-md) 0 0; }
.entry-content .wp-block-button__link, .fluentform .ff-btn-submit, .site-header .main-navigation li.crp-nav-button > a { min-height: 44px; display: inline-flex; align-items: center; }
.entry-content .wp-block-button__link { background: var(--color-accent); color: var(--color-on-accent); border-radius: var(--radius-sm); padding: 12px 24px; font-weight: 600; font-size: 1rem; border: 2px solid var(--color-accent); text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); box-shadow: var(--shadow-md); }
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--color-primary); color: #fff; }
.entry-content .crp-band--cta .wp-block-button__link { background: #fff; color: var(--color-primary); border-color: #fff; }
.entry-content .crp-band--cta .wp-block-button__link:hover { background: var(--color-accent-soft); border-color: var(--color-accent-soft); }
.entry-content .crp-band--cta .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.entry-content .crp-band--cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.crp-band--cta h2, .crp-band--cta p { color: #fff; }
.crp-band--cta p { max-width: 52ch; }

.fluentform .ff-el-form-control { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 16px; font-family: var(--font-body); background: var(--color-card); }
.fluentform .ff-el-form-control:focus { border-color: var(--color-ring); box-shadow: 0 0 0 3px rgba(15,23,42,0.13); outline: none; }
.fluentform .ff-el-input--label label { font-weight: 500; color: var(--color-primary); }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--color-destructive); }
.fluentform .ff-btn-submit { background: var(--color-accent); border: 0; border-radius: var(--radius-sm); font-weight: 600; padding: 12px 24px; font-family: var(--font-body); }
.fluentform .ff-btn-submit:hover { background: var(--color-accent-hover); }

/* ------------------------------------------------------------------
   10. Header and footer (Kadence markup + child-theme footer)
   ------------------------------------------------------------------ */
/* Dark header to run into the dark head band */
.site-header, .site-header .site-header-row-container-inner, .site-header .site-main-header-wrap, .site-header .site-header-row { background: var(--color-primary); }
.site-header { border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .site-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.site-header .site-title a, .site-header .site-branding a, .site-header .site-branding .site-title, .site-header .brand { color: #fff !important; text-decoration: none; }
.site-header .site-description { display: none; }
.site-header .main-navigation a { font-weight: 500; color: #E2E8F0; }
.site-header .main-navigation a:hover, .site-header .main-navigation .current-menu-item > a, .site-header .main-navigation .current-menu-ancestor > a, .site-header .main-navigation .current_page_item > a { color: #7DD3FC !important; }
.site-header .main-navigation .sub-menu { background: var(--color-primary); border: 1px solid rgba(255,255,255,0.1); }
.site-header .main-navigation .sub-menu a { color: #E2E8F0; }
.site-header .menu-toggle-open, .site-header .mobile-toggle-open-container button { color: #fff; }
.site-header .drawer-nav-drop-arrow, .site-header .dropdown-nav-toggle { color: #E2E8F0; }
#mobile-drawer .drawer-inner, #mobile-drawer .drawer-content { background: var(--color-primary); color: #E2E8F0; }
#mobile-drawer .mobile-navigation a { color: #fff; }
#mobile-drawer .drawer-header .drawer-toggle { color: #fff; }
.site-header .main-navigation li.crp-nav-button > a, .mobile-navigation li.crp-nav-button > a { background: var(--color-accent); color: #fff !important; border-radius: var(--radius-sm); padding: 0.55rem 1rem; margin-left: 0.5rem; font-weight: 600; }
.site-header .main-navigation li.crp-nav-button > a:hover { background: var(--color-accent-hover); }
.mobile-navigation li.crp-nav-button > a { display: inline-block; margin: 0.75rem 0 0; }

.crp-footer { font-size: 0.95rem; color: var(--color-secondary); }
.crp-footer__top { background: var(--color-muted); padding: clamp(var(--space-lg), 5vw, var(--space-xl)) var(--gutter); border-top: 1px solid var(--color-border); }
.crp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 720px) { .crp-footer__grid { grid-template-columns: 1fr; } }
.crp-footer__heading { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--color-primary); margin: 0 0 0.6rem; }
.crp-footer__list { list-style: none; margin: 0; padding: 0; }
.crp-footer__list li { margin: 0 0 0.35rem; }
.crp-footer p { margin: 0 0 0.75rem; max-width: 36ch; }
.crp-footer__small { font-size: 0.85rem; color: var(--color-muted-foreground); }
.crp-footer a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.crp-footer a:hover { color: var(--color-accent); }
.crp-footer__bottom { background: var(--color-primary); color: #cbd5e1; padding: 1rem var(--gutter); font-size: 0.85rem; text-align: center; }
.crp-footer__bottom a { color: #fff; }

.entry-hero.page-hero-section { display: none; }

/* ------------------------------------------------------------------
   10b. Cookie consent banner (consent.js). Navy on white text: 17:1; accent button 5:1.
   ------------------------------------------------------------------ */
.crp-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--color-primary); color: #E2E8F0; border-top: 1px solid rgba(255,255,255,0.14); box-shadow: 0 -10px 30px rgba(2,6,23,0.35); padding: var(--space-md) var(--gutter); padding-bottom: max(var(--space-md), env(safe-area-inset-bottom)); font-size: 0.95rem; line-height: 1.5; }
.crp-consent[hidden] { display: none; }
.crp-consent__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }
.crp-consent__text { margin: 0; max-width: 60ch; color: #fff; flex: 1 1 28rem; }
.crp-consent__gpc { margin: 0; flex-basis: 100%; font-size: 0.85rem; color: #94A3B8; }
.crp-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.crp-consent__btn { min-height: 44px; min-width: 44px; padding: 10px 20px; border-radius: var(--radius-sm); font: 600 0.95rem/1.2 var(--font-body); cursor: pointer; border: 2px solid transparent; }
.crp-consent__btn--accept { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.crp-consent__btn--accept:hover { background: #0284C7; border-color: #0284C7; }
.crp-consent__btn--accept[disabled] { opacity: 0.45; cursor: not-allowed; }
.crp-consent__btn--essential { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.crp-consent__btn--essential:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.crp-consent__sep { color: #64748B; }
.crp-consent__link { color: #7DD3FC; text-decoration: underline; text-underline-offset: 0.16em; min-height: 44px; display: inline-flex; align-items: center; }
.crp-consent__link:hover { color: #fff; }
.crp-consent a:focus-visible, .crp-consent button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes crp-consent-in { from { transform: translateY(100%); } to { transform: none; } }
  .crp-consent.is-open { animation: crp-consent-in 260ms cubic-bezier(.2,.7,.2,1) both; }
}
@media (max-width: 640px) {
  .crp-consent__inner { flex-direction: column; align-items: stretch; }
  .crp-consent__actions { justify-content: flex-start; }
  .crp-consent__btn { flex: 1 1 auto; }
}
.crp-footer__cookie { cursor: pointer; }

/* ------------------------------------------------------------------
   11. Accessibility and motion
   ------------------------------------------------------------------ */
a:focus-visible, button:focus-visible, summary:focus-visible, .wp-block-button__link:focus-visible, .header-button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }
html, body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
