/* ============================================================================
   SAVE MORE WITH TODD VANMOER: "Workbench" Demo Site (Direction B)
   Eden Prairie, MN: Independent Insurance Agency
   Practical, workshop-like, checklist-driven. Spruce, amber, bone.

   Contrast notes:
   - Amber (#E8A33D) is NEVER used as text on bone/white (fails AA).
     It appears only as button backgrounds paired with dark spruce text,
     and as rules, borders, badges, and dividers.
   - Amber ink (#B97612) is reserved for display/large accents only.
   - Links and body accents use the spruce family, which passes AA on
     bone (#F5F3EC), bone-alt (#ECE8DC), and white.
   ============================================================================ */

/* ---- Custom Properties ---- */
:root {
    --sw-font-heading: 'Archivo', sans-serif;
    --sw-font-body: 'Inter', sans-serif;
    --sw-radius: 10px;
    --sw-radius-lg: 14px;
    --sw-spruce: #1E3A2F;
    --sw-spruce-light: #2E5646;
    --sw-spruce-dark: #142A21;
    --sw-amber: #E8A33D;
    --sw-amber-light: #F0B85F;
    --sw-amber-ink: #B97612;
    --sw-bone: #F5F3EC;
    --sw-bone-alt: #ECE8DC;
    --sw-text-muted: #55604F;
    --sw-shadow: 0 2px 8px rgba(30, 58, 47, 0.08);
    --sw-shadow-lg: 0 8px 24px rgba(30, 58, 47, 0.12);
    --sw-shadow-xl: 0 16px 48px rgba(30, 58, 47, 0.14);
    --sw-transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Typography Override ---- */
body {
    font-family: var(--sw-font-body);
    background: var(--sw-bone);
    color: var(--sw-spruce);
}

h1, h2, h3, h4, h5, h6,
.demo-logo__name,
.demo-hero h1,
.demo-page-hero h1,
.demo-section h2,
.demo-cta-bar__content h2,
.demo-stats-bar__number,
.demo-footer__logo,
.sw-section h2 {
    font-family: var(--sw-font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.demo-logo__name {
    font-family: var(--sw-font-heading);
    color: var(--sw-spruce);
    font-weight: 800;
}

/* ---- Button Overrides ---- */
.demo-btn {
    border-radius: var(--sw-radius);
    font-family: var(--sw-font-body);
    font-weight: 600;
    transition: all var(--sw-transition);
}

.demo-btn--primary {
    background: var(--sw-spruce);
    color: #fff;
}

.demo-btn--primary:hover {
    background: var(--sw-spruce-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 58, 47, 0.3);
}

/* Secondary: amber border, spruce text (amber never used as small text) */
.demo-btn--secondary {
    border-color: var(--sw-amber);
    color: var(--sw-spruce);
    background: transparent;
}

.demo-btn--secondary:hover {
    background: rgba(232, 163, 61, 0.14);
    color: var(--sw-spruce-dark);
    border-color: var(--sw-amber-ink);
}

/* ---- Link Overrides ----
   Links stay spruce on light backgrounds; amber fails AA as link text. */
a {
    color: var(--sw-spruce);
}

a:hover {
    color: var(--sw-spruce-dark);
}

.demo-link {
    color: var(--sw-spruce);
    font-weight: 600;
    font-family: var(--sw-font-body);
    border-bottom: 2px solid var(--sw-amber);
    text-decoration: none;
}

.demo-link:hover {
    color: var(--sw-spruce-dark);
    border-bottom-color: var(--sw-amber-ink);
}

/* ---- Nav Overrides ---- */
.demo-header {
    background: rgba(245, 243, 236, 0.95);
    border-bottom: 1px solid rgba(30, 58, 47, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.demo-header--scrolled {
    box-shadow: 0 2px 16px rgba(30, 58, 47, 0.08);
    background: rgba(245, 243, 236, 0.97);
}

.demo-nav a:hover,
.demo-nav__trigger:hover {
    color: var(--sw-spruce);
    background: var(--sw-bone-alt);
}

.demo-nav__menu {
    border-radius: var(--sw-radius);
    border-color: rgba(30, 58, 47, 0.1);
}

/* ============================================================================
   WORKBENCH HERO: solid spruce gradient, amber rule, no photography
   ============================================================================ */
.sw-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 110px 0 90px;
    background: linear-gradient(160deg, var(--sw-spruce-dark) 0%, var(--sw-spruce) 55%, var(--sw-spruce-light) 100%);
}

.sw-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.sw-hero h1 {
    font-family: var(--sw-font-heading);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

/* Amber rule as a display accent under the headline */
.sw-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: var(--sw-amber);
}

.sw-hero__description {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 32px;
}

.sw-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Amber button background WITH dark spruce text (AA-verified pairing) */
.sw-hero__actions .demo-btn--primary {
    background: var(--sw-amber);
    color: var(--sw-spruce-dark);
    font-weight: 700;
}

.sw-hero__actions .demo-btn--primary:hover {
    background: var(--sw-amber-light);
    color: var(--sw-spruce-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sw-hero__actions .demo-btn--secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.sw-hero__actions .demo-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.sw-hero__trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    opacity: 0.9;
}

.sw-hero__trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================================
   SVG WAVE DIVIDERS
   ============================================================================ */
.sw-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.sw-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.sw-wave--flip svg {
    transform: scaleY(-1);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.sw-section {
    padding: 72px 0;
    position: relative;
}

.sw-section--bone {
    background: var(--sw-bone);
}

.sw-section--alt {
    background: var(--sw-bone-alt);
}

.sw-section--white {
    background: #fff;
}

.sw-section--tight {
    padding-top: 0;
}

.sw-section h2 {
    font-family: var(--sw-font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--sw-spruce-dark);
    margin-bottom: 8px;
}

.sw-section__subtitle {
    color: var(--sw-text-muted);
    font-size: 1.0625rem;
    margin-bottom: 36px;
    font-family: var(--sw-font-body);
}

.demo-section h2 {
    color: var(--sw-spruce-dark);
}

/* ============================================================================
   TRUST ROW: "Why Work with Todd" Cards
   ============================================================================ */
.sw-trust-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sw-trust-card {
    background: #fff;
    border-radius: var(--sw-radius-lg);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid rgba(30, 58, 47, 0.1);
    box-shadow: var(--sw-shadow);
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
    position: relative;
    overflow: hidden;
}

/* Amber top rule: decorative accent, not text */
.sw-trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sw-amber), var(--sw-amber-light));
    border-radius: var(--sw-radius-lg) var(--sw-radius-lg) 0 0;
}

.sw-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-lg);
}

.sw-trust-card__icon {
    font-size: 2.25rem;
    margin-bottom: 16px;
    display: block;
    color: var(--sw-spruce);
}

.sw-trust-card h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.2rem;
    color: var(--sw-spruce-dark);
    margin-bottom: 8px;
}

.sw-trust-card p {
    font-size: 0.9375rem;
    color: var(--sw-text-muted);
    line-height: 1.6;
}

/* ============================================================================
   BEFORE / AFTER A COVERAGE REVIEW: text comparison cards
   ============================================================================ */
.sw-ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.sw-ba-card {
    background: #fff;
    border-radius: var(--sw-radius-lg);
    padding: 32px 28px;
    border: 1px solid rgba(30, 58, 47, 0.1);
    box-shadow: var(--sw-shadow);
    position: relative;
}

.sw-ba-card--before {
    border-top: 4px solid var(--sw-amber);
}

.sw-ba-card--after {
    border-top: 4px solid var(--sw-spruce);
}

.sw-ba-card__tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    font-family: var(--sw-font-body);
}

/* Amber badge background with dark spruce text (AA pairing) */
.sw-ba-card__tag--before {
    background: var(--sw-amber);
    color: var(--sw-spruce-dark);
}

.sw-ba-card__tag--after {
    background: var(--sw-spruce);
    color: #fff;
}

.sw-ba-card h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.25rem;
    color: var(--sw-spruce-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.sw-ba-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-ba-card__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--sw-text-muted);
}

.sw-ba-card--before .sw-ba-card__list li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--sw-amber-ink);
    font-size: 1.05rem;
}

.sw-ba-card--after .sw-ba-card__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--sw-spruce);
    font-size: 1.05rem;
}

/* ============================================================================
   ANNUAL RHYTHM: coverage review cadence cards
   ============================================================================ */
.sw-rhythm-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sw-rhythm-card {
    background: #fff;
    border-radius: var(--sw-radius-lg);
    padding: 28px 26px;
    border: 1px solid rgba(30, 58, 47, 0.1);
    border-left: 4px solid var(--sw-amber);
    box-shadow: var(--sw-shadow);
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
}

.sw-rhythm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sw-shadow-lg);
}

/* Season chip: spruce background with white text */
.sw-rhythm-card__season {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--sw-spruce);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-family: var(--sw-font-body);
}

.sw-rhythm-card h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.1rem;
    color: var(--sw-spruce-dark);
    margin-bottom: 8px;
}

.sw-rhythm-card p {
    font-size: 0.9375rem;
    color: var(--sw-text-muted);
    line-height: 1.6;
}

/* ============================================================================
   SERVICE CARDS: Workbench style, no imagery
   ============================================================================ */
.sw-service-card {
    background: #fff;
    border-radius: var(--sw-radius);
    border: 1px solid rgba(30, 58, 47, 0.08);
    border-left: 4px solid var(--sw-spruce);
    overflow: hidden;
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
    box-shadow: var(--sw-shadow);
}

.sw-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-xl);
    border-left-color: var(--sw-amber);
}

.sw-service-card__body {
    padding: 24px;
}

.sw-service-card h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.sw-service-card h3 a {
    color: var(--sw-spruce-dark);
    text-decoration: none;
}

.sw-service-card h3 a:hover {
    color: var(--sw-spruce-light);
}

.sw-service-card p {
    color: var(--sw-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sw-service-card .demo-link {
    font-size: 0.9375rem;
}

/* ============================================================================
   SITUATION MAP: grid of common Minnesota situations
   ============================================================================ */
.sw-situations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sw-situation {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--sw-radius);
    border: 1px solid rgba(30, 58, 47, 0.1);
    padding: 26px 24px;
    text-decoration: none;
    box-shadow: var(--sw-shadow);
    transition: transform var(--sw-transition), box-shadow var(--sw-transition), border-color var(--sw-transition);
    position: relative;
    overflow: hidden;
}

/* Amber corner rule as a quiet accent */
.sw-situation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--sw-amber);
}

.sw-situation:hover {
    transform: translateY(-4px);
    box-shadow: var(--sw-shadow-lg);
    border-color: var(--sw-amber);
}

.sw-situation h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.05rem;
    color: var(--sw-spruce-dark);
    margin-bottom: 8px;
}

.sw-situation p {
    font-size: 0.9rem;
    color: var(--sw-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

.sw-situation__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sw-spruce);
    border-bottom: 2px solid var(--sw-amber);
    align-self: flex-start;
    padding-bottom: 1px;
}

.sw-situation:hover .sw-situation__link {
    color: var(--sw-spruce-dark);
    border-bottom-color: var(--sw-amber-ink);
}

/* ============================================================================
   TESTIMONIALS: Workbench style
   ============================================================================ */
.demo-testimonial {
    background: #fff;
    border: 1px solid rgba(30, 58, 47, 0.1);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow);
}

.demo-testimonial:hover {
    box-shadow: var(--sw-shadow-lg);
}

.demo-testimonial__icon {
    color: var(--sw-spruce);
    opacity: 0.25;
    font-family: var(--sw-font-heading);
}

/* Stars are decorative glyphs, not informational text */
.demo-star {
    color: var(--sw-amber);
}

.demo-testimonial__author strong {
    color: var(--sw-spruce);
}

.demo-testimonial__avatar {
    background: var(--sw-spruce);
}

/* ============================================================================
   STATS BAR: Spruce gradient, structural facts only
   ============================================================================ */
.demo-stats-bar,
.sw-stats-bar {
    background: linear-gradient(135deg, var(--sw-spruce-dark) 0%, var(--sw-spruce) 60%, var(--sw-spruce-light) 100%);
    padding: 56px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Amber top rule across the stats bar */
.sw-stats-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sw-amber), var(--sw-amber-light), var(--sw-amber));
}

.sw-stats-bar .demo-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.sw-stats-bar__item {
    text-align: center;
    min-width: 120px;
}

/* Display-scale numerals: amber-light passes for large text on spruce */
.sw-stats-bar__number {
    display: block;
    font-family: var(--sw-font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--sw-amber-light);
}

.sw-stats-bar__label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--sw-font-body);
    color: #fff;
}

.demo-stats-bar__number {
    font-family: var(--sw-font-heading);
}

/* Subtle texture overlay for stats bar */
.sw-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
                       radial-gradient(circle at 60% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================================================
   CTA BAR: Spruce with Amber accent stripe
   ============================================================================ */
.sw-cta-bar {
    background: linear-gradient(135deg, var(--sw-spruce-dark), var(--sw-spruce));
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.sw-cta-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sw-amber), var(--sw-amber-light), var(--sw-amber));
}

.sw-cta-bar .demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.sw-cta-bar__content h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: #fff;
}

.sw-cta-bar__content p {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.sw-cta-bar__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Amber button with dark spruce text on the dark CTA band */
.sw-cta-bar__actions .demo-btn--primary {
    background: var(--sw-amber);
    color: var(--sw-spruce-dark);
}

.sw-cta-bar__actions .demo-btn--primary:hover {
    background: var(--sw-amber-light);
    color: var(--sw-spruce-dark);
}

.sw-cta-bar__actions .demo-btn--secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.sw-cta-bar__actions .demo-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Also override the shared cta-bar partial when used */
.demo-cta-bar {
    background: linear-gradient(135deg, var(--sw-spruce-dark), var(--sw-spruce));
}

.demo-cta-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sw-amber), var(--sw-amber-light), var(--sw-amber));
}

.demo-cta-bar__overlay {
    background: linear-gradient(135deg, rgba(20, 42, 33, 0.92), rgba(30, 58, 47, 0.82));
}

.demo-cta-bar__content h2 {
    font-family: var(--sw-font-heading);
}

/* ============================================================================
   AREA TAGS
   ============================================================================ */
.demo-area-tag {
    border-radius: var(--sw-radius);
    border-color: rgba(30, 58, 47, 0.15);
    background: #fff;
    transition: all var(--sw-transition);
}

.demo-area-tag:hover,
a.demo-area-tag:hover {
    background: var(--sw-spruce);
    color: #fff;
    border-color: var(--sw-spruce);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 47, 0.2);
}

/* ============================================================================
   WHY CHOOSE US: Override Default Cards
   ============================================================================ */
.demo-why-card {
    border-radius: var(--sw-radius-lg);
    border-color: rgba(30, 58, 47, 0.08);
    box-shadow: var(--sw-shadow);
}

.demo-why-card:hover {
    box-shadow: var(--sw-shadow-xl);
}

.demo-why-card__body h3 {
    font-family: var(--sw-font-heading);
    color: var(--sw-spruce-dark);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.demo-footer {
    background: var(--sw-spruce-dark);
}

.demo-footer::before {
    background: linear-gradient(90deg, var(--sw-spruce), var(--sw-amber), var(--sw-spruce-light));
}

.demo-footer__logo {
    font-family: var(--sw-font-heading);
}

.demo-footer h4 {
    font-family: var(--sw-font-heading);
}

.demo-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   PAGE HERO: solid spruce, no imagery
   ============================================================================ */
.demo-hero__overlay {
    background: linear-gradient(160deg, rgba(20, 42, 33, 0.96) 0%, rgba(30, 58, 47, 0.92) 55%, rgba(46, 86, 70, 0.9) 100%);
}

.demo-page-hero--image .demo-page-hero__overlay,
.demo-page-hero__overlay {
    background: linear-gradient(160deg, rgba(20, 42, 33, 0.96) 0%, rgba(30, 58, 47, 0.92) 55%, rgba(46, 86, 70, 0.9) 100%);
}

.demo-page-hero,
.demo-hero {
    background: linear-gradient(160deg, var(--sw-spruce-dark) 0%, var(--sw-spruce) 55%, var(--sw-spruce-light) 100%);
}

/* ============================================================================
   SECTION DIVIDER OVERRIDES
   ============================================================================ */
.demo-section + .demo-section:not(.demo-section--alt) {
    border-top: none;
}

.demo-section--alt {
    background: var(--sw-bone-alt);
}

/* ============================================================================
   SERVICE CARD OVERRIDE: default cards use Workbench style
   ============================================================================ */
.demo-service-card {
    border-radius: var(--sw-radius);
    border-left: 4px solid var(--sw-spruce);
    border-color: rgba(30, 58, 47, 0.08);
    border-left-color: var(--sw-spruce);
    box-shadow: var(--sw-shadow);
}

.demo-service-card:hover {
    border-color: var(--sw-amber);
    border-left-color: var(--sw-amber);
    box-shadow: var(--sw-shadow-xl);
}

.demo-service-card__image {
    border-radius: var(--sw-radius) var(--sw-radius) 0 0;
}

.demo-service-card h3 a {
    color: var(--sw-spruce-dark);
}

.demo-service-card h3 a:hover {
    color: var(--sw-spruce-light);
}

/* ============================================================================
   SCROLL ANIMATIONS
   ============================================================================ */
.js .animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in.visible .sw-service-card,
.animate-in.visible .sw-trust-card,
.animate-in.visible .sw-rhythm-card,
.animate-in.visible .sw-situation {
    animation: swFadeInUp 0.5s ease-out both;
}

.animate-in.visible .sw-service-card:nth-child(2),
.animate-in.visible .sw-trust-card:nth-child(2),
.animate-in.visible .sw-rhythm-card:nth-child(2),
.animate-in.visible .sw-situation:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-in.visible .sw-service-card:nth-child(3),
.animate-in.visible .sw-trust-card:nth-child(3),
.animate-in.visible .sw-rhythm-card:nth-child(3),
.animate-in.visible .sw-situation:nth-child(3) {
    animation-delay: 0.2s;
}

.animate-in.visible .sw-situation:nth-child(4) { animation-delay: 0.25s; }
.animate-in.visible .sw-situation:nth-child(5) { animation-delay: 0.3s; }
.animate-in.visible .sw-situation:nth-child(6) { animation-delay: 0.35s; }

@keyframes swFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-in.visible .sw-service-card,
    .animate-in.visible .sw-trust-card,
    .animate-in.visible .sw-rhythm-card,
    .animate-in.visible .sw-situation,
    .animate-in.visible .demo-service-card,
    .animate-in.visible .demo-testimonial {
        animation: none;
    }
    .sw-service-card,
    .sw-trust-card,
    .sw-rhythm-card,
    .sw-situation,
    .demo-area-tag {
        transition: none;
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
    .sw-situations {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sw-hero {
        min-height: 440px;
        padding: 80px 0 60px;
    }

    .sw-hero h1 {
        font-size: 1.85rem;
    }

    .sw-ba-grid {
        grid-template-columns: 1fr;
    }

    .sw-situations {
        grid-template-columns: 1fr;
    }

    .sw-cta-bar .demo-container {
        flex-direction: column;
        text-align: center;
    }

    .sw-trust-row,
    .sw-rhythm-row {
        grid-template-columns: 1fr;
    }

    .sw-section {
        padding: 48px 0;
    }

    .sw-section--tight {
        padding-top: 0;
    }

    .sw-stats-bar .demo-container {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .sw-hero {
        min-height: 380px;
        padding: 60px 0 48px;
    }

    .sw-hero h1 {
        font-size: 1.6rem;
    }

    .sw-hero__trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .sw-stats-bar__item {
        min-width: 100px;
        flex: 1 1 40%;
    }
}

/* ---- Hero Photo Support ---- */
.sw-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.sw-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(20, 42, 33, 0.90) 0%, rgba(30, 58, 47, 0.82) 55%, rgba(46, 86, 70, 0.72) 100%);
}
.sw-hero__content {
    position: relative;
    z-index: 2;
}
