@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    /* Brand colors come from <style nonce>:root{…}</style> injected in
       <head> by Controller::frontendLayoutData() / BrandingPresenter.
       Tokens managed there: --brand-primary, --brand-secondary, --brand-accent,
       --bg-body, --bg-section, --bg-card, --border, --text-body, --text-muted,
       --text-heading, --link, --link-hover, --btn-primary-{bg,text,hover-bg},
       --btn-secondary-{bg,text,hover-bg}, --footer-{bg,text,btn-bg,btn-hover}.
       Anything declared below is either non-color or a legacy alias kept for
       compatibility with templates that still reference old names. */

    /* Legacy aliases — kept so older inline styles continue to work. The
       new system covers their semantics under different names.

       Why these exist as var() chains (not flat hex):
         - `--brand-navy` was the old name for the structural dark blue.
           Mapping to `--brand-primary` lets a brand-color change cascade.
         - `--brand-orange` was the old name for the accent color.
           Mapping to `--brand-accent` keeps theming consistent.
         - `--brand-orange-hover` keeps a hard-coded darker hex because the
           dynamic palette doesn't track per-color hover variants. Templates
           that need a hover-aware accent should still use this for now.

       The fallback hex on each var() handles the case where the dynamic
       <style> block isn't rendered yet (e.g. error pages, install flow).
       Without these aliases, `var(--brand-navy)` references in blog
       templates collapsed to invalid → invisible buttons. */
    --brand-navy:         var(--brand-primary, #1e293b);
    --brand-orange:       var(--brand-accent,  #d4752f);
    --brand-orange-hover: #b86226;
    --brand-gray: #5a6a82;
    --neutral-bg: #f8fbff;
    --neutral-border: #e2e8f0;
    --neutral-dark: #1a202c;
    --white: #ffffff;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-gap-desktop: 120px;
    --section-gap-tablet: 80px;
    --section-gap-mobile: 60px;
    --card-padding: 32px;

    /* Miscellaneous */
    --radius-md: 8px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;

    /* Animation Defaults */
    --animate-duration: 800ms;
    --animate-delay: 0ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--size-body, 16px);
    color: var(--text-body, var(--brand-gray));
    font-weight: var(--weight-body, 400);
    line-height: 1.6;
    background-color: var(--bg-body, var(--white));
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    color: var(--text-heading, var(--brand-primary));
    font-weight: var(--weight-heading, 700);
    line-height: 1.2;
}

h1 {
    font-size: calc(var(--size-heading-scale, 1.0) * 64px);
    font-weight: var(--weight-heading, 800);
    text-transform: uppercase;
}

h2 {
    font-size: calc(var(--size-heading-scale, 1.0) * 40px);
    margin-bottom: 24px;
}

h3 {
    font-size: calc(var(--size-heading-scale, 1.0) * 24px);
}

h4 {
    font-size: calc(var(--size-heading-scale, 1.0) * 20px);
}

p {
    margin-bottom: 16px;
}

.eyebrow {
    display: block;
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section {
    padding: var(--section-gap-desktop) 0;
    overflow: hidden;
}

.bg-light {
    background-color: var(--bg-section, var(--neutral-bg));
}

.bg-navy {
    background-color: var(--brand-primary);
    color: var(--white);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-primary-bg, var(--brand-accent));
    color: var(--btn-primary-text, var(--white));
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg, #ba6323);
    transform: translateY(-2px);
}

/* `.btn-outline` is used over dark/hero backgrounds where it has to look
   transparent with a white border. That semantic stays — the configurable
   "secondary button" pair below (`.btn-secondary`) is what the editor
   controls. */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brand-primary);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg, var(--white));
    color: var(--btn-secondary-text, var(--brand-primary));
    border: 2px solid var(--btn-secondary-text, var(--brand-primary));
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg, #f1f5f9);
    transform: translateY(-2px);
}

.btn-outline-navy {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* `.btn-arrow` is a non-button link variant used as a tertiary CTA in
   page builder sections (banner_cta, two_column, cards_grid). Renders as
   bold inline text + Lucide arrow-right icon that translates on hover. */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-arrow:hover {
    color: var(--brand-primary);
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.btn-arrow:hover svg {
    transform: translateX(5px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    height: 70px;
}



.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;   /* kills the inline baseline descender gap so the logo
                         centers symmetrically in the flex/grid header bars */
}

.nav-links {
    display: flex;
    gap: 32px;
}

/* Desktop nav link styling (color, hover, active, typography) is driven
   entirely by the token-based rules injected in layout/base.twig
   (.nav-item > a, using --menu-* custom properties). The old .nav-links a
   rules that lived here used stale --white/--brand-* colors and their
   `!important` hover even overrode the configurable transparent-state hover
   color — so they are intentionally removed. Mobile nav rules below still
   apply (they use the correct --mobile-menu-* tokens). */

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    color: var(--burger-color, var(--white));
    background: transparent;
    border: 0;
    padding: 6px;
    line-height: 0;
    cursor: pointer;
}

.header.scrolled .menu-toggle {
    color: var(--burger-color-scrolled, var(--brand-primary));
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(28, 34, 52, 0.8), rgba(28, 34, 52, 0.4));
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Fine vertical nudge for the Hero content, layered on top of the valign
   anchor. --hero-voffset is set inline (in vh) by the section presenter.
   Scaled down on smaller viewports so the content never drifts off-screen. */
.hero .hero-voffset {
    transform: translateY(var(--hero-voffset, 0vh));
    transition: transform 0.3s ease;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 40px;
    color: #e6e7ea;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--brand-primary);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    background-color: var(--brand-accent);
}

/* Strategy Grid */
.grid-strategy {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.strategy-card {
    background-color: var(--white);
    padding: var(--card-padding);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.strategy-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    /* Tinted background derived from the accent. The literal RGB matches
       the default --brand-accent (#20c997 ≈ 32,201,151) so the result looks
       right out of the box; once the user changes accent in the editor the
       icon color follows live, but the tint stays subtle. */
    background-color: rgba(32, 201, 151, 0.1);
    color: var(--brand-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

/* News Grid */
.grid-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.news-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-content {
    padding: 24px;
}

.news-cat {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.news-date {
    color: var(--text-muted, var(--brand-gray));
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg, var(--brand-primary));
    color: var(--footer-text, var(--white));
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--footer-text, var(--white));
    margin-bottom: 24px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text, #e6e7ea);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.85;
}

.footer-links a:hover {
    color: var(--footer-btn-bg, var(--brand-accent));
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--footer-text, #e6e7ea);
    opacity: 0.7;
}

/* Footer-specific action button (uses footer-btn-* tokens) */
.footer-btn,
.footer .btn-primary {
    background-color: var(--footer-btn-bg, var(--brand-accent));
    color: var(--white);
    border: 0;
    transition: var(--transition);
}

.footer-btn:hover,
.footer .btn-primary:hover {
    background-color: var(--footer-btn-hover, #17a589);
    transform: translateY(-2px);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 56px;
    }
}

@media (max-width: 992px) {
    .grid-strategy {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-news {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-layout.reverse {
        direction: ltr;
    }

    .menu-toggle {
        display: block;
        z-index: 20000 !important;
        /* Extremely high to stay top of overlay */
        cursor: pointer;
        position: relative;
    }

    .menu-toggle.active {
        color: var(--mobile-menu-link, var(--white)) !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 100%;
        /* Start off-screen */
        width: 100vw !important;
        height: 100vh !important;
        gap: 40px;
        background: var(--mobile-menu-bg, #1c2234);
        transition: transform 0.4s ease-in-out;
        z-index: 10000 !important;
    }

    .nav-links.active {
        transform: translateX(-100%);
        /* Slide into view */
    }

    .nav-links a {
        font-size: 24px;
        color: var(--mobile-menu-link, var(--white)) !important;
        /* Force the mobile link color even if header is scrolled */
    }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--mobile-menu-link-hover, var(--brand-accent)) !important;
    }
}

@media (max-width: 768px) {

    /* TABLET SOURCE OF TRUTH */
    .section {
        padding: var(--section-gap-tablet) 0;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px;
    }


    .hero {
        text-align: left;
    }

    .hero p {
        font-size: 18px;
    }

    /* Tablet: halve the vertical nudge to keep content on-screen. */
    .hero .hero-voffset {
        transform: translateY(calc(var(--hero-voffset, 0vh) * 0.5));
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--section-gap-mobile) 0;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Phone: neutralize most of the nudge — vertical space is scarce. */
    .hero .hero-voffset {
        transform: translateY(calc(var(--hero-voffset, 0vh) * 0.25));
    }

    .cta-group {
        flex-direction: column;
    }

    .grid-strategy {
        grid-template-columns: 1fr;
    }

    .grid-news {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* Animations System */
[data-animation] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: var(--animate-duration);
    transition-delay: var(--animate-delay);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

[data-animation].animated {
    opacity: 1 !important;
    transform: none !important;
}

/* Animation Types Initial States */
[data-animation="fade"] {
    transform: none;
}

[data-animation="slideUp"] {
    transform: translateY(40px);
}

[data-animation="slideLeft"] {
    transform: translateX(50px);
}

[data-animation="zoom"] {
    transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
    [data-animation] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
/* ─────────────────────────────────────────────────────────────────────────
   Custom Forms (Dynamic Form Builder) — Public render
   ─────────────────────────────────────────────────────────────────────────
   These styles power /form/:slug AND the embedded custom_form section so
   both contexts render identically.

   Theming:
     The form's accent_color (theme_json) is exposed by the controller as
     --form-accent + --form-accent-soft. We fall back to --brand-accent so
     a form without a custom theme inherits the site palette.

   Naming:
     .form-control     — generic input/textarea/select (Bootstrap-aligned)
     .eolo-form-*      — namespaced helpers that are specific to this
                         module (card, fields, options, consent)
     .btn .btn-primary — reused from the global button system; the submit
                         button picks up brand updates automatically.
   ───────────────────────────────────────────────────────────────────── */
:root {
    --form-accent: var(--brand-accent);
    --form-accent-soft: rgba(212, 117, 47, 0.15);
}

/* Card containment — wraps the form so embedded sections aren't naked
   against the page background. The -overlap variant slides up into a
   visual hero header (theme image/video). */
.eolo-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.eolo-form-card {
    background: var(--white, #ffffff);
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
}
.eolo-form-card-overlap {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Heading + subheading inside the form card.
   Size variants (--small / --medium / --large) are set per-section by the
   page-builder editor; color overrides come from inline style. */
.eolo-form-heading {
    margin: 0 0 8px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--brand-primary, #1e293b);
}
.eolo-form-heading--small  { font-size: 18px; }
.eolo-form-heading--medium { font-size: 28px; }
.eolo-form-heading--large  { font-size: 36px; }

.eolo-form-subheading {
    color: var(--brand-gray, #64748b);
    margin: 0 0 28px;
    line-height: 1.55;
}
.eolo-form-subheading--small  { font-size: 13px; }
.eolo-form-subheading--medium { font-size: 15px; }
.eolo-form-subheading--large  { font-size: 18px; }

/* Per-field block. */
.eolo-form-field {
    margin-bottom: 20px;
}
.eolo-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary, #1e293b);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.eolo-form-required {
    color: #ef4444;
}

/* Generic input control — text, email, tel, url, number, date, textarea,
   select all share these base rules. */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white, #ffffff);
    border: 1px solid var(--neutral-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    color: var(--text-body, #1a202c);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
}
.form-control::placeholder {
    color: #94a3b8;
}
.form-control:focus {
    border-color: var(--form-accent);
    box-shadow: 0 0 0 4px var(--form-accent-soft);
    outline: none;
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a82'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Helper paragraph below an input. Coupled via aria-describedby for
   screen reader users. */
.help-text {
    font-size: 12px;
    color: var(--brand-gray, #5a6a82);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* Radio / checkbox groups — boxed for visual cohesion. */
.eolo-form-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--neutral-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 10px 14px;
    background: #f8fafc;
}
.eolo-form-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body, #1a202c);
    padding: 6px 0;
    min-height: 28px;
    cursor: pointer;
}
.eolo-form-option--standalone {
    background: transparent;
    border: 0;
    padding: 0;
}
.eolo-form-option input[type="radio"],
.eolo-form-option input[type="checkbox"],
.eolo-form-field input[type="checkbox"]:not(.eolo-form-honeypot input),
.eolo-form-field input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--form-accent);
}

/* GDPR consent gets a distinct visual treatment so the legal context is
   visually self-evident (not "just another checkbox"). */
.eolo-form-consent {
    background: #f8fafc;
    border: 1px solid var(--neutral-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 12px 14px;
    align-items: flex-start;
    line-height: 1.5;
    font-size: 13px;
    color: #475569;
}
.eolo-form-consent input {
    margin-top: 3px;
}

/* Honeypot — kept VISIBLE in computed style (display:block, opacity:1)
   so headless bots that check getComputedStyle() still fill it; only
   moved off-screen to hide from humans. Using `display:none` here would
   defeat the trap. */
.eolo-form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit button — reuses .btn .btn-primary from the global button system
   so theme changes cascade automatically. Full-width on mobile, auto on
   desktop. focus-visible outline for keyboard users. */
.eolo-form button[type="submit"].btn-primary {
    width: 100%;
    margin-top: 10px;
}
.eolo-form button[type="submit"].btn-primary:focus-visible {
    outline: 3px solid var(--form-accent-soft);
    outline-offset: 2px;
}
@media (min-width: 768px) {
    .eolo-form button[type="submit"].btn-primary {
        width: auto;
        min-width: 180px;
    }
}

/* Responsive — tighter padding + 16px input font (prevents iOS auto-zoom
   on focus). Size variants scale down proportionally so a `large` heading
   doesn't blow out a phone viewport. */
@media (max-width: 768px) {
    .eolo-form-card { padding: 28px 24px; }
    .eolo-form-card-overlap { margin-top: -30px; }
    .eolo-form-heading--small  { font-size: 16px; }
    .eolo-form-heading--medium { font-size: 22px; }
    .eolo-form-heading--large  { font-size: 28px; }
    .eolo-form-subheading--small  { font-size: 12px; }
    .eolo-form-subheading--medium { font-size: 14px; }
    .eolo-form-subheading--large  { font-size: 16px; }
    .eolo-form-subheading { margin-bottom: 20px; }
}
@media (max-width: 480px) {
    .eolo-form-wrapper { padding: 0 12px; }
    .eolo-form-card { padding: 22px 18px; border-radius: 10px; }
    .eolo-form-card-overlap { margin-top: -20px; }
    .eolo-form-heading--small  { font-size: 16px; }
    .eolo-form-heading--medium { font-size: 20px; }
    .eolo-form-heading--large  { font-size: 24px; }
    .form-control { font-size: 16px; padding: 12px 14px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Custom Form — Visual hero header
   ─────────────────────────────────────────────────────────────────────────
   These rules used to live inline in forms/_theme_header.twig <style>
   which caused FOUC: the browser rendered the section, then reapplied
   styles, visibly shifting the heading. Moving the rules here (loaded
   via <head>) makes layout stable from the first paint.
   ───────────────────────────────────────────────────────────────────── */
.form-visual-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.form-header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.form-header-overlay.has-media-bg {
    background: rgba(0, 0, 0, 0.4);
}

/* Landing-page video hero: clear the fixed 80px nav at the top and give the
   form card below room to overlap without colliding with the hero content. */
.form-visual-header.has-video-header {
    min-height: 520px !important;
    padding-top: 110px;  /* 80px fixed nav + 30px safety gap */
    padding-bottom: 90px;
    box-sizing: border-box;
}
/* Vertical gradient on all viewports — darker at the top where the title and
   subtitle sit, lighter toward the bottom so the centered video player below
   stays clear instead of being washed out. */
.form-visual-header.has-video-header .form-header-overlay.has-media-bg {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 100%);
}
/* Text-shadow only over media-backed video heroes, so color-background
   headers keep crisp text without an out-of-place dark halo. */
.form-visual-header.has-video-header .form-header-title,
.form-visual-header.has-video-header .form-header-desc {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.form-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
}

/* Title + description with editor-controlled size variants.
   --small / --medium / --large are set per-form via theme builder. */
.form-header-title {
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.2;
}
.form-header-title--small  { font-size: 1.4rem; }
.form-header-title--medium { font-size: 2.2rem; }
.form-header-title--large  { font-size: 3rem; }

.form-header-desc {
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}
.form-header-desc--small  { font-size: 0.9rem; }
.form-header-desc--medium { font-size: 1.1rem; }
.form-header-desc--large  { font-size: 1.35rem; }

@media (max-width: 768px) {
    .form-header-title--small  { font-size: 1.2rem; }
    .form-header-title--medium { font-size: 1.8rem; }
    .form-header-title--large  { font-size: 2.3rem; }
    .form-header-desc--small  { font-size: 0.85rem; }
    .form-header-desc--medium { font-size: 1rem; }
    .form-header-desc--large  { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .form-header-title { word-break: break-word; line-height: 1.25; }
    .form-header-title--small  { font-size: 1.1rem; }
    .form-header-title--medium { font-size: 1.4rem; }
    .form-header-title--large  { font-size: 1.8rem; }
    .form-header-desc--small  { font-size: 0.8rem; }
    .form-header-desc--medium { font-size: 0.95rem; }
    .form-header-desc--large  { font-size: 1.05rem; }
    .form-header-content { padding: 28px 16px; }
}

/* Embedded header video — centered vertical stack: title, subtitle, then the
   video player, all centered and constrained to a comfortable reading width. */
.form-header-content.has-video {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.form-header-content.has-video .form-header-text {
    width: 100%;
    margin-bottom: 8px;
}
.form-header-content.has-video .form-header-desc {
    margin: 0 auto;
}
.form-header-video-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.form-header-video-box:hover {
    transform: translateY(-2px) scale(1.015);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55),
                0 0 15px rgba(212, 117, 47, 0.25);  /* brand orange glow */
}
.form-header-video-box iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ─── Page-builder responsive overrides (Fase 5) ──────────────────────────
   Applied to an optional .pb-section-wrap that the page renders only when a
   section has at least one override set. Breakpoints mirror the site scale:
   tablet ≤992px, phone ≤480px, desktop ≥993px. */
.pb-section-wrap { display: block; }

/* Per-edge spacing scale */
.pb-pt-sm { padding-top: 16px; }   .pb-pb-sm { padding-bottom: 16px; }
.pb-pt-md { padding-top: 40px; }   .pb-pb-md { padding-bottom: 40px; }
.pb-pt-lg { padding-top: 80px; }   .pb-pb-lg { padding-bottom: 80px; }
.pb-pt-xl { padding-top: 120px; }  .pb-pb-xl { padding-bottom: 120px; }
.pb-mt-sm { margin-top: 16px; }    .pb-mb-sm { margin-bottom: 16px; }
.pb-mt-md { margin-top: 40px; }    .pb-mb-md { margin-bottom: 40px; }
.pb-mt-lg { margin-top: 80px; }    .pb-mb-lg { margin-bottom: 80px; }
.pb-mt-xl { margin-top: 120px; }   .pb-mb-xl { margin-bottom: 120px; }

/* Mobile column reversal: when a two-column split stacks, flip the order so
   image/text don't end up swapped on small screens. */
@media (max-width: 992px) {
    .pb-reverse-mobile .split-layout {
        display: flex;
        flex-direction: column-reverse;
    }
    .pb-reverse-mobile .split-layout.reverse { direction: ltr; }
}

/* Device visibility */
@media (min-width: 993px) { .pb-hide-desktop { display: none !important; } }
@media (min-width: 481px) and (max-width: 992px) { .pb-hide-tablet { display: none !important; } }
@media (max-width: 480px) { .pb-hide-mobile { display: none !important; } }

