/*
Theme Name:  JobMarketPulse Child
Theme URI:   https://jobmarketpulse.com
Description: Child theme of Twenty Twenty-One for JobMarketPulse.
Author:      Aspen Tech Labs
Author URI:  https://aspentechlabs.com
Template:    twentytwentyone
*/

/*
 * JobMarketPulse - Global stylesheet
 * Tokens, Reset, Layout, Utilities, Section headers, Buttons, Header,
 * Mobile nav, Footer, Hero (shared), Contact, Inner pages, Wide page template.
 *
 * Page-specific styles live in assets/css/ (home.css, finservices.css)
 * and are enqueued per page in functions.php (jmp_page_assets).
 * Keep this file ASCII-only (no box-drawing characters or em dashes).
 */

/* ================================================
   TOKENS
   ================================================ */
:root {
    /* Colors */
    --color-bg:               hsl(0, 0%, 100%);
    --color-fg:               hsl(222, 47%, 11%);
    --color-fg-muted:         hsl(215, 16%, 47%);
    --color-fg-subtle:        hsl(222, 47%, 11%, 0.70);
    --color-primary:          hsl(217, 91%, 55%);
    --color-primary-dark:     hsl(224, 88%, 52%);
    --color-navy:             hsl(222, 47%, 11%);
    --color-card:             hsl(0, 0%, 100%);
    --color-muted:            hsl(220, 20%, 97%);
    --color-muted-soft:       hsl(220 20% 97% / 0.4); /* tinted section bands */
    --color-border:           hsl(220, 14%, 92%);
    --color-border-card:      hsl(220, 14%, 92%);
    /* Gradients */
    --gradient-primary:   linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(224, 88%, 52%) 100%);
    --gradient-hero:      linear-gradient(135deg, hsl(215,45%,12%) 0%, hsl(220,70%,22%) 55%, hsl(262,70%,32%) 100%);
    --gradient-panel:     linear-gradient(to bottom right, hsl(217,91%,60%), hsl(262,55%,50%), hsl(224,88%,52%));
    --gradient-text:      linear-gradient(135deg, hsl(217, 91%, 55%) 0%, hsl(262, 83%, 62%) 100%);
    /* Shadows */
    --shadow-glow:     0 8px 32px hsl(217 91% 55% / 0.18);
    --shadow-card:     0 1px 2px hsl(222 47% 11% / 0.04), 0 4px 16px hsl(222 47% 11% / 0.04);
    --shadow-elevated: 0 4px 12px hsl(222 47% 11% / 0.06), 0 12px 40px hsl(222 47% 11% / 0.08);
    /* Typography */
    --font-display: "Outfit", "Century Gothic", AppleGothic, sans-serif;
    --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Radius */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;
    --radius-btn:  var(--radius-full); /* pill-shape for buttons */
    /* Spacing */
    --section-py:    96px;
    --section-py-sm: 64px;
    --container-max: 1280px;
    --container-px:  24px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-fg);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ================================================
   LAYOUT
   ================================================ */

/* Sticky footer: #page stretches, #main fills the gap */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}

.container-wide {
    max-width: var(--container-max);
    padding-left: var(--container-px);
    padding-right: var(--container-px);
    margin-left: auto;
    margin-right: auto;
}
.container {
    max-width: 1280px;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   UTILITIES
   ================================================ */
.text-primary    { color: var(--color-primary); }
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-primary { background: var(--gradient-primary); }
.shadow-glow     { box-shadow: var(--shadow-glow); }
.shadow-card     { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* ================================================
   TYPOGRAPHY - SECTION HEADERS
   ================================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid hsl(217 91% 55% / 0.2);
    background-color: hsl(217 91% 55% / 0.05);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    margin-bottom: 20px;
    width: fit-content;
}
.section-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
    flex-shrink: 0;
}
.section-header {
    max-width: 768px;
    margin-bottom: 48px;
}
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-fg);
    margin: 0;
}
.section-description {
    margin-top: 20px;
    font-size: 18px;
    color: var(--color-fg-muted);
    line-height: 1.625;
    max-width: 640px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
    color: #fff;
}
.btn--outline-white {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: #fff;
}
.btn--outline-white:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.btn--outline {
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    color: var(--color-fg);
}
.btn--outline:hover {
    border-color: hsl(217 91% 55% / 0.3);
    background-color: var(--color-muted);
}
.btn--white {
    background-color: #fff;
    color: var(--color-primary);
}
.btn--white:hover {
    background-color: rgba(255,255,255,0.9);
}
.btn--lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Scrolled or mobile-menu-open: more solid */
.header--scrolled,
body.mobile-nav-open .header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 3px rgba(17, 28, 44, 0.06);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* -- Logo -- */
.header__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header__logo-wrap .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.header__logo-wrap .custom-logo {
    display: block;
    height: 40px !important;
    width: auto !important;
    max-width: 260px;
    object-fit: contain;
}
.header__site-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-fg);
    text-decoration: none;
}

/* -- Desktop nav -- */
.primary-navigation {
    flex: 1;
    margin-left: 8px;
}
.header .menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header .menu-wrapper > .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-fg-muted);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.header .menu-wrapper > .menu-item > a:hover,
.header .menu-wrapper > li.current_page_item > a {
    color: var(--color-fg);
    background-color: var(--color-muted);
    text-decoration: none;
}

/* -- Header actions (CTA buttons inherit the pill radius from .btn) -- */
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* -- Mobile menu toggle button -- */
.header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-fg);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}
.header__menu-toggle:hover {
    background-color: var(--color-muted);
}
/* Icon swap when mobile menu is open */
.header__menu-toggle .icon-close                      { display: none; }
body.mobile-nav-open .header__menu-toggle .icon-open  { display: none; }
body.mobile-nav-open .header__menu-toggle .icon-close { display: block; }

/* -- Sub-menu -- */
.header .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.header .sub-menu::before,
.header .sub-menu::after {
    display: none !important;
}
@media screen and (min-width: 900px) {
    .header .menu-item { position: relative; }
    .header .sub-menu {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 240px;
        padding: 12px;
        background-color: #fff;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-elevated);
        transform: translateY(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        display: block;
    }
    .header .menu-item:hover > .sub-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .header .sub-menu .menu-item a {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
        color: var(--color-fg-muted);
        border-radius: var(--radius-sm);
        text-decoration: none;
        transition: color 0.15s ease, background-color 0.15s ease;
    }
    .header .sub-menu .menu-item:hover a {
        color: var(--color-primary);
        background-color: var(--color-muted);
    }
}

/* -- Desktop: show nav, hide toggle -- */
@media screen and (min-width: 900px) {
    .header__menu-toggle { display: none !important; }
    .primary-navigation > .primary-menu-container {
        display: block !important;
        visibility: visible !important;
    }
    .primary-navigation .menu-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex-wrap: nowrap;
    }
}
/* -- Mobile: hide desktop nav, show toggle -- */
@media screen and (max-width: 899px) {
    .btn__login, .btn__signup { display: none; }
    .header__menu-toggle      { display: flex; }
    .primary-navigation       { display: none; }
}

/* ================================================
   MOBILE NAV OVERLAY
   ================================================ */
/* Hidden by default */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40; /* header is z-index: 50 */
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}
@media screen and (max-width: 899px) {
    .mobile-nav { display: block; }
}
/* Open state */
body.mobile-nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
/* Inner layout */
.mobile-nav__panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 96px 24px 40px; /* top padding clears the fixed header */
    overflow-y: auto;
}
/* Head: logo + close (hidden, the header stays visible above) */
.mobile-nav__head { display: none; }
/* Nav items */
.mobile-nav__menu { flex: 1; }
.mobile-nav__menu .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav__menu .mobile-menu-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-fg);
    text-decoration: none;
    letter-spacing: -0.025em;
}
.mobile-nav__menu .mobile-menu-list > li > a svg {
    flex-shrink: 0;
    color: var(--color-fg-muted);
    transition: color 0.2s ease;
}
.mobile-nav__menu .mobile-menu-list > li > a:hover svg {
    color: var(--color-fg);
}
.mobile-nav__menu .sub-menu { display: none; }
/* Footer: CTA + brand */
.mobile-nav__foot {
    margin-top: auto;
    padding-top: 40px;
}
.mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}
.mobile-nav__brand {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-fg-muted);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
}
.footer .container,
.footer .container-wide {
    max-width: var(--container-max);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 900px) {
    .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}
.footer__logo {
    display: block;
    margin-bottom: 16px;
}
.footer__logo-img {
    height: 55px !important;
    width: auto !important;
    object-fit: contain;
}
.footer__tagline {
    font-size: 13px;
    color: var(--color-fg-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 0 20px 0;
}
.footer__social {
    display: flex;
    gap: 8px;
}
.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__social-link:hover {
    color: var(--color-primary);
    border-color: hsl(217 91% 55% / 0.3);
}
.footer__col-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: rgba(17, 28, 44, 0.8);
    margin: 0 0 16px 0;
}
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--color-fg-muted);
}
.footer__links li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__links a {
    color: var(--color-fg-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--color-primary); }
.footer__links li > svg,
.footer__links li > a > svg { color: var(--color-primary); flex-shrink: 0; }
.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
@media (min-width: 900px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer__copy {
    font-size: 12px;
    color: var(--color-fg-muted);
    margin: 0;
}
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.footer__legal a {
    font-size: 12px;
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__legal a:hover { color: var(--color-primary); }

/* ================================================
   HERO (shared: home page + Financial Services page)
   Page-specific tweaks: .fin-hero in finservices.css
   ================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-navy);
    color: #fff;
}

/* Right visual panel */
.hero__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
}
.hero__panel-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-panel);
    opacity: 0.95;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero__panel-fade {
    position: absolute;
    inset: 0;
    width: 30%;
    background: linear-gradient(to right, var(--color-navy), transparent);
}

/* Rotating shapes */
.hero__shape {
    position: absolute;
    pointer-events: none;
}
.hero__shape--square {
    top: 18%;
    right: 14%;
    width: 128px;
    height: 128px;
    border: 4px solid rgba(255, 255, 255, 0.20);
    border-radius: 16px;
    animation: hero-cw 22s linear infinite;
}
.hero__shape--circle {
    bottom: 20%;
    right: 18%;
    width: 160px;
    height: 160px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: hero-ccw 28s linear infinite;
}
@keyframes hero-cw  { to { transform: rotate(360deg);  } }
@keyframes hero-ccw { to { transform: rotate(-360deg); } }

/* Content */
.hero__inner {
    position: relative;
    z-index: 10;
    padding: 112px var(--container-px);
    max-width: var(--container-max);
    margin-inline: auto;
}
@media (min-width: 900px) {
    .hero__inner { padding-top: 144px; padding-bottom: 144px; }
}
.hero__content { max-width: 960px; }

/* Eyebrow badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 24px;
    width: fit-content;
}
.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3c83f6;
    flex-shrink: 0;
    animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* Headline */
.hero__heading {
    max-width: 700px;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 24px 0;
    min-height: 2.3em;
}
.hero__heading-accent {
    transition: opacity 0.35s ease;
}
.hero__heading-highlight {
    color: #3c83f6;
}
.hero__heading-accent.is-fading { opacity: 0; }

/* Subtitle */
.hero__description {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.625;
    margin: 0 0 16px 0;
}

/* Supporting tagline */
.hero__tagline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    margin: 0 0 36px 0;
}

/* CTA row */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.btn--hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn--hero-primary:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
    color: #fff;
}
.btn--hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn--hero-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

/* Stat strip */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
@media (min-width: 560px) {
    .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.hero__stat {
    padding: 0 24px 0 0;
}
.hero__stat + .hero__stat {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 559px) {
    .hero__stat:nth-child(odd)  { padding: 0 16px 20px 0; border-left: none; }
    .hero__stat:nth-child(even) { padding: 0 0 20px 16px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
    .hero__stat:nth-child(3),
    .hero__stat:nth-child(4)    { padding-bottom: 0; }
}
.hero__stat-value {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.hero__stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 899px) {
    .hero__panel {
        width: 100%;
        height: 45%;
        top: auto;
        bottom: 0;
        opacity: 0.35;
    }
    .hero__shape { display: none; }
}

/* ================================================
   HERO WITH PRODUCT SCREENSHOT (home page)
   Applies only when .hero__picture is present,
   so the Financial Services hero is not affected.
   Mobile/tablet: text, then screenshot (stacked).
   Desktop (1024px+): text left, screenshot right.
   ================================================ */
.hero__picture {
    position: relative;
    min-width: 0;
    max-width: 820px;
    margin-top: 48px;
}
.hero__picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow:
        0 24px 64px hsl(222 47% 6% / 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.10);
}

@media (min-width: 1024px) {
    /* Decorative shapes would peek out behind the screenshot */
    .hero:has(.hero__picture) .hero__shape { display: none; }

    .hero__inner:has(.hero__picture) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: clamp(40px, 2vw, 72px);
        padding-top: 96px;
        padding-bottom: 96px;
    }
    .hero__inner:has(.hero__picture) .hero__content {
        min-width: 0;
        max-width: none;
    }

    /* Narrower column: smaller headline, fixed height so rotation does not jump */
    .hero__inner:has(.hero__picture) .hero__heading {
        font-size: clamp(36px, 3.6vw, 52px);
        min-height: 3.15em; /* 3 lines x 1.05 line-height */
    }
    .hero__inner:has(.hero__picture) .hero__description {
        font-size: 17px;
    }

    .hero__inner:has(.hero__picture) .hero__picture {
        max-width: none;
        margin-top: 0;
    }

    /* Stats: 2x2 instead of 4 in a row */
    .hero__inner:has(.hero__picture) .hero__stats {
        grid-column: 1 / -1;
    }
    .hero__inner:has(.hero__picture) .hero__stat:first-of-type {
        padding: 0 16px 20px 0;
        border-left: none;
    }
    .hero__inner:has(.hero__picture) .hero__stat {
        padding: 0 0 20px 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
    .hero__inner:has(.hero__picture) .hero__stat:nth-child(3),
    .hero__inner:has(.hero__picture) .hero__stat:nth-child(4) {
        padding-bottom: 0;
    }
}

/* ================================================
   DEFAULT WP PAGE STYLES
   ================================================ */
.entry-footer { display: none !important; }

/* ================================================
   MAIN PADDING
   ================================================ */
main .site-main { padding: 0; }
.page-template-page-wide #main > .container {
    max-width: 100%;
    padding: 0;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    padding: 0 0 96px 0;
    scroll-margin-top: 96px;
}
@media (min-width: 900px) {
    .contact { padding: 0 0 112px 0; }
}
.contact-grid {
    display: grid;
    gap: 48px;
}
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: hsl(222 47% 11% / 0.85);
    font-weight: 400;
    line-height: 1.5;
}
.contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: hsl(217 91% 55% / 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-form-card {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
    .contact-form-card { padding: 32px; }
}

/* CF7 overrides */
.contact-form-card .wpcf7-submit {
    display: inline-block;
    padding: 12px 44px 12px 24px;
    border-radius: var(--radius-lg);
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1zZW5kLWljb24gbHVjaWRlLXNlbmQiPjxwYXRoIGQ9Ik0xNC41MzYgMjEuNjg2YS41LjUgMCAwIDAgLjkzNy0uMDI0bDYuNS0xOWEuNDk2LjQ5NiAwIDAgMC0uNjM1LS42MzVsLTE5IDYuNWEuNS41IDAgMCAwLS4wMjQuOTM3bDcuOTMgMy4xOGEyIDIgMCAwIDEgMS4xMTIgMS4xMXoiLz48cGF0aCBkPSJtMjEuODU0IDIuMTQ3LTEwLjk0IDEwLjkzOSIvPjwvc3ZnPg=="),
        linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(224, 88%, 52%) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 16px center, 0 0;
    background-size: 16px 16px, 100% 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
    width: auto;
}
.contact-form-card .wpcf7-submit:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}
.contact-form-card .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form-card .wpcf7-form .contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .contact-form-card .wpcf7-form .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-form-card .wpcf7-form label.contact-form__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: hsl(222 47% 11% / 0.7);
}
.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-fg);
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
    margin-top: 4px;
}
.contact-form-card .wpcf7-form input[type="text"]:focus,
.contact-form-card .wpcf7-form input[type="email"]:focus,
.contact-form-card .wpcf7-form textarea:focus {
    border-color: hsl(217 91% 55% / 0.5);
}
.contact-form-card .wpcf7-form textarea { min-height: 100px; resize: vertical; }
.contact-form-card .wpcf7-not-valid-tip { font-size: 12px; color: #ef4444; margin-top: 4px; }
.contact-form-card .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: none !important;
}
.contact-form-card .wpcf7-form[data-status="sent"] .wpcf7-response-output {
    padding: 10px 20px;
    background: hsl(142 71% 45% / 0.1);
    color: hsl(142 71% 30%);
}
.contact-form-card .wpcf7-form[data-status="mail_failed"] .wpcf7-response-output,
.contact-form-card .wpcf7-form[data-status="spam"] .wpcf7-response-output,
.contact-form-card .wpcf7-form[data-status="validation_failed"] .wpcf7-response-output,
.contact-form-card .wpcf7-form[data-status="acceptance_missing"] .wpcf7-response-output,
.contact-form-card .wpcf7-form.invalid .wpcf7-response-output {
    padding: 10px 20px;
    background: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 40%);
}
.wpcf7-spinner:empty { display: none; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 0; }

/* ================================================
   INNER PAGES (Privacy, Terms, etc.)
   Scope: body.page:not(.home) - excludes homepage
   ================================================ */

/* -- Page header -- */
body.page:not(.home) .entry-header {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 0 var(--container-px);
}
body.page:not(.home) .entry-header .entry-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-fg);
}

/* -- Content wrapper -- */
body.page:not(.home) .entry-content {
    max-width: 760px;
    margin: 64px auto 96px;
    padding: 0 var(--container-px);
}

/* -- Headings -- */
body.page:not(.home) .entry-content h2 {
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    color: var(--color-fg);
    letter-spacing: -0.02em;
    margin: 48px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
body.page:not(.home) .entry-content h2:first-child { margin-top: 0; }

body.page:not(.home) .entry-content h3 {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 700;
    color: var(--color-fg);
    margin: 28px 0 10px;
}

/* -- Body text -- */
body.page:not(.home) .entry-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-fg-muted);
    margin: 0 0 16px;
}

/* -- Lists -- */
body.page:not(.home) .entry-content ul,
body.page:not(.home) .entry-content ol {
    padding-left: 0;
    margin: 0 0 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.page:not(.home) .entry-content ul li,
body.page:not(.home) .entry-content ol li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-fg-muted);
}
body.page:not(.home) .entry-content ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 9px;
}
body.page:not(.home) .entry-content ol {
    counter-reset: page-ol;
}
body.page:not(.home) .entry-content ol li {
    counter-increment: page-ol;
}
body.page:not(.home) .entry-content ol li::before {
    content: counter(page-ol);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    background: hsl(217 91% 55% / 0.08);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

/* -- Inline elements -- */
body.page:not(.home) .entry-content strong {
    font-weight: 600;
    color: var(--color-fg);
}
body.page:not(.home) .entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s ease;
}
body.page:not(.home) .entry-content a:hover { opacity: 0.75; }

/* -- Blockquote -- */
body.page:not(.home) .entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    margin: 24px 0;
    padding: 16px 20px;
    background: hsl(217 91% 55% / 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-fg-muted);
}

/* -- "Last Updated" line: first h2 styled as metadata -- */
body.page:not(.home) .entry-content h2:first-of-type {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-fg-muted);
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 0;
}

/* ================================================
   WIDE PAGE TEMPLATE (body.page-template-page-wide)
   ================================================ */
body.page-template-page-wide .entry-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Space under the sticky header on every page except the home page */
body:not(.home) header {
    margin-bottom: 100px;
}
@media screen and (max-width: 899px) {
    body:not(.home) header {
        margin-bottom: 60px;
    }
}
/* Pages that start with a hero sit flush under the header.
   Must stay AFTER the two rules above (same specificity, later wins). */
body:has(.page-hero) header { margin-bottom: 0; }

.wide-page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
/* Hide empty <p> that WP auto-inserts between HTML blocks */
.wide-page-container > p:empty,
.wide-page-container > p:has(> br:only-child) {
    display: none;
    margin: 0;
}