/* =====================================================================
   ALMAD CONTRACTING — Design System  "Athletic Bold"
   Dark navy base · lime/green energy · blue secondary · fully responsive
   ===================================================================== */

/* -------------------------------------------------- Tokens */
:root {
    /* Surfaces (dark) */
    --ink-900: #070b12;
    --ink-800: #0a0f18;   /* page background */
    --ink-700: #0e1524;   /* alternating sections */
    --ink-600: #121c2f;   /* cards */
    --ink-500: #18243c;   /* raised surfaces */
    --line:        rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .17);

    /* Text */
    --fg:       #eef3fb;
    --fg-muted: #a3b4cf;
    --fg-dim:   #6f819d;

    /* Brand */
    --lime:        #99d122;
    --lime-bright: #b6f23c;
    --lime-600:    #7cae15;
    --green-deep:  #3f6a0a;
    --blue:        #3b9bff;

    /* Light surfaces */
    --paper:   #f4f7fb;
    --paper-2: #e9f0f8;
    --ink-on-paper: #0e1524;

    /* Typography */
    --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Radii */
    --r-sm: 8px;
    --r:    14px;
    --r-lg: 22px;
    --r-pill: 999px;

    /* Shadows / effects */
    --shadow-1: 0 4px 18px rgba(0, 0, 0, .25);
    --shadow-2: 0 18px 50px rgba(0, 0, 0, .45);
    --glow:     0 10px 40px rgba(153, 209, 34, .28);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(64px, 9vw, 120px);

    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--fg);
    background: var(--ink-800);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

::selection { background: var(--lime); color: #07140a; }

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

.skip-link {
    position: absolute; left: 12px; top: -60px;
    background: var(--lime); color: #07140a; font-weight: 700;
    padding: 10px 16px; border-radius: var(--r-sm); z-index: 300;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* -------------------------------------------------- Layout primitives */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--paper { background: var(--paper); color: var(--ink-on-paper); }
.section--ink700 { background: var(--ink-700); }
.bleed { position: relative; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Type helpers */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display); font-weight: 700; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
    margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); display: inline-block; }
.section--paper .eyebrow { color: var(--lime-600); }
.section--paper .eyebrow::before { background: var(--lime-600); }

.h-xl { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
.h-lg { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--fg-muted); max-width: 60ch; }
.section--paper .lead { color: #44546e; }
.accent { color: var(--lime); }
.section--paper .accent { color: var(--lime-600); }
.muted { color: var(--fg-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* -------------------------------------------------- Buttons */
.btn {
    --btn-bg: var(--ink-500);
    --btn-fg: var(--fg);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: .98rem;
    padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
    background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
    --btn-fg: #07140a;
    background: linear-gradient(135deg, var(--lime-bright), var(--lime-600));
    border-color: transparent;
}
.btn--primary:hover { box-shadow: var(--glow); }

.btn--ghost { background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--fg-muted); }

.section--paper .btn--ghost { border-color: rgba(14, 21, 36, .18); color: var(--ink-on-paper); }
.section--paper .btn--ghost:hover { background: rgba(14, 21, 36, .05); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------- Header / Nav */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    background: rgba(10, 15, 24, .55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s, height .3s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(8, 12, 20, .92);
    border-bottom-color: var(--line);
    height: 64px;
}
.site-header__inner { display: flex; align-items: center; gap: 22px; width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
    width: 44px; height: 44px; flex: none; display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
}
.site-header.is-scrolled .brand__logo { width: 38px; height: 38px; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #07140a;
    background: linear-gradient(135deg, var(--lime-bright), var(--lime-600));
    box-shadow: var(--glow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; letter-spacing: .02em; }
.brand__sub { font-size: .62rem; letter-spacing: .34em; color: var(--fg-dim); margin-top: 3px; }
.brand--light .brand__sub { color: var(--fg-muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
    position: relative; display: block; padding: 9px 14px; border-radius: var(--r-pill);
    font-weight: 500; font-size: .96rem; color: var(--fg-muted);
    transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav__link.is-active { color: var(--fg); }
.nav__link.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
    background: var(--lime); border-radius: 2px;
}
.header-cta { margin-left: 6px; }

/* Hamburger */
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
    border-radius: var(--r-sm); background: transparent; cursor: pointer;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
    margin-left: auto;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); z-index: 110;
    background: var(--ink-700); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s var(--ease);
    padding: calc(var(--header-h) + 20px) 28px 28px; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); box-shadow: -30px 0 60px rgba(0, 0, 0, .5); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__link { padding: 14px 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.drawer__link.is-active { color: var(--lime); }
.drawer__cta { margin-top: 22px; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(4, 7, 12, .6); z-index: 105; backdrop-filter: blur(2px); }

/* -------------------------------------------------- Hero */
.hero {
    position: relative; min-height: clamp(560px, 86vh, 820px);
    display: flex; align-items: flex-end;
    padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vh, 96px);
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 20, .55) 0%, rgba(8, 12, 20, .35) 35%, rgba(8, 12, 20, .92) 100%),
        linear-gradient(90deg, rgba(8, 12, 20, .85) 0%, rgba(8, 12, 20, .15) 70%);
}
.hero__glow { position: absolute; z-index: -1; width: 540px; height: 540px; right: -120px; top: 10%;
    background: radial-gradient(circle, rgba(153, 209, 34, .22), transparent 65%); filter: blur(20px); }
.hero__inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 22px; }
.hero h1 .accent { display: inline-block; }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #d3deee; max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .04); font-size: .85rem; font-weight: 600; color: var(--fg-muted);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(153, 209, 34, .25); }

/* -------------------------------------------------- Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink-700); padding: clamp(24px, 3vw, 38px); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--lime); line-height: 1; }
.stat__label { color: var(--fg-muted); margin-top: 8px; font-size: .95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------- Cards */
.card {
    background: var(--ink-600); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(22px, 2.6vw, 32px); position: relative; overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--lime), transparent); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(153, 209, 34, .12); color: var(--lime); margin-bottom: 18px;
    font-size: 1.5rem; border: 1px solid rgba(153, 209, 34, .25);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--fg-muted); margin: 0; font-size: .96rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--lime); font-weight: 600; font-size: .92rem; }

/* Image feature card (services with photo) */
.tile { border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--ink-600); border: 1px solid var(--line); display: block; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__body { padding: 20px 22px; }
.tile__body h3 { font-size: 1.15rem; }
.tile__overlay { position: absolute; inset: auto 0 0 0; padding: 28px 22px 18px; background: linear-gradient(transparent, rgba(7, 11, 18, .92)); }
.tile__overlay h3 { font-size: 1.2rem; }

/* -------------------------------------------------- Split feature */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); position: relative; }
.feature__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.feature ul.ticks { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 12px; }
.feature ul.ticks li { position: relative; padding-left: 32px; color: var(--fg-muted); }
.feature ul.ticks li::before {
    content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(153, 209, 34, .15); color: var(--lime); display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

/* -------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--green-deep), #0c1a02);
    border: 1px solid rgba(153, 209, 34, .25); padding: clamp(36px, 6vw, 70px);
    text-align: center;
}
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
    background: radial-gradient(circle, rgba(153, 209, 34, .3), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: #cfe0b6; max-width: 56ch; margin-inline: auto; margin-bottom: 28px; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }

/* -------------------------------------------------- Page hero (interior) */
.page-hero { position: relative; padding: calc(var(--header-h) + 70px) 0 clamp(40px, 6vw, 70px); overflow: hidden; background: var(--ink-700); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 80% -10%, rgba(59, 155, 255, .12), transparent), radial-gradient(700px 360px at 0% 120%, rgba(153, 209, 34, .12), transparent); }
.page-hero__inner { position: relative; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-bottom: 16px; }
.breadcrumb { color: var(--fg-dim); font-size: .9rem; margin-bottom: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb li[aria-hidden="true"] { color: var(--line-strong); }

/* -------------------------------------------------- CMS prose (legacy content reflowed) */
.cms { font-size: 1.02rem; color: var(--fg-muted); }
.cms > *:first-child { margin-top: 0; }
.cms h1, .cms h2, .cms h3, .cms h4, .cms .heading {
    font-family: var(--font-display); color: var(--fg); font-weight: 800; line-height: 1.12;
    margin: 2.2em 0 .6em; letter-spacing: -.02em;
}
.cms .heading, .cms h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); position: relative; padding-bottom: 14px; }
.cms .heading::after, .cms h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--lime); border-radius: 3px; }
.cms .heading span, .cms h2 span { color: var(--lime); }
.cms h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.cms p, .cms .content { margin: 0 0 1.1em; line-height: 1.75; }
.cms a:not(:has(img)) { color: var(--lime); font-weight: 600; border-bottom: 1px solid rgba(153, 209, 34, .35); transition: color .2s; }
.cms a:not(:has(img)):hover { color: var(--lime-bright); }
.cms strong, .cms b { color: var(--fg); font-weight: 700; }
.cms ul, .cms ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.cms li { margin-bottom: .5em; }
.cms ul.services { list-style: none; padding: 0; display: grid; gap: 10px; }
.cms ul.services li { background: var(--ink-600); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; position: relative; padding-left: 44px; transition: border-color .2s, transform .2s; }
.cms ul.services li::before { content: "›"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--lime); font-weight: 800; font-size: 1.2rem; }
.cms ul.services li:hover { border-color: var(--line-strong); transform: translateX(3px); }
.cms img { border-radius: var(--r); border: 1px solid var(--line); margin: 6px 0; }
.cms hr, .cms .separator { border: 0; border-bottom: 1px solid var(--line); margin: 1.4em 0; }

/* Legacy content tables → clean data tables */
.cms table { width: 100% !important; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cms table td, .cms table th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cms table tr:first-child td, .cms table th { background: var(--ink-600); color: var(--fg); font-weight: 700; font-family: var(--font-display); }
.cms table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.cms table td.separator { border-bottom: 1px solid var(--line); }
.cms .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }

/* Legacy gallery (anchored thumbnails inside CMS) */
.cms a:has(> img) { display: inline-block; margin: 0 10px 14px 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.cms a:has(> img):hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.cms a:has(> img) img { margin: 0; border: 0; }

/* Gallery lists  (<ul><li><a><img></a></li>…)  → uniform responsive grid */
.cms ul:has(a img) {
    list-style: none; padding: 0; margin: 1.4em 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px;
}
.cms ul:has(a img) > li { margin: 0; padding: 0; background: none; border: 0; }
.cms ul:has(a img) > li::before { content: none; }
.cms ul:has(a img) a:has(> img) { display: block; width: 100%; margin: 0; }
.cms ul:has(a img) a:has(> img) img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r); }
.cms .readMore { display: none; } /* legacy "read more" buttons are redundant in the new IA */

/* Generic content layout wrapper */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 940px) { .content-layout { grid-template-columns: 1fr; } }
.sidebar-card { background: var(--ink-600); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: sticky; top: 90px; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 16px; }

/* -------------------------------------------------- Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.label { font-weight: 600; font-size: .92rem; color: var(--fg); }
.label .req { color: var(--lime); }
.input, .textarea, .select {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--fg);
    background: var(--ink-700); border: 1px solid var(--line-strong); border-radius: var(--r);
    padding: 13px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-dim); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
    outline: 2px solid var(--lime-bright); outline-offset: 1px;
    border-color: var(--lime); box-shadow: 0 0 0 3px rgba(153, 209, 34, .22); background: var(--ink-600);
}
/* Mouse focus (no visible ring spam) still gets a clear border + glow. */
.input:focus, .textarea:focus, .select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(153, 209, 34, .22); background: var(--ink-600); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #ff7a7a; box-shadow: 0 0 0 3px rgba(255, 90, 90, .18); }
.textarea { resize: vertical; min-height: 130px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

.form-card { background: var(--ink-600); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 42px); }

.alert { border-radius: var(--r); padding: 14px 18px; font-size: .95rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: rgba(153, 209, 34, .1); border-color: rgba(153, 209, 34, .4); color: #cde9a0; }
.alert--error { background: rgba(255, 80, 80, .08); border-color: rgba(255, 90, 90, .4); color: #ffc2c2; }
.field-error { color: #ff9d9d; font-size: .85rem; }

/* Info list (contact details) */
.info-list { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(59, 155, 255, .12); color: var(--blue); border: 1px solid rgba(59, 155, 255, .25); }
.info-list .lbl { font-size: .8rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .1em; }
.info-list .val { color: var(--fg); font-weight: 500; }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--ink-900); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer__tag { color: var(--fg-muted); max-width: 42ch; margin-top: 18px; }
.site-footer__heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--fg-dim); margin-bottom: 16px; font-weight: 700; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer__col a { color: var(--fg-muted); transition: color .2s; }
.site-footer__col a:hover { color: var(--lime); }
.site-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-dim); }
.site-footer__bar p { margin: 0; }

/* -------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 13, .92); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow-2); border: 1px solid var(--line-strong); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong); color: #fff;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--lime); color: #07140a; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 3vw; }
.lightbox__nav--next { right: 3vw; }
@media (max-width: 600px) { .lightbox__nav { top: auto; bottom: 24px; } .lightbox__nav--prev { left: 26%; } .lightbox__nav--next { right: 26%; } }

/* -------------------------------------------------- Scroll reveal
   The hidden state is gated behind html.js so that, if JavaScript is
   disabled or fails, ALL content remains fully visible (no blank page). */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .card, .tile__media img, .btn,
    .drawer, .lightbox, .skip-link, .site-header { transition: none !important; }
    html { scroll-behavior: auto; }
}

/* -------------------------------------------------- Responsive nav switch */
@media (max-width: 1040px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* -------------------------------------------------- Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.lock-scroll { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
[inert] { pointer-events: none; }
