/*
Theme Name: Allied Oncology
Theme URI: #
Author: Custom
Description: Allied Advanced Clinical Oncology Pharmacy Services
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: alliedoncology
*/

/*
 * Design tokens: semantic roles for surfaces, text, and accent.
 * One sans family (Inter) site-wide; cool-neutral surfaces only (no warm cream).
 */

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand primitives */
    --color-navy-950: #0C1A2E;
    --color-navy-800: #152843;
    --color-navy-700: #1E3A5F;
    --color-accent:   #0D9488;
    --color-accent-soft: #CCFBF1;

    /* Semantic surfaces */
    --surface-page:    #FFFFFF;
    --surface-muted:   #F4F6FA;
    --surface-elevated: #FFFFFF;
    --surface-inverse: var(--color-navy-950);

    /* Semantic text */
    --text-primary:   #141C28;
    --text-secondary: #3D4A5C;
    --text-muted:     #5E6B7A;
    --text-mid:       var(--text-secondary);
    --text-on-inverse-strong: rgba(255, 255, 255, 0.94);
    --text-on-inverse:        rgba(255, 255, 255, 0.82);
    --text-on-inverse-soft:   rgba(255, 255, 255, 0.68);

    /* Borders & focus */
    --border-subtle: rgba(15, 38, 62, 0.12);
    --border-strong: rgba(15, 38, 62, 0.18);

    /* Aliases for gradual migration in markup habits */
    --navy:       var(--color-navy-950);
    --navy-mid:   var(--color-navy-800);
    --navy-light: var(--color-navy-700);
    --teal:       var(--color-accent);
    --teal-light: var(--color-accent-soft);

    --accent:        var(--color-accent);
    --accent-muted:  var(--color-accent-soft);

    /* Typography: single family, fluid scale */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: var(--font-sans);

    --text-display: clamp(2.125rem, 4vw + 1rem, 3.5rem);
    --text-h2:      clamp(1.6rem, 2.2vw + 1rem, 2.35rem);
    --text-h3:      clamp(1.0625rem, 0.9vw + 0.85rem, 1.25rem);
    --text-body:    clamp(1rem, 0.12vw + 0.97rem, 1.0625rem);
    --text-label:   0.6875rem;

    --radius: 6px;
    --shadow-card: 0 1px 2px rgba(12, 26, 46, 0.06);
    --transition: 0.2s ease;

    --section-pad-y: clamp(3.25rem, 5vw, 5rem);
    --section-rule:  3px solid var(--accent);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-navy-700); }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
h1 {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
h2 {
    font-size: var(--text-h2);
    line-height: 1.18;
    font-weight: 700;
}
h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
h4, h5, h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section {
    padding: var(--section-pad-y) 0;
    border-top: 1px solid var(--border-subtle);
}
.section-alt { background: var(--surface-muted); }

/* Intent-led rhythm: sections ease in as they enter view (requires JS: html.js-reveal) */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js-reveal .reveal-on-scroll:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}
html.js-reveal .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    text-decoration: none;
    border-radius: var(--radius);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--surface-page);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--color-navy-800);
    border-color: var(--color-navy-800);
    color: var(--surface-page);
}
.btn-ghost {
    background: transparent;
    color: var(--text-on-inverse);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--surface-page);
    border-color: rgba(255, 255, 255, 0.55);
}
.btn-full { width: 100%; }

/* ===========================
   NAVIGATION
   =========================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background: var(--surface-page);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--border-subtle);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.logo-mark {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: var(--surface-page); }
.logo-text {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--surface-page);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.logo-sub {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-on-inverse-soft);
    display: block;
    line-height: 1;
    margin-top: 2px;
}
.site-header.scrolled .logo-text { color: var(--text-primary); }
.site-header.scrolled .logo-sub { color: var(--text-muted); }

.site-nav { display: flex; align-items: center; }
.site-nav > ul,
.site-nav > div > ul {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.site-nav > ul > li,
.site-nav > div > ul > li {
    perspective: 800px;
}
.site-nav li { list-style: none; }
.site-nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-on-inverse);
    border-radius: var(--radius);
    transform-style: preserve-3d;
    transition:
        transform 0.38s cubic-bezier(0.33, 1.35, 0.52, 1),
        background var(--transition),
        color var(--transition);
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible {
    transform: rotateY(-14deg);
}
.site-nav a.nav-link-home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    line-height: 0;
}
.site-nav a.nav-link-home .nav-home-icon {
    flex-shrink: 0;
}
.site-nav a.nav-link-home:hover,
.site-nav a.nav-link-home:focus-visible {
    transform: rotateY(-22deg) translateZ(4px);
}
.site-header.scrolled .site-nav a { color: var(--text-secondary); }
.site-nav a:hover,
.site-nav a.active {
    color: var(--surface-page);
    background: rgba(255, 255, 255, 0.12);
}
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active {
    color: var(--accent);
    background: var(--accent-muted);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--surface-page);
    border-radius: 2px;
    transition: all var(--transition);
}
.site-header.scrolled .menu-toggle span { background: var(--text-primary); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--surface-inverse);
    padding: clamp(7rem, 12vw, 8.75rem) 0 clamp(5rem, 10vw, 6.25rem);
    border-top: none;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1800&q=70&auto=format');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.14;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(12, 26, 46, 0.94) 0%,
        rgba(12, 26, 46, 0.88) 42%,
        rgba(12, 26, 46, 0.72) 100%
    );
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-eyebrow {
    display: inline-block;
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-muted);
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(13, 148, 136, 0.45);
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
}
.hero h1 {
    color: var(--text-on-inverse-strong);
    margin-bottom: 1.25rem;
    line-height: 1.12;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent-muted);
}
.hero-lead {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem);
    color: var(--text-on-inverse);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 640px;
}
.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}
.hero-proof {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.proof-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 2vw + 1rem, 1.875rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--surface-page);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.proof-item span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-on-inverse-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.proof-div {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* ===========================
   REALITY / PROBLEM SECTION
   =========================== */
.section-problem {
    background: var(--surface-muted);
    border-top: none;
    box-shadow: inset 0 var(--section-rule) 0 0 var(--accent);
}
.problem-header {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    max-width: 38rem;
}
.problem-header .eyebrow {
    margin-bottom: 0.5rem;
}
.problem-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.problem-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}
.problem-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.problem-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
}
.problem-item {
    padding: 0.875rem 1.1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 0.5rem;
    background: var(--surface-page);
    border-radius: 0 var(--radius) var(--radius) 0;
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(12, 26, 46, 0.06);
    transition: box-shadow var(--transition), border-left-color var(--transition);
}
.problem-item:hover {
    box-shadow: 0 4px 14px rgba(12, 26, 46, 0.08);
    border-left-color: var(--color-navy-700);
}
.problem-q {
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.problem-close {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}
.problem-answer {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Services band: muted canvas so cards separate from the page */
#services.section {
    background: var(--surface-muted);
}

/* ===========================
   SERVICES GRID (bento-style on wide screens)
   =========================== */
.section-label {
    max-width: 52rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
    max-width: 46rem;
}
.caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cap-card {
    background: var(--surface-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
}
.cap-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-card);
}
.cap-card-dark {
    background: linear-gradient(155deg, var(--color-navy-950) 0%, var(--color-navy-800) 55%, #162d4a 100%);
    border-color: rgba(255, 255, 255, 0.12);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.25rem);
}
.cap-num {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.65rem;
}
.cap-card-dark .cap-num { color: var(--accent-muted); }
.cap-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.cap-card-dark h3 { color: var(--text-on-inverse-strong); }
.cap-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.58;
}
.cap-card-dark .eyebrow { color: var(--accent-muted); }
.cap-card-dark p { color: var(--text-on-inverse-soft); }

/* Who we work with: split layout + pills (no divider "table") */
.cap-who-layout {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 1.5rem clamp(1.25rem, 4vw, 2.75rem);
    align-items: center;
}
.cap-who-intro .eyebrow {
    margin-bottom: 0.45rem;
}
.cap-who-lead {
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-on-inverse);
    margin-bottom: 1.15rem;
}
.cap-who-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cap-who-grid li {
    margin: 0;
}
.cap-who-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.72rem 0.9rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-on-inverse-strong);
    line-height: 1.38;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.cap-who-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: 0.38em;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
}
.cap-who-grid li:hover .cap-who-pill,
.cap-who-grid li:focus-within .cap-who-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}
.cap-who-cta {
    width: fit-content;
}
@media (max-width: 720px) {
    .cap-who-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .cap-who-grid {
        grid-template-columns: 1fr;
    }
    .cap-who-cta {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .caps-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1rem 1rem;
    }
    .caps-grid .cap-card:nth-child(1) { grid-column: span 4; }
    .caps-grid .cap-card:nth-child(2) { grid-column: span 4; }
    .caps-grid .cap-card:nth-child(3) { grid-column: span 4; }
    .caps-grid .cap-card:nth-child(4) { grid-column: span 6; }
    .caps-grid .cap-card:nth-child(5) { grid-column: span 6; }
    .caps-grid .cap-card:nth-child(6) { grid-column: span 12; }
}

/* ===========================
   PROOF SECTION
   =========================== */
.section-proof {
    background: var(--surface-inverse);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.proof-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.proof-stat-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 2rem;
}
.big-stat {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(3.25rem, 6vw + 1rem, 4.75rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-muted);
    line-height: 1;
    margin-bottom: 1rem;
}
.proof-stat-block p {
    font-size: 1.0625rem;
    color: var(--text-on-inverse);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}
.stat-cite {
    font-size: 0.8125rem;
    color: var(--text-on-inverse-soft);
    font-style: normal;
    line-height: 1.55;
    display: block;
}
.proof-points .eyebrow { color: var(--accent-muted); }
.proof-points h2 {
    color: var(--text-on-inverse-strong);
    margin-bottom: 2rem;
}
.proof-point-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.proof-point {
    padding-left: 1.25rem;
    border-left: 2px solid rgba(255, 255, 255, 0.14);
    transition: border-color var(--transition);
}
.proof-point:hover { border-left-color: var(--accent); }
.proof-point h4 {
    color: var(--text-on-inverse-strong);
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.proof-point p {
    font-size: 0.875rem;
    color: var(--text-on-inverse-soft);
    line-height: 1.6;
}

/* ===========================
   CONTACT
   =========================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-left h2 { margin-bottom: 1rem; }
.contact-left > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-detail-item {
    display: flex;
    gap: 1rem;
}
.cd-label {
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    min-width: 72px;
    padding-top: 0.15rem;
}
.cd-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
}
.contact-right {
    background: var(--surface-muted);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border: 1px solid var(--border-subtle);
}
.clean-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
}
.form-field label {
    display: block;
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--surface-page);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.clean-form .btn { margin-top: 0.25rem; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--surface-inverse);
    padding: clamp(3.5rem, 8vw, 5rem) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand-name {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-inverse-strong);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.footer-brand-sub {
    display: block;
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-muted);
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-on-inverse-soft);
    line-height: 1.65;
    max-width: 300px;
}
.footer-col h5 {
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--text-on-inverse-soft);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--surface-page); }
.footer-col a.nav-link-home--footer {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-on-inverse-soft);
}
.footer-col a.nav-link-home--footer:hover {
    color: var(--surface-page);
}
.footer-col a.nav-link-home--footer:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-on-inverse-soft);
}
.footer-contact-item svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    flex-shrink: 0;
}
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    flex-wrap: wrap;
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.38);
    margin-left: 1.25rem;
}
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.75); }

/* ===========================
   BACK TO TOP
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    background: var(--surface-inverse);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), background var(--transition);
    z-index: 999;
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.back-to-top svg { width: 16px; height: 16px; fill: var(--surface-page); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .problem-body { grid-template-columns: 1fr; gap: 1.5rem; }
    .caps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .caps-grid .cap-card:nth-child(n) {
        grid-column: span 1;
    }
    .proof-layout    { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin-inline: auto;
    }
    .hero-eyebrow {
        margin-inline: auto;
        margin-bottom: 1.1rem;
        padding: 0.45rem 1rem;
        max-width: min(100%, 20.5rem);
        line-height: 1.35;
        letter-spacing: 0.1em;
        font-size: 0.625rem;
        text-wrap: balance;
    }
    .hero-lead {
        margin-inline: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-proof {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
    }
    .proof-item span {
        display: inline-block;
        max-width: 12rem;
    }
    .caps-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; gap: 1rem; }
    .proof-div { width: 48px; height: 1px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .problem-item { padding: 0.875rem 1rem; }
    .problem-q { font-size: 1rem; line-height: 1.55; }
    .problem-intro { font-size: 1rem; }

    .cap-card { padding: 1.5rem; }
    .cap-card.cap-card-dark { padding: 1.35rem 1.2rem; }
    .big-stat { font-size: clamp(2.75rem, 12vw, 3.5rem); }
    .proof-stat-block { padding: 1.5rem; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--surface-page);
        padding: 1rem 1.25rem;
        box-shadow: 0 8px 24px rgba(12, 26, 46, 0.12);
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border-subtle);
    }
    .site-nav.open { display: flex; }
    .site-nav > ul,
    .site-nav > div > ul {
        flex-direction: column;
        gap: 0.125rem;
    }
    .site-nav a {
        color: var(--text-secondary) !important;
        padding: 0.625rem 0.75rem;
    }
    .site-nav a:focus-visible {
        transform: none;
    }
    .site-nav a:hover,
    .site-nav a.active {
        color: var(--accent) !important;
        background: var(--accent-muted);
        transform: none;
    }
    .menu-toggle { display: flex; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   WPFORMS OVERRIDES — match our theme design
───────────────────────────────────────────────────────────── */

/* Strip WPForms default container chrome */
.wpforms-wrapper,
.wpforms-container,
.wpforms-container-full,
div.wpforms-container-full { 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpforms-wrapper .wpforms-form { background: transparent !important; }

/* Field spacing */
.wpforms-wrapper .wpforms-form .wpforms-field { 
    padding: 0 0 1.25rem 0 !important;
}

/* Labels */
.wpforms-wrapper .wpforms-form .wpforms-field-label,
.wpforms-wrapper .wpforms-form .wpforms-field-label-inline {
    font-family: var(--font-sans) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.4rem !important;
}

/* All inputs */
.wpforms-wrapper .wpforms-form input[type="text"],
.wpforms-wrapper .wpforms-form input[type="email"],
.wpforms-wrapper .wpforms-form input[type="tel"],
.wpforms-wrapper .wpforms-form input[type="number"],
.wpforms-wrapper .wpforms-form input[type="url"],
.wpforms-wrapper .wpforms-form select,
.wpforms-wrapper .wpforms-form textarea {
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: var(--text-primary) !important;
    background: var(--surface-page) !important;
    border: 1.5px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.wpforms-wrapper .wpforms-form input:focus,
.wpforms-wrapper .wpforms-form select:focus,
.wpforms-wrapper .wpforms-form textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15) !important;
}

/* Name field — remove WPForms' 60% max-width cap so row fills the container */
.wpforms-wrapper .wpforms-form .wpforms-field-name .wpforms-field-row {
    max-width: 100% !important;
    width: 100% !important;
}

/* Dropdown height fix */
.wpforms-wrapper .wpforms-form select {
    height: auto !important;
    min-height: 3rem !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    padding-right: 2rem !important;
}

/* Submit button */
.wpforms-wrapper .wpforms-form .wpforms-submit-container { 
    padding: 0 !important; 
    margin-top: 0.5rem !important;
    background: transparent !important;
}

.wpforms-wrapper .wpforms-form button[type="submit"],
.wpforms-wrapper .wpforms-form .wpforms-submit {
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 0.75rem 2rem !important;
    width: auto !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
    box-shadow: none !important;
}

.wpforms-wrapper .wpforms-form button[type="submit"]:hover,
.wpforms-wrapper .wpforms-form .wpforms-submit:hover {
    background: #0e7490 !important;
    transform: translateY(-1px) !important;
}

/* Confirmation message */
.wpforms-confirmation-container-full,
div.wpforms-confirmation-container-full {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: var(--radius) !important;
    padding: 1.5rem !important;
    color: #15803d !important;
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* Validation errors */
.wpforms-wrapper label.wpforms-error {
    font-family: var(--font-sans) !important;
    font-size: 0.8rem !important;
    color: #dc2626 !important;
    margin-top: 0.25rem !important;
}

.wpforms-wrapper .wpforms-form input.wpforms-error,
.wpforms-wrapper .wpforms-form select.wpforms-error,
.wpforms-wrapper .wpforms-form textarea.wpforms-error {
    border-color: #dc2626 !important;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-on-scroll,
    html.js-reveal .reveal-on-scroll:not(.is-visible),
    html.js-reveal .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .site-nav > ul > li,
    .site-nav > div > ul > li {
        perspective: none;
    }
    .site-nav a,
    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.nav-link-home:hover,
    .site-nav a.nav-link-home:focus-visible {
        transform: none;
        transition: background var(--transition), color var(--transition);
    }
}
