/*
Theme Name: Serenity Transportation
Theme URI: https://serenity-transportation.com
Author: Serenity Transportation LLC
Author URI: https://serenity-transportation.com
Description: A professional, lightweight custom theme for Serenity Transportation — a Phase-1 registered Transportation Network Company (TNC) providing Non-Emergency Medical Transportation (NEMT) in Connecticut.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serenity-transportation
Tags: one-column, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ========================================================================
   CSS CUSTOM PROPERTIES — Anti-Gravity Minimalist Palette
   ======================================================================== */
:root {
    /* Neutral palette — stark white + charcoal */
    --st-white:        #FFFFFF;
    --st-off-white:    #F7F7F7;
    --st-surface:      #F3F3F3;
    --st-border:       #E4E4E4;
    --st-border-light: #EFEFEF;

    --st-ink:          #0D0D0D;   /* near-black for headlines */
    --st-text:         #333333;   /* body text */
    --st-text-light:   #6B6B6B;   /* secondary / caption */
    --st-text-muted:   #999999;   /* placeholder / hint */

    /* Single accent — clean emerald for "safety" signalling */
    --st-accent:       #0D0D0D;   /* primary button bg */
    --st-accent-hover: #2C2C2C;
    --st-success:      #1A7A4A;
    --st-success-bg:   #EAF5EE;
    --st-danger:       #C62828;
    --st-danger-bg:    #FFEBEE;
    --st-gold:         #B8860B;   /* kept for $250 badge only */
    --st-gold-bg:      #FFF8E1;

    /* Legacy aliases (used in existing markup — mapped to new palette) */
    --st-cream:        var(--st-off-white);
    --st-peach:        var(--st-surface);
    --st-peach-light:  var(--st-off-white);
    --st-peach-dark:   var(--st-border);
    --st-brown:        var(--st-ink);
    --st-brown-light:  var(--st-text);
    --st-brown-dark:   var(--st-ink);
    --st-black:        var(--st-ink);
    --st-blue:         #1565C0;

    /* Typography */
    --st-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --st-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --st-section-padding: 5rem 0;
    --st-container-max: 1200px;
    --st-radius:    12px;
    --st-radius-sm: 6px;
    --st-radius-lg: 20px;

    /* Shadows — neutral, no colour cast */
    --st-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --st-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    --st-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10), 0 16px 48px rgba(0, 0, 0, 0.08);
    --st-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.14);

    /* Transitions */
    --st-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --st-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================
   ANTI-GRAVITY KEYFRAMES
   ======================================================================== */
@keyframes st-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

@keyframes st-float-delayed {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

@keyframes st-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes st-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================================================================
   SCROLL REVEAL — classes toggled by IntersectionObserver in footer
   ======================================================================== */
.st-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.st-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.st-reveal-group > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.st-reveal-group.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.st-reveal-group.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.st-reveal-group.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.st-reveal-group.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.st-reveal-group.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.st-reveal-group.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* prevent horizontal scroll on all devices */
}

body {
    font-family: var(--st-font-primary);
    color: var(--st-text);
    background-color: var(--st-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--st-ink);
    text-decoration: none;
    transition: color var(--st-transition);
}

a:hover {
    color: var(--st-text-light);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--st-font-heading);
    color: var(--st-ink);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--st-text-light);
    line-height: 1.75;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.st-container {
    width: 90%;
    max-width: var(--st-container-max);
    margin: 0 auto;
}

.st-section {
    padding: var(--st-section-padding);
}

/* Neutralised section backgrounds */
.st-section--cream  { background-color: var(--st-off-white); }
.st-section--peach  { background-color: var(--st-off-white); }

.st-section--brown {
    background-color: var(--st-ink);
    color: var(--st-white);
}

.st-section--brown h2,
.st-section--brown h3,
.st-section--brown h4 {
    color: var(--st-white);
}

.st-section--brown p {
    color: rgba(255, 255, 255, 0.7);
}

.st-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.st-section-header h2 {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.st-section-header p {
    margin-top: 0;
    font-size: 1.05rem;
}

/* Badge — clean monochrome pill */
.st-badge {
    display: inline-block;
    background: var(--st-surface);
    color: var(--st-text);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border: 1px solid var(--st-border);
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--st-font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--st-transition);
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* Primary — solid black */
.st-btn--primary {
    background: var(--st-ink);
    color: var(--st-white);
    border-color: var(--st-ink);
}

.st-btn--primary:hover {
    background: var(--st-accent-hover);
    border-color: var(--st-accent-hover);
    color: var(--st-white);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-md);
}

/* Secondary — outlined */
.st-btn--secondary {
    background: transparent;
    color: var(--st-ink);
    border-color: var(--st-border);
}

.st-btn--secondary:hover {
    background: var(--st-surface);
    border-color: var(--st-ink);
    color: var(--st-ink);
    transform: translateY(-2px);
}

/* Gold — for $250 referral accent */
.st-btn--gold {
    background: var(--st-gold);
    color: var(--st-white);
    border-color: var(--st-gold);
}

.st-btn--gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-md);
    color: var(--st-white);
}

/* White inverse — for dark backgrounds */
.st-btn--white {
    background: var(--st-white);
    color: var(--st-ink);
    border-color: var(--st-white);
}

.st-btn--white:hover {
    background: var(--st-off-white);
    border-color: var(--st-off-white);
    transform: translateY(-2px);
}

/* ========================================================================
   TOP BAR
   ======================================================================== */
.st-topbar {
    background: var(--st-ink);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    font-size: 0.82rem;
    text-align: center;
    letter-spacing: 0.2px;
}

.st-topbar a {
    color: var(--st-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */
.st-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--st-border-light);
    transition: box-shadow var(--st-transition);
}

.st-header.scrolled {
    box-shadow: var(--st-shadow-sm);
}

.st-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

/* ---- Logo ---- */
.st-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* ---- Custom logo image: force black if WordPress logo is uploaded ---- */
.st-logo img,
.st-logo .custom-logo {
    filter: brightness(0);
    max-height: 50px;
    width: auto;
}

/*
 * ---- Typographic stacked logo (CSS fallback — matches brand reference image) ----
 *
 * Layout: centered column stack
 *   SERENITY        ← large, bold (~700wt), tight tracking
 *   TRANSPORTATION  ← smaller, regular weight, very wide letter-spacing
 *
 * Color: pure black (#000000) as specified.
 * Font:  Inter (already loaded via Google Fonts in functions.php).
 */
.st-logo__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.st-logo__primary {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.45rem;          /* matches the large SERENITY in the image */
    font-weight: 700;
    color: #000000;              /* pure black as specified */
    letter-spacing: 0.06em;     /* slight positive tracking — open and clean */
    text-transform: uppercase;
    line-height: 1;
}

.st-logo__secondary {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.58rem;          /* noticeably smaller — subordinate to SERENITY */
    font-weight: 400;
    color: #000000;              /* pure black, same as primary */
    letter-spacing: 0.28em;     /* very wide — matches the spaced TRANSPORTATION */
    text-transform: uppercase;
    line-height: 1;
}

/* Legacy fallback classes kept for backward compat */
.st-logo__icon {
    width: 40px;
    height: 40px;
    background: var(--st-ink);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-white);
    font-size: 1rem;
    font-weight: 800;
}

.st-logo__text {
    font-family: var(--st-font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--st-ink);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.st-logo__text small {
    display: block;
    font-family: var(--st-font-primary);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--st-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---- Navigation ---- */
.st-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.st-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-nav a {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--st-text);
    border-radius: var(--st-radius-sm);
    transition: all var(--st-transition);
}

.st-nav a:hover,
.st-nav a.active {
    color: var(--st-ink);
    background: var(--st-surface);
}

.st-nav .st-btn {
    margin-left: 0.5rem;
    padding: 0.55rem 1.4rem;
    font-size: 0.88rem;
}

/* ---- Mobile Hamburger ---- */
.st-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--st-ink);
}

.st-mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    margin: 5px 0;
    transition: all var(--st-transition);
    border-radius: 2px;
}

/* ========================================================================
   HERO SECTION — White canvas, no gradient noise
   ======================================================================== */
.st-hero {
    background: var(--st-white);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric accent — a faint circle in corner, barely there */
.st-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid var(--st-border);
    pointer-events: none;
}

.st-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid var(--st-border-light);
    pointer-events: none;
}

.st-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.st-hero__content {
    animation: st-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.st-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--st-ink);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
}

.st-hero__title span {
    color: var(--st-text-light);
    display: block;
    font-weight: 700;
}

.st-hero__subtitle {
    font-size: 1.1rem;
    color: var(--st-text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.st-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.st-hero__stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--st-border);
}

.st-hero__stat {
    text-align: left;
}

.st-hero__stat-value {
    font-family: var(--st-font-primary);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--st-ink);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.st-hero__stat-label {
    font-size: 0.78rem;
    color: var(--st-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.st-hero__visual {
    position: relative;
    z-index: 2;
    animation: st-fade-up 0.7s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Designed panel — replaces missing hero image */
.st-hero__panel {
    background: var(--st-ink);
    border-radius: var(--st-radius-lg);
    padding: 3rem 2.5rem;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: var(--st-shadow-lg);
    position: relative;
    overflow: hidden;
}

/* subtle corner accent */
.st-hero__panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.st-hero__panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.st-hero__panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.st-hero__panel-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.st-hero__panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.97rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}

.st-hero__panel-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(26, 122, 74, 0.25);
    color: #4ade80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 1px;
}

.st-hero__panel-foot {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    letter-spacing: -0.01em;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.75rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* ========================================================================
   VISITOR NOTICE — Clean bordered card, no heavy gradient
   ======================================================================== */
.st-notice {
    background: var(--st-ink);
    padding: 2rem 0;
}

.st-notice__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--st-radius);
    padding: 1.75rem 2rem;
}

.st-notice__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.st-notice__content h3 {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--st-font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.4rem;
}

.st-notice__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

/* ========================================================================
   COMMITMENT TO EXCELLENCE
   ======================================================================== */
.st-commitment__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.st-commitment-card {
    background: var(--st-white);
    border-radius: var(--st-radius);
    padding: 2rem 1.75rem;
    box-shadow: none;
    border: 1px solid var(--st-border);
    transition: transform var(--st-transition), box-shadow var(--st-transition), border-color var(--st-transition);
    text-align: left;
}

.st-commitment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--st-shadow-md);
    border-color: transparent;
}

.st-commitment-card__icon {
    width: 52px;
    height: 52px;
    background: var(--st-surface);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.st-commitment-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.st-commitment-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================================================
   FLIP CARDS — NEMT ABUSE SECTION
   ======================================================================== */
.st-abuse__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.st-flip-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.st-flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.st-flip-card.flipped .st-flip-card__inner {
    transform: rotateY(180deg);
}

.st-flip-card__front,
.st-flip-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--st-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-flip-card__front {
    background: var(--st-white);
    border: 1.5px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
}

.st-flip-card__front .card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--st-danger-bg);
    color: var(--st-danger);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.st-flip-card__front blockquote {
    font-family: var(--st-font-primary);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--st-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    border-left: 2px solid var(--st-border);
    padding-left: 1rem;
}

.st-flip-card__front .card-source {
    font-size: 0.78rem;
    color: var(--st-text-muted);
}

.st-flip-card__front .card-tap-hint {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.78rem;
    color: var(--st-text-muted);
    font-weight: 500;
}

.st-flip-card__back {
    background: var(--st-ink);
    color: var(--st-white);
    transform: rotateY(180deg);
    border-radius: var(--st-radius);
}

.st-flip-card__back .card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.st-flip-card__back h4 {
    color: var(--st-white);
    font-family: var(--st-font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.st-flip-card__back p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.st-flip-card__back .card-tap-hint {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

/* ========================================================================
   SERVICES
   ======================================================================== */
.st-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
}

.st-service-card {
    background: var(--st-white);
    border-radius: var(--st-radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--st-border);
    transition: transform var(--st-transition), box-shadow var(--st-transition), border-color var(--st-transition);
}

.st-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--st-shadow-md);
    border-color: transparent;
}

.st-service-card__icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.st-service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.st-service-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.st-service-card ul {
    list-style: none;
    padding: 0;
}

.st-service-card ul li {
    font-size: 0.88rem;
    color: var(--st-text-light);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--st-border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.st-service-card ul li::before {
    content: '→';
    color: var(--st-text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ========================================================================
   COVERAGE SECTION
   ======================================================================== */
.st-coverage {
    background: var(--st-ink);
    padding: 5rem 0 4rem;
    text-align: center;
}

.st-coverage__header {
    margin-bottom: 3rem;
}

.st-coverage__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
}

.st-coverage__title {
    color: var(--st-white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.st-coverage__sub {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
    margin-bottom: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.st-coverage__counties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 4rem;
}

.st-county-pill {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all var(--st-transition);
    cursor: default;
}

.st-county-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
    color: var(--st-white);
}

.st-coverage__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

.st-coverage__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.st-coverage__stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--st-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.st-coverage__stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.st-coverage__stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.st-cta {
    background: var(--st-ink);
    padding: 5rem 0;
}

.st-cta__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.st-cta__content h2 {
    color: var(--st-white);
    margin-bottom: 1rem;
}

.st-cta__content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.st-cta__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================================
   PAGE HERO (interior pages)
   ======================================================================== */
.st-page-hero {
    background: var(--st-off-white);
    padding: 4rem 0 3.5rem;
    border-bottom: 1px solid var(--st-border);
    text-align: center;
}

.st-page-hero h1 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.st-page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ========================================================================
   CAREERS PAGE — REFERRAL BANNER
   ======================================================================== */
.st-referral-banner {
    background: var(--st-success-bg);
    border: 1.5px solid var(--st-success);
    border-radius: var(--st-radius-lg);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.st-referral-banner__amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--st-success);
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.st-referral-banner__text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--st-ink);
    margin-bottom: 0.4rem;
}

.st-referral-banner__text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--st-text-light);
}

/* ========================================================================
   CAREERS PAGE — DRIVER LEAD-CAPTURE FORM
   ======================================================================== */
.st-driver-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 3rem;
    box-shadow: var(--st-shadow-sm);
}

.st-driver-form-wrap h2 {
    margin-bottom: 0.5rem;
}

.st-driver-form-wrap > p {
    margin-bottom: 2.5rem;
}

/* Qualifier question cards */
.st-qualifier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--st-border-light);
}

.st-qualifier:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.st-qualifier__label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--st-text);
    flex: 1;
}

.st-qualifier__options {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.st-qualifier__options label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--st-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--st-transition);
    color: var(--st-text);
    user-select: none;
}

.st-qualifier__options input[type="radio"] {
    display: none;
}

.st-qualifier__options input[type="radio"]:checked + span {
    /* handled via JS class toggle */
}

.st-qualifier__options label:has(input:checked) {
    border-color: var(--st-ink);
    background: var(--st-ink);
    color: var(--st-white);
}

/* ========================================================================
   JOB CARDS (legacy careers page sections kept minimal)
   ======================================================================== */
.st-jobs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.st-job-card {
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 2rem;
    transition: transform var(--st-transition), box-shadow var(--st-transition);
}

.st-job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--st-shadow-md);
}

.st-job-card__type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--st-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
}

.st-job-card h3 {
    margin-bottom: 0.3rem;
}

.st-job-card__location {
    font-size: 0.85rem;
    color: var(--st-text-muted);
    margin-bottom: 1rem;
}

.st-job-card h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--st-text-muted);
}

.st-job-card ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.st-job-card ul li {
    font-size: 0.9rem;
    color: var(--st-text-light);
    margin-bottom: 0.35rem;
}

/* ========================================================================
   REFERRAL STEPS (legacy)
   ======================================================================== */
.st-referral {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.st-referral__amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--st-gold);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.st-referral__steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.st-referral__step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.st-referral__step-num {
    width: 32px;
    height: 32px;
    background: var(--st-ink);
    color: var(--st-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.st-referral__step p {
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

/* ========================================================================
   FORMS — Universal
   ======================================================================== */
.st-application-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 3rem;
}

.st-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.st-form-group {
    margin-bottom: 1.25rem;
}

.st-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--st-text);
    margin-bottom: 0.4rem;
}

.st-input,
.st-select,
.st-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    font-family: var(--st-font-primary);
    font-size: 0.95rem;
    color: var(--st-ink);
    background: var(--st-white);
    transition: border-color var(--st-transition), box-shadow var(--st-transition);
    appearance: none;
    -webkit-appearance: none;
}

.st-input::placeholder,
.st-textarea::placeholder {
    color: var(--st-text-muted);
}

.st-input:focus,
.st-select:focus,
.st-textarea:focus {
    outline: none;
    border-color: var(--st-ink);
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.06);
}

.st-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.st-textarea {
    resize: vertical;
    min-height: 120px;
}

.st-form-note {
    display: block;
    font-size: 0.78rem;
    color: var(--st-text-muted);
    margin-top: 0.3rem;
}

.required {
    color: var(--st-danger);
}

/* Email capture field (big, prominent) */
.st-email-capture {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.st-email-capture .st-input {
    flex: 1;
    min-width: 220px;
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
}

.st-email-capture .st-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---- Success state ---- */
.st-form-success {
    display: none;
    background: var(--st-success-bg);
    color: var(--st-success);
    border: 1px solid rgba(26, 122, 74, 0.25);
    border-radius: var(--st-radius-sm);
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.st-form-success.visible {
    display: block;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.st-footer {
    background: var(--st-ink);
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 2rem;
}

.st-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.st-footer__brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.25rem;
    line-height: 1.7;
}

.st-footer h4 {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
}

.st-footer__links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.st-footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--st-transition);
}

.st-footer__links a:hover {
    color: var(--st-white);
}

.st-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.st-footer__contact-item .icon {
    font-size: 1rem;
    opacity: 0.4;
}

.st-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.st-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.st-footer__legal a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--st-transition);
}

.st-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer logo */
.st-footer .st-logo__text,
.st-footer .st-logo__icon {
    color: var(--st-white) !important;
}

/* ========================================================================
   CONTACT / GENERAL PAGE
   ======================================================================== */
.st-page-content {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--st-section-padding);
}

.st-page-content h2 { margin: 2rem 0 1rem; }
.st-page-content h3 { margin: 1.5rem 0 0.75rem; }
.st-page-content p  { margin-bottom: 1.25rem; }

.st-page-content ul,
.st-page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.st-page-content ul { list-style: disc; }
.st-page-content ol { list-style: decimal; }

.st-page-content li {
    font-size: 0.95rem;
    color: var(--st-text-light);
    margin-bottom: 0.4rem;
}

/* ========================================================================
   404 PAGE
   ======================================================================== */
.st-404 {
    text-align: center;
    padding: 8rem 0;
}

.st-404 h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    color: var(--st-surface);
    line-height: 1;
    margin-bottom: 0;
}

.st-404 h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.st-404 p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ========================================================================
   RESPONSIVE — TIER 1: TABLET (≤1024px)
   Desktop side-by-side breaks down. Hamburger nav replaces inline nav.
   Hero switches to flex column: text block always above black panel.
   ======================================================================== */
@media (max-width: 1024px) {

    /* --- Navigation: hamburger + full-screen overlay --- */
    .st-mobile-toggle {
        display: flex;
        flex-direction: column;
    }

    .st-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: #ffffff;
        z-index: 9999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .st-nav.open {
        display: flex;
    }

    .st-nav a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .st-nav .st-btn {
        margin-left: 0;
    }

    /* --- Hero: flex column, text top, panel below, everything centered --- */
    .st-hero::before,
    .st-hero::after {
        display: none; /* hide decorative circles — they bleed on narrow screens */
    }

    .st-hero__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .st-hero__content {
        width: 100%;
        max-width: 640px;
        text-align: center;
        margin: 0 auto;
    }

    .st-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 540px;
    }

    .st-hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .st-hero__stats {
        justify-content: center;
    }

    .st-hero__stat {
        text-align: center;
    }

    .st-hero__visual {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .st-hero__panel {
        min-height: auto;
    }

    /* --- Grids: reduce to 2 columns at tablet --- */
    .st-commitment__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .st-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .st-referral {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================================================
   RESPONSIVE — TIER 2: MOBILE (≤767px)
   All multi-column grids collapse to 1 column. Reduced padding everywhere.
   Hero buttons stack full-width. Footer stacks and centers.
   ======================================================================== */
@media (max-width: 767px) {
    :root {
        --st-section-padding: 3rem 0;
    }

    /* --- All grids → single column --- */
    .st-commitment__grid,
    .st-services__grid,
    .st-abuse__grid,
    .st-jobs__grid,
    .st-footer__grid {
        grid-template-columns: 1fr;
    }

    .st-form-row {
        grid-template-columns: 1fr;
    }

    /* --- Forms --- */
    .st-application-form,
    .st-driver-form-wrap {
        padding: 1.5rem;
    }

    /* --- Hero --- */
    .st-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .st-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .st-hero__subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .st-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .st-hero__actions .st-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    .st-hero__stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .st-hero__panel {
        padding: 1.75rem 1.5rem;
    }

    /* --- Referral banner: stack vertically --- */
    .st-referral-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.75rem;
        text-align: center;
    }

    /* --- Coverage stats --- */
    .st-coverage__stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .st-coverage__stat-divider {
        display: none;
    }

    /* --- Footer --- */
    .st-footer__grid {
        gap: 2rem;
    }

    .st-footer__bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .st-footer__legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* --- Email capture --- */
    .st-email-capture {
        flex-direction: column;
    }

    .st-email-capture .st-input {
        min-width: unset;
        width: 100%;
    }

    /* --- Qualifier --- */
    .st-qualifier {
        flex-direction: column;
        align-items: flex-start;
    }

    /* --- CTA actions --- */
    .st-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================================
   RESPONSIVE — TIER 3: SMALL PHONE (≤480px)
   Further reduce padding and font sizes for phones like iPhone SE (375px).
   ======================================================================== */
@media (max-width: 480px) {
    .st-hero__panel {
        padding: 1.5rem 1.25rem;
        border-radius: var(--st-radius);
    }

    .st-hero__panel-list li {
        font-size: 0.9rem;
    }

    .st-county-pill {
        padding: 0.45rem 1rem;
        font-size: 0.82rem;
    }

    .st-referral-banner__amount {
        font-size: 2.5rem;
    }

    .st-flip-card {
        height: 280px;
    }

    .st-notice__inner {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================================================
   RESPONSIVE — TIER 4: 320px NOKIA / LEGACY BASELINE
   Absolute floor. Everything must fit inside 320px without horizontal scroll.
   ======================================================================== */
@media (max-width: 360px) {
    :root {
        --st-section-padding: 2.5rem 0;
    }

    .st-container {
        width: 94%;
    }

    .st-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.875rem;
    }

    .st-hero__panel {
        padding: 1.25rem 1rem;
    }

    .st-hero__stat-value {
        font-size: 1.3rem;
    }

    .st-coverage__stats {
        gap: 0.75rem;
    }

    .st-coverage__stat-num {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .st-referral-banner {
        padding: 1.25rem;
    }

    .st-referral-banner__amount {
        font-size: 2rem;
    }

    .st-application-form,
    .st-driver-form-wrap {
        padding: 1.25rem;
    }
}
