/* ==========================================================================
   SoftRain AG — softrain.ch
   Palette: Logo-Blau #0079B4 · Gold #B2A46D · Tiefblau #034D72
   Fonts:   Bricolage Grotesque (Display) · Hanken Grotesk (Text)
            Spline Sans Mono (Labels)
   ========================================================================== */

:root {
    --blue:       #0079B4;
    --blue-deep:  #034D72;
    --blue-ink:   #045E8C;   /* Textlinks auf hellem Grund */
    --navy:       #04283C;
    --navy-2:     #062F46;
    --navy-deep:  #021D2E;
    --gold:       #B2A46D;
    --gold-light: #CBBE90;
    --gold-dark:  #96884F;

    --paper:      #F7F6F1;
    --card:       #FFFFFF;
    --ink:        #1E2B33;
    --ink-soft:   #4C5B64;
    --line:       #E5E2D7;

    --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
    --font-body:    "Hanken Grotesk", "Helvetica Neue", sans-serif;
    --font-mono:    "Spline Sans Mono", ui-monospace, monospace;

    --radius:     14px;
    --header-h:   84px;
    --ease-out:   cubic-bezier(.22, .84, .36, 1);
}

/* ---------- Reset / Basis ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--blue); color: #fff; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--navy); color: #fff; padding: .75rem 1.25rem;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
    width: min(1140px, 100% - 3rem);
    margin-inline: auto;
}

/* Logo-Punktfarben */
.d-blue { fill: var(--blue); }
.d-gold { fill: var(--gold); }

/* ---------- Scroll-Reveal (nur mit JS aktiv — .no-js zeigt alles sofort) ---------- */

html:not(.no-js) .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--stagger, 0) * 90ms);
}
html:not(.no-js) .reveal.in-view { opacity: 1; transform: none; }

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

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .35s ease, box-shadow .35s ease;
}
.header-inner {
    width: min(1240px, 100% - 3rem);
    margin-inline: auto;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
}
.header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(4, 40, 60, .08), 0 12px 32px -18px rgba(4, 40, 60, .25);
}

/* Marke / Logo-Lockup */
.brand {
    display: flex; align-items: center; gap: .8rem;
    text-decoration: none !important;
}
.brand-dots { width: 40px; height: 40px; flex: none; transition: transform .5s var(--ease-out); }
.brand:hover .brand-dots { transform: rotate(90deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.55rem; letter-spacing: .01em;
}
.brand-soft { color: #fff; transition: color .35s ease; }
.brand-rain { color: var(--gold); }
.brand-tag {
    font-family: var(--font-mono);
    font-size: .54rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    margin-top: .3rem;
    transition: color .35s ease;
}
.header.is-scrolled .brand-soft { color: var(--blue-deep); }
.header.is-scrolled .brand-tag { color: var(--ink-soft); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
    position: relative;
    font-weight: 600; font-size: .95rem;
    color: rgba(255, 255, 255, .85);
    text-decoration: none !important;
    padding: .35rem 0;
    transition: color .3s ease;
}
.nav-link::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header.is-scrolled .nav-link { color: var(--ink-soft); }
.header.is-scrolled .nav-link:hover,
.header.is-scrolled .nav-link.is-active { color: var(--navy); }

.nav-cta {
    font-weight: 700; font-size: .9rem;
    color: var(--navy) !important;
    background: var(--gold);
    padding: .6rem 1.25rem; border-radius: 999px;
    text-decoration: none !important;
    transition: background .3s ease, transform .3s ease;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Burger */
.menu-btn {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
    z-index: 120;
}
.menu-btn span {
    display: block; width: 26px; height: 2px; margin-inline: auto;
    background: #fff; border-radius: 2px;
    transition: transform .35s var(--ease-out), opacity .25s ease, background .3s ease;
}
.header.is-scrolled .menu-btn span { background: var(--navy); }
body.nav-open .menu-btn span { background: #fff; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    background:
        radial-gradient(1100px 700px at 78% 18%, rgba(0, 121, 180, .28), transparent 60%),
        radial-gradient(900px 600px at 12% 88%, rgba(178, 164, 109, .12), transparent 55%),
        linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* feines Punktraster — Echo des Logos */
.hero-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.3px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(720px 560px at 72% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(720px 560px at 72% 40%, #000 20%, transparent 72%);
}

/* «Soft Rain» — fallende Punkte (per JS befüllt) */
.hero-rain { position: absolute; inset: 0; overflow: hidden; }
.rain-dot {
    position: absolute; top: -3vh;
    border-radius: 50%;
    animation: rain-fall linear infinite;
}
@keyframes rain-fall {
    0%   { transform: translateY(-4vh); opacity: 0; }
    12%  { opacity: var(--o, .5); }
    88%  { opacity: var(--o, .5); }
    100% { transform: translateY(108vh); opacity: 0; }
}

/* grosses Logo-Punktmuster rechts */
.hero-dots-deco {
    position: absolute;
    right: clamp(-6rem, 4vw, 8rem); top: 50%;
    width: clamp(280px, 34vw, 480px); height: auto;
    transform: translateY(-50%) rotate(8deg);
    opacity: .16;
    animation: deco-float 9s ease-in-out infinite alternate;
}
@keyframes deco-float {
    from { transform: translateY(-52%) rotate(8deg); }
    to   { transform: translateY(-46%) rotate(11deg); }
}

.hero-content {
    position: relative; z-index: 2;
    width: min(1140px, 100% - 3rem);
    margin-inline: auto;
    padding: calc(var(--header-h) + 3rem) 0 6rem;
}

/* Eyebrow-Labels */
.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-family: var(--font-mono);
    font-size: .78rem; font-weight: 500;
    letter-spacing: .22em; text-transform: uppercase;
}
.hero-eyebrow { color: var(--gold-light); }
.eyebrow-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 14px 0 0 -1.5px var(--blue);
    margin-right: 14px;
}
.eyebrow-num { color: var(--gold-dark); font-weight: 600; }
.eyebrow-num::after { content: " /"; color: var(--line); }

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.9rem, 8.2vw, 5.9rem);
    line-height: 1.02;
    letter-spacing: -.015em;
    margin: 1.4rem 0 1.8rem;
}
.hero-title-gold span { color: var(--gold); }

/* Zeilenweiser Titel-Reveal beim Laden */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: line-up .9s var(--ease-out) forwards;
}
.reveal-line:nth-child(2) > span { animation-delay: .12s; }
.reveal-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub {
    max-width: 34rem;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .82);
    animation: fade-up .8s var(--ease-out) .45s backwards;
}

.hero-actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-top: 2.4rem;
    animation: fade-up .8s var(--ease-out) .6s backwards;
}

.hero-chips {
    display: flex; flex-wrap: wrap; gap: .6rem;
    list-style: none;
    margin-top: 3.2rem;
    animation: fade-up .8s var(--ease-out) .75s backwards;
}
.hero-chips li {
    font-family: var(--font-mono);
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .45rem .95rem; border-radius: 999px;
}

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

/* Scroll-Hinweis */
.scroll-hint {
    position: absolute; left: 50%; bottom: 2.2rem; z-index: 2;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    text-decoration: none !important;
    animation: fade-up .8s var(--ease-out) 1s backwards;
}
.scroll-hint-track {
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
    0%, 100% { transform: translateY(0); opacity: 1; }
    70%      { transform: translateY(16px); opacity: 0; }
}
.scroll-hint-label {
    font-family: var(--font-mono);
    font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-family: var(--font-body);
    font-weight: 700; font-size: 1rem;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .3s var(--ease-out), background .3s ease,
                border-color .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
    background: var(--gold); color: var(--navy);
    box-shadow: 0 10px 26px -12px rgba(178, 164, 109, .8);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }

/* ==========================================================================
   Sektionen
   ========================================================================== */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-light { background: var(--paper); }

.section-dark {
    background:
        radial-gradient(900px 600px at 85% 10%, rgba(0, 121, 180, .22), transparent 60%),
        linear-gradient(170deg, var(--navy-2), var(--navy-deep));
    color: #fff;
}
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow-num { color: var(--gold); }
.section-dark .eyebrow-num::after { color: rgba(255, 255, 255, .25); }
.section-dark .section-lead { color: rgba(255, 255, 255, .78); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.08; letter-spacing: -.01em;
    color: var(--blue-deep);
    margin: 1.1rem 0 1.2rem;
}
.section-dark .section-title { color: #fff; }
.title-dot { color: var(--gold); }
.section-lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Service-Karten ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.9rem 2rem;
    overflow: hidden;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
                opacity .7s var(--ease-out);
}
.card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -24px rgba(4, 40, 60, .28);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    color: var(--blue);
    background: color-mix(in srgb, var(--blue) 9%, white);
    border-radius: 16px;
    margin-bottom: 1.4rem;
    transition: background .35s ease, color .35s ease, transform .45s var(--ease-out);
}
.card:hover .card-icon {
    background: var(--blue); color: #fff;
    transform: rotate(-5deg) scale(1.05);
}
.card-icon svg { width: 36px; height: 36px; }

.card-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.35rem;
    color: var(--blue-deep);
    margin-bottom: .6rem;
}
.card-text { color: var(--ink-soft); font-size: .99rem; }

/* ---------- Split (Alles aus einer Hand) ---------- */

.split {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.4rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 4vw, 3rem);
}
.split-rail { display: flex; align-items: flex-start; }
.split-dots { width: 56px; height: 56px; opacity: .9; }
.split-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.45rem;
    color: var(--blue-deep);
    margin-bottom: .9rem;
}
.split-body p + p { margin-top: .9rem; }
.split-body { color: var(--ink-soft); }

/* ==========================================================================
   Produkte — Tabs
   ========================================================================== */

.tabs {
    display: inline-flex; gap: .4rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .35rem;
    margin-bottom: 2.6rem;
}
.tab {
    font-family: var(--font-body);
    font-weight: 700; font-size: .95rem;
    color: rgba(255, 255, 255, .7);
    background: none; border: 0; cursor: pointer;
    padding: .65rem 1.5rem; border-radius: 999px;
    transition: background .3s ease, color .3s ease;
}
.tab:hover { color: #fff; }
.tab.is-active { background: var(--gold); color: var(--navy); }

.panel { display: none; }
.panel.is-active { display: block; animation: panel-in .5s var(--ease-out); }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.panel-title {
    display: flex; align-items: center; flex-wrap: wrap; gap: .8rem;
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.9rem;
    margin-bottom: 1.1rem;
}
.panel-badge {
    font-family: var(--font-mono);
    font-size: .62rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: .3rem .7rem; border-radius: 999px;
}
.panel-badge-gold { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.panel-info p { color: rgba(255, 255, 255, .8); }
.panel-info p + p { margin-top: .9rem; }
.panel-info .btn { margin-top: 1.6rem; }

.deploy-chips {
    display: flex; flex-wrap: wrap; gap: .55rem;
    list-style: none;
    margin-top: 1.5rem;
}
.deploy-chips li {
    font-family: var(--font-mono);
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-light);
    border: 1px dashed rgba(178, 164, 109, .55);
    padding: .4rem .85rem; border-radius: 999px;
}

.feature-list {
    list-style: none;
    display: grid; gap: .85rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.feature-list li {
    position: relative;
    padding-left: 1.9rem;
    color: rgba(255, 255, 255, .85);
    font-size: .98rem;
}
.feature-list li::before {
    content: "";
    position: absolute; left: 0; top: .48em;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold);
}
.feature-list li:nth-child(even)::before { background: var(--blue); }

.panel-visual {
    display: grid; place-items: center;
    color: rgba(178, 164, 109, .8);
    min-height: 220px;
}
.panel-visual svg { width: min(260px, 60%); }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
}

.contact-side { display: grid; gap: 1.2rem; }

.addr-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}
.addr-title {
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .8rem;
}
.addr-card address { font-style: normal; color: var(--ink-soft); }
.addr-links { margin-top: .8rem; font-weight: 600; }

.map-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.map-card iframe {
    width: 100%; height: 260px; border: 0;
    filter: grayscale(.85) contrast(1.02);
    transition: filter .5s ease;
}
.map-card:hover iframe { filter: none; }

/* ---------- Formular ---------- */

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 4vw, 2.6rem);
    box-shadow: 0 30px 60px -40px rgba(4, 40, 60, .3);
}
.form-title {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.6rem;
    color: var(--blue-deep);
    margin-bottom: 1.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: .68rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .45rem;
}
.field input, .field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem; color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem 1rem;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 121, 180, .14);
}
.field input.is-invalid, .field textarea.is-invalid {
    border-color: #C0392B;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
}

/* Honeypot — ausserhalb des Viewports, nicht display:none (Bot-Falle) */
.hp-field {
    position: absolute !important;
    left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}

.form-status {
    min-height: 1.4em;
    font-weight: 600; font-size: .95rem;
    margin-bottom: .9rem;
}
.form-status.ok { color: #1E7A46; }
.form-status.err { color: #C0392B; }

.btn-submit { width: 100%; position: relative; }
.btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(4, 40, 60, .3);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }

.form-note {
    font-size: .82rem; color: var(--ink-soft);
    margin-top: .9rem; text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255, 255, 255, .8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
}
.brand-footer .brand-soft { color: #fff; }
.brand-footer .brand-tag { color: rgba(255, 255, 255, .6); }
.footer-tagline {
    margin-top: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600; font-size: 1.05rem;
    color: var(--gold-light);
}
.footer h4 {
    font-family: var(--font-mono);
    font-size: .7rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p + p { margin-top: .8rem; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 1.3rem 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .55);
}
.to-top { color: rgba(255, 255, 255, .7); }
.to-top:hover { color: #fff; }

/* ==========================================================================
   Snackbar
   ========================================================================== */

.snackbar {
    position: fixed; left: 50%; bottom: 2rem; z-index: 150;
    transform: translate(-50%, 150%);
    background: var(--navy);
    color: #fff; font-weight: 600;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 1rem 1.6rem;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
    transition: transform .5s var(--ease-out), visibility .5s;
    max-width: min(92vw, 480px);
    visibility: hidden;
}
.snackbar.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
    .cards { grid-template-columns: 1fr; }
    .panel-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-dots-deco { opacity: .08; }
}

@media (max-width: 760px) {
    :root { --header-h: 72px; }

    .menu-btn { display: flex; }

    .nav {
        position: fixed; inset: 0; z-index: 110;
        flex-direction: column; justify-content: center; gap: 1.6rem;
        background:
            radial-gradient(700px 500px at 80% 15%, rgba(0, 121, 180, .25), transparent 60%),
            linear-gradient(165deg, var(--navy-2), var(--navy-deep));
        opacity: 0; visibility: hidden;
        transition: opacity .4s ease, visibility .4s ease;
    }
    body.nav-open .nav { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }

    .nav-link {
        font-family: var(--font-display);
        font-size: 1.7rem; font-weight: 700;
        color: rgba(255, 255, 255, .85) !important;
    }
    .nav-cta { margin-top: 1rem; font-size: 1rem; }

    .header.is-scrolled .nav-link { color: rgba(255, 255, 255, .85) !important; }

    .split { grid-template-columns: 1fr; }
    .split-rail { display: none; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .scroll-hint { display: none; }
    .tabs { display: flex; width: 100%; }
    .tab { flex: 1; padding-inline: .5rem; }
}
