/* ==========================================================================
   AMK-strojarstvo — "FORGE" theme (v2)
   Dark industrial / editorial. Self-contained, no framework dependency.
   ========================================================================== */

:root {
    --green:      #4cbf36;
    --green-2:    #3aaa35;
    --green-700:  #2c8a28;
    --green-soft: rgba(76, 191, 54, .14);

    --bg:    #0e1214;
    --bg-2:  #141a1e;
    --bg-3:  #1b2329;
    --panel: #171e23;

    --white:    #f2f6f7;
    --text:     #b7c2c8;
    --text-dim: #76848c;

    --line:   rgba(255, 255, 255, .10);
    --line-2: rgba(255, 255, 255, .18);

    --radius: 6px;
    --container: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--white); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
::selection { background: var(--green); color: #06210b; }

/* ---- layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* blueprint grid background accent */
.gridlines::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .5;
    pointer-events: none;
}

/* ---- section heading ----------------------------------------------------- */
.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-body);
    font-size: .76rem; font-weight: 700;
    letter-spacing: .26em; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 22px;
}
.kicker .num {
    font-family: var(--font-display);
    color: var(--text-dim);
    font-size: .9rem;
    letter-spacing: 0;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--green); }

.shead { max-width: 820px; margin-bottom: clamp(40px, 6vw, 68px); }
.shead.center { margin-inline: auto; text-align: center; }
.shead.center .kicker { justify-content: center; }
.shead p { color: var(--text-dim); font-size: 1.12rem; margin: 0; }

.lead { font-size: 1.22rem; color: var(--text); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-weight: 700; font-size: .95rem;
    letter-spacing: .02em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-long-arrow-right { transform: translateX(5px); }

.btn--primary { background: var(--green); color: #06210b; }
.btn--primary:hover { background: var(--white); color: var(--bg); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }

.btn--lg { padding: 19px 36px; font-size: 1.02rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
    background: rgba(14, 18, 20, .82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand__logo { display: block; height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__name { font-size: 1.18rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.brand__sub { font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--green); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: nowrap; }
.nav__menu > li { position: relative; }
.nav__menu a {
    display: block; padding: 10px 14px;
    color: var(--text); font-weight: 600; font-size: .96rem;
    letter-spacing: .01em; white-space: nowrap;
}
.nav__menu a:hover { color: var(--white); }
.nav__menu li.is-active > a { color: var(--white); }
.nav__menu li.is-active > a::after {
    content: ""; display: block; height: 2px; background: var(--green);
    margin-top: 5px;
}
.has-dropdown > a::after { content: " \f107"; font-family: "FontAwesome"; font-size: .8em; opacity: .5; margin-left: 6px; }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 0;
    min-width: 250px; list-style: none;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .22s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 11px 14px; border-radius: 4px; }
.dropdown a:hover { background: var(--green-soft); color: var(--green); }

.nav__cta { display: inline-flex; }
.nav__toggle {
    display: none; width: 48px; height: 48px;
    background: transparent; border: 1px solid var(--line-2);
    border-radius: var(--radius); color: var(--white);
    font-size: 1.3rem; cursor: pointer;
    align-items: center; justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,18,20,.7) 0%, rgba(14,18,20,.25) 35%, rgba(14,18,20,.92) 100%),
        linear-gradient(90deg, rgba(14,18,20,.7), rgba(14,18,20,0) 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 8vw, 110px); padding-top: 130px; }
.hero__index {
    position: absolute; top: 120px; right: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-display); font-weight: 800;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--text-dim); font-size: .8rem;
    display: flex; align-items: center; gap: 16px;
}
.hero__index::after { content: ""; width: 1px; height: 80px; background: var(--line-2); }
.hero h1 { margin-bottom: 0; }
.hero h1 .accent { color: var(--green); }
.hero h1 .outline {
    -webkit-text-stroke: 2px rgba(255,255,255,.6); color: transparent;
}
.hero__sub { max-width: 540px; font-size: 1.18rem; color: var(--text); margin: 26px 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-dim); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--green), transparent); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- marquee ------------------------------------------------------------- */
.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    padding: 20px 0;
}
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: 1.5rem; letter-spacing: .02em; color: var(--white);
    display: inline-flex; align-items: center;
}
.marquee__track span::after { content: "\f111"; font-family: "FontAwesome"; font-size: .4rem; color: var(--green); margin: 0 30px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,20,.6), var(--bg)); }
.page-hero__inner { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 10px; list-style: none; font-size: .82rem; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 22px; text-transform: uppercase; }
.breadcrumb li::after { content: "/"; margin-left: 10px; opacity: .5; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--green); }
.page-hero p { max-width: 640px; color: var(--text-dim); font-size: 1.12rem; margin: 12px 0 0; }

/* ==========================================================================
   Bento services grid
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento__cell {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    min-height: 280px; display: flex; color: var(--white);
    text-transform: none;
}
.bento__cell.lg { grid-column: span 4; min-height: 420px; }
.bento__cell.sm { grid-column: span 2; }
.bento__cell.full { grid-column: span 6; min-height: 240px; }
.bento__cell.wide { grid-column: span 3; min-height: 340px; }
.bento__cell.tall { grid-row: span 2; }
.bento__cell.cta-box { background: var(--bg-3); border: 1px solid var(--line-2); }
.bento__cell.cta-box::after { display: none; }
.bento__cell.cta-box:hover { border-color: var(--green); background: var(--bg-2); }
.cta-box__icon { display: inline-block; font-size: 1.5rem; color: var(--green); margin-bottom: 14px; }
.bento__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.bento__cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,20,.15) 30%, rgba(14,18,20,.9)); transition: background .3s var(--ease); }
.bento__cell:hover .bento__img { transform: scale(1.06); }
.bento__cell:hover::after { background: linear-gradient(180deg, rgba(14,18,20,.25) 10%, rgba(8,33,11,.55) 60%, rgba(14,18,20,.92)); }
.bento__body { position: relative; z-index: 2; margin-top: auto; padding: 28px; width: 100%; }
.bento__tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.bento__body h3 { color: var(--white); margin-bottom: 6px; }
.bento__cell.lg .bento__body h3 { font-size: 2rem; text-transform: uppercase; font-family: var(--font-display); }
.bento__body p { color: var(--text); font-size: .95rem; margin-bottom: 14px; max-width: 460px; }
.bento__more { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--white); font-size: .92rem; }
.bento__more i { transition: transform .25s var(--ease); }
.bento__cell:hover .bento__more i { transform: translateX(5px); }
/* non-image cell (stat / text) */
.bento__cell.solid { background: var(--panel); }
.bento__cell.solid::after { display: none; }
.bento__cell.accent { background: var(--green); }
.bento__cell.accent::after { display: none; }
.bento__cell.accent * { color: #06210b !important; }
.bento__bignum { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--white); }
.bento__bignum span { color: var(--green); }

/* ==========================================================================
   Split intro
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.4; border: 1px solid var(--line); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(76,191,54,.0); transition: border-color .3s var(--ease); z-index: 2; pointer-events: none; }
.split__tag {
    position: absolute; left: 0; bottom: 24px; z-index: 3;
    background: var(--green); color: #06210b;
    padding: 14px 22px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    letter-spacing: .02em;
}
.checklist { list-style: none; display: grid; gap: 14px; margin: 24px 0 30px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.checklist i { color: var(--green); margin-top: 5px; font-size: .85rem; }

/* ==========================================================================
   Numbered "why" rows
   ========================================================================== */
.why { display: grid; gap: 0; }
.why__row {
    display: grid; grid-template-columns: 100px 1fr auto; gap: 30px; align-items: center;
    padding: 30px 0; border-top: 1px solid var(--line);
    transition: padding-left .3s var(--ease);
}
.why__row:last-child { border-bottom: 1px solid var(--line); }
.why__row:hover { padding-left: 14px; }
.why__num { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--text-dim); transition: color .3s var(--ease); }
.why__row:hover .why__num { color: var(--green); }
.why__row h3 { margin: 0 0 4px; }
.why__row p { margin: 0; color: var(--text-dim); }
.why__icon { font-size: 1.6rem; color: var(--text-dim); }
.why__row:hover .why__icon { color: var(--green); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-bar a {
    padding: 10px 18px; font-size: .9rem; font-weight: 600;
    color: var(--text); border: 1px solid var(--line);
    border-radius: var(--radius); transition: all .2s var(--ease);
}
.cat-bar a:hover { border-color: var(--line-2); color: var(--white); }
.cat-bar a.is-active { background: var(--green); border-color: var(--green); color: #06210b; }

.masonry { columns: 3; column-gap: 18px; }
.masonry .tile { break-inside: avoid; margin-bottom: 18px; }
.tile {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    cursor: zoom-in; background: var(--bg-2);
}
.tile img { width: 100%; display: block; transition: transform .55s var(--ease); filter: saturate(.95); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,33,11,0) 45%, rgba(8,33,11,.7)); opacity: 0; transition: opacity .3s var(--ease); }
.tile__icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transform: scale(.8); transition: all .3s var(--ease); }
.tile__icon span { width: 54px; height: 54px; background: var(--green); color: #06210b; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border-radius: var(--radius); }
.tile:hover img { transform: scale(1.07); filter: saturate(1.1); }
.tile:hover::after { opacity: 1; }
.tile:hover .tile__icon { opacity: 1; transform: scale(1); }
.gallery-empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }

.gfeat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gfeat { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/10; display: flex; }
.gfeat__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.gfeat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,20,.1), rgba(14,18,20,.88)); }
.gfeat:hover .gfeat__img { transform: scale(1.06); }
.gfeat__body { position: relative; z-index: 2; margin-top: auto; padding: 32px; }
.gfeat__body h3 { font-size: 1.9rem; text-transform: uppercase; }
.gfeat__body p { color: var(--text); margin-bottom: 14px; }

/* ==========================================================================
   Services page
   ========================================================================== */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(34px,5vw,56px) 0; border-top: 1px solid var(--line); }
.srow:last-of-type { border-bottom: 1px solid var(--line); }
.srow:nth-child(even) .srow__media { order: 2; }
.srow__media { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; }
.srow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.srow__media:hover img { transform: scale(1.05); }
.srow__idx { font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--green); letter-spacing: .2em; margin-bottom: 12px; }
.srow h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.scols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; margin-top: 18px; }
.scols ul { list-style: none; display: grid; gap: 11px; }
.scols li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.scols li::before { content: "\f0da"; font-family: "FontAwesome"; color: var(--green); margin-top: 3px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-2);
    padding: clamp(44px, 7vw, 80px);
    display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .5; -webkit-mask-image: radial-gradient(circle at 85% 30%, #000, transparent 70%); mask-image: radial-gradient(circle at 85% 30%, #000, transparent 70%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-dim); margin: 0; max-width: 520px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); }
.contact-info { display: grid; gap: 0; align-content: start; }
.cinfo {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px 0; border-top: 1px solid var(--line);
}
.contact-info .cinfo:last-child { border-bottom: 1px solid var(--line); }
.cinfo i { color: var(--green); font-size: 1.2rem; width: 30px; flex: 0 0 auto; margin-top: 4px; }
.cinfo b { display: block; font-family: var(--font-display); color: var(--white); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.cinfo a { color: var(--text); }
.cinfo a:hover { color: var(--green); }
.contact-social { display: flex; gap: 12px; margin-top: 26px; }
.contact-social a { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.contact-social a:hover { background: var(--green); border-color: var(--green); color: #06210b; }

.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.field input, .field textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--white);
    padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2);
    border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); line-height: 0; }
.map-frame iframe { width: 100%; height: 460px; border: 0; display: block; filter: grayscale(1) invert(.9) contrast(.85); }

/* ==========================================================================
   Flash
   ========================================================================== */
.flash-wrap { position: fixed; top: 96px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.flash { pointer-events: auto; background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 14px 22px; color: var(--white); font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: flashIn .4s var(--ease); }
.flash i { color: var(--green); }
.flash.error { border-left-color: #e0584b; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 50px; }
.site-footer h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--text-dim); max-width: 360px; font-size: .98rem; }
.flinks { list-style: none; display: grid; gap: 12px; }
.flinks a { color: var(--text-dim); font-weight: 500; }
.flinks a:hover { color: var(--green); }
.fcontact { list-style: none; display: grid; gap: 14px; }
.fcontact li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-dim); }
.fcontact i { color: var(--green); margin-top: 5px; }
.fcontact a { color: var(--text-dim); }
.fcontact a:hover { color: var(--green); }

.footer-eu { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-eu .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }
.footer-eu img { height: 50px; background: #fff; padding: 6px 10px; border-radius: 4px; }

.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: .86rem; color: var(--text-dim); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,11,.96); display: none; align-items: center; justify-content: center; padding: 28px; opacity: 0; transition: opacity .25s var(--ease); }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); border: 1px solid var(--line-2); }
.lightbox__close, .lightbox__nav { position: absolute; width: 54px; height: 54px; background: transparent; border: 1px solid var(--line-2); color: var(--white); border-radius: var(--radius); cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green); border-color: var(--green); color: #06210b; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-size: .85rem; letter-spacing: .1em; }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
    .bento__cell.lg, .bento__cell.sm, .bento__cell.full, .bento__cell.wide { grid-column: span 3; }
    .bento__cell.tall { grid-row: auto; }
    .bento { grid-template-columns: repeat(6, 1fr); }
    .split, .contact-grid, .cta, .gfeat-grid, .srow { grid-template-columns: 1fr; }
    .srow:nth-child(even) .srow__media { order: 0; }
    .masonry { columns: 2; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero__index { display: none; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav__menu {
        position: fixed; inset: 0 0 0 auto; width: min(86vw, 350px);
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--panel); padding: 100px 18px 30px;
        transform: translateX(100%); transition: transform .3s var(--ease);
        border-left: 1px solid var(--line); z-index: 90; overflow-y: auto;
    }
    .nav__menu.open { transform: translateX(0); }
    .nav__menu a { padding: 14px 16px; font-size: 1.05rem; }
    .nav__menu li.is-active > a::after { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
    .has-dropdown.open .dropdown { max-height: 400px; }
    .nav__cta { display: none; }
    .nav__toggle { display: inline-flex; z-index: 95; }
    .bento__cell.lg, .bento__cell.sm, .bento__cell.full, .bento__cell.wide { grid-column: span 6; }
    .scols, .form-grid, .footer-top { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
    .why__row { grid-template-columns: 60px 1fr; }
    .why__icon { display: none; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(8,10,11,.6); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); }
    .nav-backdrop.open { opacity: 1; visibility: visible; }
}
