/* =========================================================================
   BJB Capital AI - main stylesheet
   Light theme, deep emerald accent on warm off-white. Fonts: Sora (display),
   Manrope (body), self-hosted variable woff2.
   ========================================================================= */

@font-face {
    font-family: 'Sora';
    src: url('../fonts/sora-var.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-var.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #0B7A55;
    --accent-hover: #096446;
    --accent-deep: #0E5A41;
    --accent-tint: #E4F1EB;
    --gold: #C99A2E;
    --gold-soft: #F5E7C6;

    --bg: #F8F7F2;
    --surface: #FEFDF9;
    --surface-2: #F1EFE6;
    --border: #E4E1D4;
    --border-strong: #CECBB9;

    --text: #182420;
    --text-muted: #5A6660;

    --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(24, 42, 36, .06), 0 2px 6px rgba(24, 42, 36, .05);
    --shadow-md: 0 1px 2px rgba(24, 42, 36, .06), 0 8px 24px rgba(24, 42, 36, .10);
    --shadow-lg: 0 2px 6px rgba(24, 42, 36, .08), 0 18px 48px rgba(24, 42, 36, .14);

    --grid-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%230B7A55' fill-opacity='.07'/%3E%3C/svg%3E");
    --mesh-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230B7A55' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M8 96 44 60l24 22 40-48'/%3E%3Ccircle cx='44' cy='60' r='3'/%3E%3Ccircle cx='68' cy='82' r='3'/%3E%3Ccircle cx='108' cy='34' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.18;
    margin: 0 0 .55em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 700; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 18px;
    border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }

.container {
    width: 100%; max-width: 1200px; margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    padding: 13px 26px; border-radius: 12px; border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: var(--accent); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn--secondary {
    background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn--secondary:hover { background: var(--accent-tint); color: var(--accent-deep); }
.btn--sm { padding: 9px 18px; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- header / nav ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(248, 247, 242, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(254, 253, 249, .97); }

.site-header__inner {
    display: flex; align-items: center; gap: 28px;
    min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word {
    font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
    letter-spacing: -.01em; white-space: nowrap;
}
.logo-word em { font-style: normal; color: var(--accent); }

.site-nav { margin-inline: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.site-nav__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: .93rem;
    color: var(--text); padding: 10px 12px; border-radius: 10px;
    transition: background-color .15s ease, color .15s ease;
}
.site-nav__trigger:hover { background: var(--accent-tint); color: var(--accent-deep); }
.site-nav__trigger[aria-expanded="true"] { color: var(--accent-deep); background: var(--accent-tint); }
.site-nav__caret { transition: transform .18s ease; }
.site-nav__trigger[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    padding: 8px; min-width: 264px; z-index: 110;
}
.dropdown::before {
    content: ""; position: absolute; top: -5px; left: 22px;
    width: 10px; height: 10px; background: var(--surface);
    border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.dropdown.align-right { left: auto; right: 0; }
.dropdown.align-right::before { left: auto; right: 22px; }
.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link {
    display: block; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text); font-size: .92rem; font-weight: 500;
}
.dropdown__link:hover, .dropdown__link:focus-visible {
    background: var(--accent-tint); color: var(--accent-deep); text-decoration: none;
}
.dropdown__link.is-active { color: var(--accent-deep); font-weight: 700; }

.site-nav__item { position: relative; }
.dropdown[hidden] { display: none; }

@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown:not([hidden]) { animation: dropdown-in .16s ease; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.burger {
    display: none; background: none; border: 1.5px solid var(--border-strong);
    border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text);
    line-height: 0;
}
.burger__icon--close { display: none; }
.burger[aria-expanded="true"] .burger__icon--open { display: none; }
.burger[aria-expanded="true"] .burger__icon--close { display: inline-block; }

.mobile-nav {
    border-top: 1px solid var(--border); background: var(--surface);
    padding: 18px 0 26px;
}
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__group summary {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 13px 4px; font-weight: 700;
    font-family: var(--font-display); font-size: .95rem; list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group[open] summary .icon { transform: rotate(180deg); }
.mobile-nav__group summary .icon { transition: transform .18s ease; color: var(--text-muted); }
.mobile-nav__group ul { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-nav__group li a {
    display: block; padding: 9px 12px; color: var(--text-muted); font-size: .94rem;
    border-radius: var(--radius-sm);
}
.mobile-nav__group li a:hover { background: var(--accent-tint); color: var(--accent-deep); text-decoration: none; }
.mobile-nav__cta { margin-top: 18px; }

/* ---------- ticker row (beacon injects it under the header) ---------- */

/* ---------- breadcrumbs ---------- */

.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumbs__list {
    display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
    margin: 0; padding: 10px 0; font-size: .82rem; color: var(--text-muted);
}
.breadcrumbs__list li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs__list a { color: var(--text-muted); }
.breadcrumbs__list a:hover { color: var(--accent); }

/* ---------- sections ---------- */

.section { padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.section--tint { background: var(--surface-2); }
.section--surface { background: var(--surface); }
.section--deco-grid {
    background:
        var(--grid-texture),
        linear-gradient(180deg, var(--accent-tint) 0%, rgba(228, 241, 235, 0) 60%);
}
.section--deco-mesh {
    background:
        var(--mesh-texture) no-repeat right -10px center / 340px auto,
        radial-gradient(600px 300px at 85% 20%, rgba(11, 122, 85, .08), transparent 70%),
        var(--surface);
}
.section--band {
    background:
        var(--grid-texture),
        linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #F2F7F4;
}
.section--band h2 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.03rem; margin-bottom: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent-deep); background: var(--accent-tint);
    border: 1px solid rgba(11, 122, 85, .18);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding: clamp(44px, 6vw, 76px) 0 clamp(48px, 7vw, 88px);
    background:
        var(--mesh-texture) no-repeat right -30px top 40% / 420px auto,
        radial-gradient(900px 460px at 88% 8%, rgba(11, 122, 85, .10), transparent 65%),
        radial-gradient(600px 400px at 8% 92%, rgba(201, 154, 46, .08), transparent 60%),
        linear-gradient(180deg, #FBFAF4 0%, var(--bg) 100%);
}
.hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(28px, 5vw, 64px); align-items: start;
}
.hero__copy h1 { margin-bottom: .4em; }
.hero__lead { font-size: 1.06rem; color: var(--text-muted); max-width: 34em; }

.hero__meta {
    display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
    margin: 20px 0 6px; font-size: .93rem; color: var(--text-muted);
}
.hero__flag { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
.flag-id {
    width: 27px; height: 18px; border-radius: 3px; overflow: hidden; flex: none;
    box-shadow: 0 0 0 1px rgba(24, 42, 36, .12);
    display: inline-block;
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero__badge-link {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 10px 16px; font-weight: 600; font-size: .9rem; color: var(--text);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hero__badge-link:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: rgba(11, 122, 85, .35); color: var(--accent-deep); text-decoration: none;
}
.hero__badge-link .icon-badge { width: 36px; height: 36px; }

/* hero visual motif: candlesticks + trend curve, animated with GSAP */
.hero__visual { position: relative; }
.hero__art { width: 100%; height: auto; display: block; }
.hero__art-fallback { display: none; }
.hero-art-section { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 44px); }
@media (max-width: 980px) {
    .hero-art-section { padding-top: clamp(18px, 3vw, 30px); }
    .hero-art-section .hero__art { max-width: 640px; margin-inline: auto; }
}

/* parallax layer */
.hero__bg-parallax {
    position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
    opacity: .9;
}

/* hero form wrapper */
.hero .form-block { margin-top: 4px; }

/* ---------- forms ---------- */

.form-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    padding: clamp(20px, 3vw, 30px);
}
.form-block__intro { font-size: .95rem; color: var(--text-muted); margin-bottom: 14px; }
.form-block form { margin: 0; }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="password"] {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid var(--border-strong); background: #fff;
    font-family: var(--font-body); font-size: .95rem; color: var(--text);
    margin-bottom: 12px; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-block input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 122, 85, .15);
}
.form-block input[type="submit"] {
    width: 100%; padding: 13px 20px; border: none; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: .97rem;
    border-radius: 12px; box-shadow: var(--shadow-sm);
    transition: filter .15s ease, transform .15s ease;
}
.form-block input[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-heading {
    font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
    margin: 0 0 12px; color: var(--text);
}
.form-legal { font-size: .8rem; color: var(--text-muted); margin: 12px 0 0; text-align: center; }
.form-legal a { text-decoration: underline; }
.form-note {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .88rem; color: var(--text-muted); margin-top: 12px;
}
.form-note .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* ---------- icon badges / cards ---------- */

.icon-badge {
    width: 48px; height: 48px; border-radius: 13px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-tint); color: var(--accent);
}
.icon-badge--gold { background: var(--gold-soft); color: var(--gold); }
.icon-badge--ink { background: #E8EDE9; color: var(--accent-deep); }
.icon-badge--round { border-radius: 999px; }
.icon-badge .icon { width: 24px; height: 24px; }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: clamp(18px, 2.5vw, 26px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    height: 100%;
}
.card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-md);
    border-color: rgba(11, 122, 85, .28);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--flat:hover { transform: none; }

.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.card-head h3, .card-head h4 { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); }
.grid--stagger { grid-template-columns: 1.25fr 1fr; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px; transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
    width: 34px; height: 34px; border-radius: 999px; flex: none;
    background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    margin-bottom: 12px; box-shadow: 0 0 0 5px var(--accent-tint);
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ---------- tables ---------- */

.table-wrap {
    overflow-x: auto; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--surface);
    box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
thead th {
    background: var(--surface-2); text-align: left; font-family: var(--font-display);
    font-weight: 600; font-size: .85rem; letter-spacing: .01em;
    padding: 13px 16px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(241, 239, 230, .45); }

.check-yes { color: var(--accent); font-size: 1.05rem; }
.check-no { color: #B3453B; font-size: 1.05rem; }
.table-note { font-size: .85rem; color: var(--text-muted); margin-top: 12px; }

/* comparison table emphasis column */
.compare-offer { background: var(--accent-tint); font-weight: 600; }

/* ---------- exchanges ---------- */

.exchanges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.exchange-chip {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 10px 20px;
    color: var(--text-muted); opacity: .92;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.exchange-chip:hover { opacity: 1; border-color: var(--border-strong); transform: translateY(-1px); }
.exchange-chip svg { height: 20px; width: auto; }

/* ---------- reviews ---------- */

.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.review { display: flex; flex-direction: column; gap: 12px; }
.review__head { display: flex; align-items: center; gap: 13px; }
.review__avatar {
    width: 54px; height: 54px; border-radius: 999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
}
.review__avatar .icon { width: 26px; height: 26px; }
.review__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin: 0; }
.review__role { font-size: .82rem; color: var(--text-muted); margin: 0; }
.review__stats {
    display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem;
    background: var(--surface-2); border-radius: 10px; padding: 9px 14px;
}
.review__stats span strong { color: var(--text); }
.review__stats span { color: var(--text-muted); }
.review p { font-size: .93rem; color: var(--text); margin: 0; flex-grow: 1; }
.reviews-note {
    display: flex; align-items: flex-start; gap: 9px; font-size: .82rem;
    color: var(--text-muted); margin-top: 18px; max-width: 760px;
}
.reviews-note .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold); }

/* ---------- company block ---------- */

.company-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 54px); align-items: start; }
.company-facts { list-style: none; margin: 18px 0 22px; padding: 0; }
.company-facts li {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
    border-bottom: 1px dashed var(--border-strong); font-size: .95rem;
}
.company-facts li .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.company-facts li strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; list-style: none; padding: 16px 20px;
    font-family: var(--font-display); font-weight: 600; font-size: .99rem;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform .18s ease; flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--text-muted); font-size: .94rem; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- article / prose blocks ---------- */

.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.article-card .article-meta { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* ---------- map ---------- */

.map-embed {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); overflow: hidden;
    max-width: 860px; aspect-ratio: 16 / 9; min-height: 320px;
    background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */

.site-footer {
    background: #10201B; color: #C7D4CD; margin-top: auto;
    padding: clamp(44px, 6vw, 72px) 0 30px;
}
.site-footer__grid {
    display: grid; gap: 34px;
    grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo:hover { color: #fff; }
.site-footer__lead { font-size: .9rem; color: #93A69C; }
.site-footer__mail, .site-footer__city {
    display: flex; align-items: center; gap: 8px; font-size: .88rem; margin: 8px 0 0;
}
.site-footer__mail a { color: #C7D4CD; text-decoration: underline; }
.site-footer__mail a:hover { color: #fff; }
.site-footer__mail .icon, .site-footer__city .icon { color: var(--gold); }
.site-footer__col h3 {
    color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 14px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li a {
    display: inline-block; padding: 5px 8px 5px 0; margin: 1px 0; color: #AFC2B8; font-size: .88rem;
    min-height: 24px;
}
.site-footer__col li a:hover { color: #fff; text-decoration: none; }
.site-footer__disclaimer {
    margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__disclaimer h3 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer__disclaimer p { font-size: .8rem; color: #8FA39A; line-height: 1.7; }
.site-footer__bottom {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    font-size: .8rem; color: #8FA39A;
}
.site-footer__bottom p { margin: 0; }

/* ---------- calculator section ---------- */

.calc-section .calc-widget-wrap {
    max-width: 920px; margin-inline: auto;
}

/* decorative canvas chart near calculator */
.calc-chart {
    width: 100%; height: 150px; display: block; margin-top: 26px;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--surface);
}

/* a11y shim for the injected calculator modal: guarantee light title text on
   the dark modal surface regardless of CSS variable resolution order */
.calc-modal .calc-modal__content .calc-modal__title { color: #F2F7F4; }

/* ---------- urgency strip (special-offer) ---------- */

.urgency-strip {
    background: #10201B; color: #F2E4C4;
    padding: 9px 0; font-size: .82rem; font-weight: 600;
}
.urgency-strip__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.urgency-strip__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.urgency-strip__item .icon { color: var(--gold); }

/* ---------- special offer page ---------- */

.offer-hero {
    position: relative; overflow: hidden;
    padding: clamp(40px, 6vw, 72px) 0;
    background:
        var(--mesh-texture) no-repeat left -20px bottom 20% / 380px auto,
        radial-gradient(700px 380px at 12% 10%, rgba(201, 154, 46, .14), transparent 62%),
        radial-gradient(800px 420px at 90% 20%, rgba(11, 122, 85, .12), transparent 65%),
        linear-gradient(180deg, #FBF7EA 0%, var(--bg) 90%);
}
.offer-hero h1 .accent { color: var(--accent-deep); }
.offer-countdown-inline {
    display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 4px;
    font-weight: 700; color: #A2541E; font-size: .95rem;
}
.offer-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.offer-cta-band {
    text-align: center; padding: clamp(36px, 5vw, 56px) 0;
}
.offer-cta-band p { font-size: 1.08rem; max-width: 640px; margin-inline: auto; }

.countdown { display: inline-flex; gap: 8px; margin: 10px 0 6px; }
.countdown__seg {
    background: #10201B; color: #fff; border-radius: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
    min-width: 58px; padding: 8px 6px; text-align: center;
    box-shadow: var(--shadow-sm);
}
.countdown__label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }

/* exit-intent modal */
.offer-modal {
    position: fixed; inset: 0; z-index: 300; display: none;
    align-items: center; justify-content: center; padding: 20px;
}
.offer-modal.is-open { display: flex; }
.offer-modal__overlay {
    position: absolute; inset: 0; background: rgba(16, 32, 27, .55);
    backdrop-filter: blur(3px);
}
.offer-modal__card {
    position: relative; z-index: 1; background: var(--surface);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    max-width: 460px; width: 100%; padding: 30px 28px 26px; text-align: center;
    animation: dropdown-in .2s ease;
}
.offer-modal__close {
    position: absolute; top: 12px; right: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; width: 34px; height: 34px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1rem; line-height: 1;
}
.offer-modal__close:hover { background: var(--accent-tint); }
.offer-modal__art { width: 130px; height: auto; margin: 0 auto 8px; display: block; }
.offer-modal__card h2 { font-size: 1.5rem; }
.offer-modal__card p { color: var(--text-muted); font-size: .93rem; }

/* ---------- auth page ---------- */

.auth-hero {
    padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 8vw, 100px);
    background:
        var(--mesh-texture) no-repeat right -30px top 30% / 400px auto,
        radial-gradient(800px 400px at 90% 6%, rgba(11, 122, 85, .09), transparent 65%),
        linear-gradient(180deg, #FBFAF4, var(--bg));
}
.auth-hero .form-block { max-width: 480px; }

/* ---------- misc ---------- */

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.info-list li .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; flex: none; }

.notice {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--gold-soft); border: 1px solid rgba(201, 154, 46, .35);
    border-radius: var(--radius-md); padding: 16px 18px; font-size: .92rem;
}
.notice .icon { color: var(--gold); flex: none; margin-top: 2px; }
.notice p { margin: 0; }

.notice--risk { background: #F9E9E7; border-color: rgba(179, 69, 59, .3); }
.notice--risk .icon { color: #B3453B; }

.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(38px, 5vw, 64px) 0;
    background:
        var(--mesh-texture) no-repeat right -40px top 30% / 380px auto,
        radial-gradient(700px 360px at 90% 8%, rgba(11, 122, 85, .09), transparent 64%),
        linear-gradient(180deg, #FBFAF4, var(--bg));
}
.page-hero--split { padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(26px, 4vw, 56px); align-items: start;
}
.page-hero .form-block { max-width: 480px; }
.page-hero p.lead { font-size: 1.04rem; color: var(--text-muted); }

.detail-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.detail-list li { padding: 8px 0; border-bottom: 1px dashed var(--border-strong); display: flex; justify-content: space-between; gap: 18px; font-size: .94rem; }
.detail-list li span:first-child { color: var(--text-muted); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .site-nav { display: none; }
    .burger { display: inline-flex; }
    .hero__grid { grid-template-columns: 1fr; }
    /* Mobile (CRO block 1): headline first, then the form, then the rest. */
    .hero__copy { display: contents; }
    .hero__copy h1 { order: 1; }
    .hero__form-col { order: 2; }
    .hero__lead { order: 3; }
    .hero__meta { order: 4; }
    .hero__badges { order: 5; }
    .page-hero__grid { grid-template-columns: 1fr; }
    .page-hero .form-block { max-width: 560px; }
    .company-grid { grid-template-columns: 1fr; }
    .grid--stagger { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header__actions .btn { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .countdown__seg { min-width: 52px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Shared ticker and telephone field adjustments. */
.tv-ticker-wrapper {
    padding-top: 0 !important;
    height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
    color: rgb(24, 33, 47) !important;
}

/* Home page */
.hero--regional,
.home-reviews {
    --home-edge: rgba(11, 122, 85, .28);
}

.hero--regional {
    border-bottom: 1px solid var(--home-edge);
}

.hero--regional h1 {
    text-wrap: balance;
}

.hero--regional .hero__grid {
    column-gap: clamp(32px, 5.2vw, 80px);
}

.home-reviews {
    gap: clamp(16px, 2vw, 28px);
}

.home-reviews .review,
.home-reviews .review-card {
    border-top: 2px solid var(--home-edge);
}

.home-reviews img.review__avatar,
.home-reviews img.review-avatar {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid var(--home-edge);
    border-radius: 50%;
    flex: none;
}

/* Requested shared widget adjustments */
.tv-ticker-wrapper { padding-top: 0 !important; height: 58px !important; }
.iti__selected-country, .iti__selected-dial-code { color: rgb(24, 33, 47) !important; }

/* Homepage visual refinement */
.home-refresh { position:relative; isolation:isolate; overflow:hidden; background:rgb(249,248,243) !important; }
.home-refresh::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(105deg, rgba(249,248,243, .91) 0%, rgba(249,248,243, .84) 32%, rgba(249,248,243, .40) 92%), url('../images/regional-finance.png');
    background-size: 100% 100%, 200% 300%;
    background-position: center, 0% 0%;
    pointer-events: none;
}
.home-refresh h1 { text-wrap:balance; letter-spacing:-.035em; line-height:1.12; }
.home-refresh .hero__copy { max-width:720px; }
.home-refresh .hero__lead, .home-refresh .hero__text { line-height:1.75; }
.home-refresh .hero__aside, .home-refresh .hero__form-col, .home-refresh .hero__form-wrap { filter:drop-shadow(0 18px 26px rgba(0,0,0,.14)); }
.home-refresh ~ .section .card { border-radius:18px; }
.home-reviews .review, .home-reviews .review-card { box-shadow:0 12px 30px rgba(0,0,0,.06); border-top:2px solid var(--accent); }
.review-photo { display:block; flex:0 0 56px; width:56px; height:56px; border-radius:50%; background-image:url('../images/review-portraits.png'); background-repeat:no-repeat; background-size:400% 300%; box-shadow:0 0 0 3px var(--accent-tint); }
@media (max-width: 700px) {
    .home-refresh::before {
        background-image: linear-gradient(110deg, rgba(249,248,243, .88), rgba(249,248,243, .69) 75%, rgba(249,248,243, .62)), url('../images/regional-finance.png');
    }
}
.review-photo-0 { background-position:0.000% 0%; }
.review-photo-1 { background-position:33.333% 0%; }
.review-photo-2 { background-position:66.667% 0%; }
.review-photo-3 { background-position:100.000% 0%; }
.review-photo-4 { background-position:0.000% 50%; }
.review-photo-5 { background-position:33.333% 50%; }

/* Homepage hero */
.home-refresh {
    --hero-edge: color-mix(in srgb, var(--accent) 27%, var(--border, var(--surface)));
    --hero-muted: color-mix(in srgb, var(--text) 86%, var(--surface));
    padding-block: clamp(40px, 5vw, 76px);
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
    padding-block: 0;
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) > div {
    min-width: 0;
}

.home-refresh h1 {
    max-inline-size: 24ch;
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 3.6vw, 3.125rem);
    letter-spacing: -.035em;
    line-height: 1.09;
    text-wrap: balance;
}

.home-refresh .hero__accent {
    color: var(--accent);
}

.home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
    max-inline-size: 55ch;
    margin: 0;
    color: var(--hero-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.home-refresh :is(.hero__meta, .hero-meta, .hero__flags, .hero-flags) {
    margin-block: 20px 0;
    gap: 8px 12px;
}

.home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 14px 0;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-inline-size: 100%;
    min-block-size: 44px;
    padding: 6px 10px;
    border: 1px solid var(--hero-edge);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: .875rem;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link):is(:hover, :focus-visible) {
    border-color: var(--accent);
}

.home-refresh .hero-registration {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 470px;
    justify-self: end;
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid var(--hero-edge);
    border-block-start: 3px solid var(--accent);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .19);
}

.home-refresh .hero-registration :is(.form-slot, #registration-form, .hero-form-frame) {
    inline-size: 100%;
    max-inline-size: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: pretty;
}

.home-refresh .hero-registration :is(.form-note, .form-block__note, .hero-form-note, .form-block__manager, .form-legal) {
    margin: 12px 0 0;
    color: var(--hero-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.home-refresh .hero-registration .form-legal {
    text-align: start;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) {
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div {
    grid-area: auto;
    min-width: 0;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) input:not([type="hidden"], .iti__search-input) {
    margin-block-end: 0;
}

.home-refresh .wpcf7-101 input:not([type="hidden"], [type="submit"], [type="checkbox"], [type="radio"], .iti__search-input) {
    min-height: 44px;
    border-radius: 9px;
}

.home-refresh .wpcf7-101 input[type="submit"] {
    min-height: 46px;
    border-radius: 9px;
    font-weight: 700;
}

.home-refresh .wpcf7-101 input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 840px) {
    .home-refresh {
        padding-block: 32px 40px;
    }

    .home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .home-refresh .hero__copy {
        display: block;
    }

    .home-refresh .hero-registration {
        order: 0;
        max-inline-size: 560px;
        justify-self: start;
    }

    .home-refresh h1 {
        max-inline-size: 27ch;
        margin-block-end: 12px;
        font-size: clamp(1.875rem, 6.5vw, 2.5rem);
        text-wrap: pretty;
    }

    .home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
        font-size: .9375rem;
        line-height: 1.55;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-inline-size: 420px;
    }

    .home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
        gap: 6px;
        padding-inline: 8px;
        font-size: .8125rem;
        line-height: 1.3;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) :is(.icon-badge, .hero__trust-badge, .trust-chip__icon) {
        flex: 0 0 24px;
        inline-size: 24px !important;
        block-size: 24px !important;
    }

    .home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
        margin-block-end: 14px;
        font-size: 1.125rem;
    }
}
