/* =============================================================================
   SAR Electric — Landing page styles
   Dark, premium, minimalist. Brand: electric blue + amber on deep navy.
   ============================================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Surfaces */
    --bg:            #070B15;
    --bg-alt:        #0A1120;
    --surface:       #0E1626;
    --surface-2:     #131E33;
    --border:        rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    /* Text */
    --text:   #EAF0FA;
    --text-2: #A9B6CC;
    --text-3: #6E7C95;

    /* Brand */
    --blue:        #2E9DFF;
    --blue-bright: #63C4FF;
    --blue-deep:   #1567E3;
    --cyan:        #67E8FF;
    --violet:      #8B7BFF;
    --amber:       #FDB022;
    --amber-deep:  #F79009;
    --danger:      #FF6B57;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--violet));
    --grad-amber: linear-gradient(120deg, #FFC64D, var(--amber-deep));
    --grad-line:  linear-gradient(90deg, transparent, var(--blue), transparent);

    /* Effects */
    --glow-blue: 0 0 0 1px rgba(46, 157, 255, .35), 0 12px 40px -12px rgba(46, 157, 255, .5);
    --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, .8);
    --radius:    18px;
    --radius-sm: 12px;
    --radius-lg: 26px;

    /* Rhythm */
    --container: 1200px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);

    /* Type */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

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

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }

::selection { background: rgba(46, 157, 255, .35); color: #fff; }

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

.skip-link {
    position: absolute; left: 12px; top: -60px;
    background: var(--blue); color: #fff; padding: 10px 18px;
    border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section__head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title { font-size: clamp(1.85rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.section__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-2); }

.kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); font-size: .8rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-bright);
    padding: .4rem .85rem; margin-bottom: 1.2rem;
    border: 1px solid rgba(46, 157, 255, .28);
    border-radius: 999px;
    background: rgba(46, 157, 255, .07);
}
.kicker .ic { width: 15px; height: 15px; }

.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-amber { background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Icons default sizing */
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    padding: .8rem 1.4rem; border-radius: 12px;
    border: 1px solid transparent; white-space: nowrap;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: .6rem 1rem; font-size: .875rem; border-radius: 10px; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--blue), var(--blue-deep));
    box-shadow: 0 10px 30px -10px rgba(46, 157, 255, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(46, 157, 255, .8); }

.btn--amber {
    color: #1a1206;
    background: var(--grad-amber);
    box-shadow: 0 10px 30px -10px rgba(247, 144, 9, .65);
}
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(247, 144, 9, .9); }

.btn--ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue); background: rgba(46, 157, 255, .1); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
    background: linear-gradient(90deg, #060a12, #0c1526);
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    position: relative; z-index: 60;
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; height: 42px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-2); }
.topbar__item .ic { width: 15px; height: 15px; color: var(--blue-bright); }
.topbar__item--accent { color: var(--text); }
.topbar__item--accent .ic { color: var(--amber); }
.topbar__sep { width: 1px; height: 16px; background: var(--border-strong); }
.topbar__phone { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--text); }
.topbar__phone .ic { width: 15px; height: 15px; color: var(--blue-bright); }
.topbar__phone:hover { color: var(--blue-bright); }
@media (max-width: 720px) { .topbar__item:not(.topbar__item--accent), .topbar__sep { display: none; } }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 11, 21, .72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 11, 21, .9); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand__logo { height: 40px; width: auto; object-fit: contain; }
.nav__links { display: flex; gap: .35rem; margin-left: auto; }
.nav__link {
    font-family: var(--font-display); font-weight: 500; font-size: .93rem;
    color: var(--text-2); padding: .55rem .85rem; border-radius: 9px;
    position: relative; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__actions { display: flex; align-items: center; gap: .7rem; }
.nav__call {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text);
}
.nav__call .ic { width: 17px; height: 17px; color: var(--blue-bright); }
.nav__call:hover { color: var(--blue-bright); }
.nav__toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .5rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text); }
.nav__toggle .ic { width: 24px; height: 24px; }

@media (max-width: 940px) {
    .nav__links, .nav__call { display: none; }
    .nav__toggle { display: inline-flex; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim {
    position: absolute; inset: 0; background: rgba(3, 6, 12, .6);
    backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; right: 0; height: 100%;
    width: min(360px, 88vw);
    background: var(--surface); border-left: 1px solid var(--border);
    padding: 1.4rem; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .8);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.drawer__logo { height: 36px; }
.drawer__close { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: .5rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text); }
.drawer__close .ic { width: 22px; height: 22px; }
.drawer__links { display: flex; flex-direction: column; gap: .25rem; }
.drawer__link {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--text);
    padding: .9rem .5rem; border-bottom: 1px solid var(--border);
}
.drawer__link .ic { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s, color .2s; }
.drawer__link:hover { color: var(--blue-bright); }
.drawer__link:hover .ic { transform: translateX(4px); color: var(--blue-bright); }
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: min(92vh, 820px);
    display: flex; align-items: center;
    padding-block: clamp(3rem, 10vw, 6rem);
    border-bottom: 1px solid var(--border);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 11, 21, .55) 0%, rgba(7, 11, 21, .78) 55%, var(--bg) 100%),
        linear-gradient(90deg, rgba(7, 11, 21, .92) 0%, rgba(7, 11, 21, .35) 60%, rgba(7, 11, 21, .1) 100%);
}
.hero__grid {
    position: absolute; inset: 0; z-index: 1; opacity: .35;
    background-image:
        linear-gradient(rgba(46, 157, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 157, 255, .08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
}
.hero__glow {
    position: absolute; z-index: 1; top: -10%; right: -5%;
    width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle, rgba(46, 157, 255, .25), transparent 62%);
    filter: blur(30px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-display); font-size: .82rem; font-weight: 500;
    letter-spacing: .04em; color: var(--text); margin-bottom: 1.5rem;
    padding: .5rem 1rem; border-radius: 999px;
    border: 1px solid var(--border-strong); background: rgba(10, 16, 30, .5);
    backdrop-filter: blur(8px);
}
.pulse-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
    box-shadow: 0 0 0 0 rgba(253, 176, 34, .7); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 176, 34, .6); }
    70% { box-shadow: 0 0 0 10px rgba(253, 176, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 176, 34, 0); }
}
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; color: #fff; margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: var(--text-2); max-width: 600px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__note {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: 1.6rem; font-size: .9rem; color: var(--text);
    padding: .55rem .95rem; border-radius: 10px;
    background: rgba(46, 157, 255, .09); border: 1px solid rgba(46, 157, 255, .24);
}
.hero__note .ic { width: 17px; height: 17px; color: var(--blue-bright); flex: none; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--text-2); }
.hero__chips .ic { width: 18px; height: 18px; color: var(--blue-bright); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border);
    border-inline: 1px solid var(--border);
    margin-block: 0;
}
.stat { background: var(--bg-alt); padding: clamp(1.8rem, 4vw, 2.8rem) 1.2rem; text-align: center; }
.stat__value {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem); line-height: 1;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: .5rem;
}
.stat__label { font-size: .9rem; color: var(--text-2); }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services accordion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.accordion { display: flex; flex-direction: column; gap: .85rem; max-width: 940px; margin-inline: auto; }

.acc {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.acc:hover { border-color: var(--border-strong); }
.acc[open] { border-color: rgba(46, 157, 255, .35); box-shadow: 0 18px 46px -26px rgba(46, 157, 255, .5); }
.acc--accent { border-color: rgba(253, 176, 34, .28); }
.acc--accent[open] { border-color: rgba(253, 176, 34, .5); box-shadow: 0 18px 46px -26px rgba(253, 176, 34, .4); }

.acc__head {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
    -webkit-user-select: none; user-select: none;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: -2px; border-radius: var(--radius); }

.acc__ic {
    flex: none; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 13px;
    background: rgba(46, 157, 255, .1); border: 1px solid rgba(46, 157, 255, .22); color: var(--blue-bright);
}
.acc__ic .ic { width: 24px; height: 24px; }
.acc--accent .acc__ic { background: rgba(253, 176, 34, .1); border-color: rgba(253, 176, 34, .3); color: var(--amber); }

.acc__titles { display: flex; flex-direction: column; gap: .1rem; margin-right: auto; min-width: 0; }
.acc__title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.14rem; }
.acc__blurb { font-size: .9rem; color: var(--text-2); }

.acc__count {
    flex: none; font-family: var(--font-display); font-size: .78rem; color: var(--text-2);
    padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03); white-space: nowrap;
}
.acc__chev { flex: none; color: var(--text-3); transition: transform .3s ease, color .3s ease; }
.acc__chev .ic { width: 22px; height: 22px; }
.acc[open] .acc__chev { transform: rotate(180deg); color: var(--blue-bright); }
.acc--accent[open] .acc__chev { color: var(--amber); }

.acc__body { padding: .2rem 1.3rem 1.5rem; }
.acc[open] .acc__body { animation: fadeUp .35s ease; }
.acc__list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem 1.5rem;
    padding: 1.1rem 0 1.4rem; margin-bottom: 1.3rem;
    border-top: 1px solid var(--border);
}
.acc__list li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--text-2); }
.acc__list .ic { width: 16px; height: 16px; flex: none; color: var(--blue-bright); }
.acc--accent .acc__list .ic { color: var(--amber); }

@media (max-width: 760px) { .acc__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .acc__head { padding: 1rem 1.05rem; gap: .8rem; }
    .acc__blurb { font-size: .84rem; }
    .acc__count { display: none; }
    .acc__body { padding-inline: 1.05rem; }
    .acc__list { grid-template-columns: 1fr; gap: .35rem; padding: .9rem 0 1.1rem; }
    .acc__list li { padding: .15rem 0; }
    .acc__body .btn { width: 100%; }
}

/* ---------- Why us / features ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__media { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.why__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.why__list { display: flex; flex-direction: column; gap: 1rem; }
.feature {
    display: flex; gap: 1.1rem; padding: 1.4rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .2s, border-color .2s, background .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(46, 157, 255, .35); background: var(--surface-2); }
.feature__ic {
    flex: none; display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 13px;
    background: rgba(46, 157, 255, .1); border: 1px solid rgba(46, 157, 255, .22); color: var(--blue-bright);
}
.feature__ic .ic { width: 24px; height: 24px; }
.feature__title { font-size: 1.12rem; margin-bottom: .3rem; }
.feature__text { font-size: .93rem; color: var(--text-2); }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.industry {
    display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center;
    padding: 1.7rem 1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .2s, border-color .2s, background .2s;
}
.industry:hover { transform: translateY(-4px); border-color: rgba(46, 157, 255, .4); background: var(--surface-2); }
.industry__ic {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(46, 157, 255, .16), rgba(139, 123, 255, .1));
    border: 1px solid var(--border); color: var(--blue-bright);
}
.industry__ic .ic { width: 26px; height: 26px; }
.industry:hover .industry__ic { color: var(--cyan); }
.industry__name { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--text); }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process ---------- */
.process {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
    counter-reset: step; position: relative;
}
.process::before {
    content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
    background: var(--grad-line); opacity: .5; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: .5rem; }
.step__num {
    font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em;
    color: var(--bg); background: var(--grad-amber);
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto .5rem;
    position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
}
.step__ic {
    display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 1.1rem;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--blue-bright);
    box-shadow: 0 12px 30px -14px rgba(46, 157, 255, .5);
}
.step__ic .ic { width: 28px; height: 28px; }
.step__title { font-size: 1.05rem; margin-bottom: .4rem; }
.step__text { font-size: .88rem; color: var(--text-2); }
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
    .process::before { display: none; }
    .step__num { position: static; transform: none; margin-bottom: .8rem; }
}
@media (max-width: 460px) { .process { grid-template-columns: 1fr; } }

/* ---------- Gallery (bento) ---------- */
.gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem;
}
.gcard {
    position: relative; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
}
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 8, 16, .85)); }
.gcard--wide { grid-column: span 2; }
.gcard--tall { grid-row: span 2; }
.gcard__cap { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2; display: flex; flex-direction: column; gap: .3rem; transform: translateY(4px); transition: transform .3s; }
.gcard__tag {
    align-self: flex-start; font-family: var(--font-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--bg);
    background: var(--amber); padding: .2rem .55rem; border-radius: 6px;
}
.gcard__title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.02rem; }
.gcard:hover img { transform: scale(1.07); }
.gcard:hover .gcard__cap { transform: translateY(0); }
.gcard:hover { border-color: rgba(46, 157, 255, .5); }

/* Click-to-open button covering each card */
.gcard__open {
    position: absolute; inset: 0; z-index: 3;
    cursor: zoom-in; background: transparent; border: 0;
    display: flex; align-items: flex-start; justify-content: flex-end; padding: .8rem;
}
.gcard__open:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: -4px; border-radius: var(--radius); }
.gcard__zoom {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: rgba(10, 16, 30, .65); border: 1px solid var(--border-strong); color: #fff;
    backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(-4px) scale(.9); transition: opacity .25s ease, transform .25s ease;
}
.gcard__zoom .ic { width: 19px; height: 19px; }
.gcard:hover .gcard__zoom, .gcard__open:focus-visible .gcard__zoom { opacity: 1; transform: none; }
@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .gcard--wide { grid-column: span 2; }
    .gcard--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .gcard--wide, .gcard--tall { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Emergency band ---------- */
.emergency { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--bg-alt); border-block: 1px solid var(--border); }
.emergency__inner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.8rem;
    padding: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(120deg, #10192c, #0a1120);
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
}
.emergency__glow { position: absolute; top: -60%; left: 20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(253, 176, 34, .18), transparent 60%); pointer-events: none; }
.emergency__text { position: relative; z-index: 1; max-width: 620px; }
.emergency__badge {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
    font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--amber); padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(253, 176, 34, .35); background: rgba(253, 176, 34, .08);
}
.emergency__badge .ic { width: 15px; height: 15px; }
.emergency__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; margin-bottom: .5rem; }
.emergency__text p { color: var(--text-2); }
.emergency .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
    flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(46, 157, 255, .1); border: 1px solid rgba(46, 157, 255, .22); color: var(--blue-bright);
}
.contact__ic .ic { width: 22px; height: 22px; }
.contact__k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .15rem; }
.contact__v { font-family: var(--font-display); font-weight: 500; color: var(--text); font-size: 1.05rem; }
a.contact__v:hover { color: var(--blue-bright); }
.contact__note { display: block; font-size: .82rem; color: var(--amber); margin-top: .1rem; }

.contact__form-wrap {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: .45rem; font-family: var(--font-display); }
.req { color: var(--amber); }
.field input, .field select, .field textarea {
    font: inherit; font-size: .95rem; color: var(--text);
    background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: 11px;
    padding: .8rem .95rem; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46, 157, 255, .18); background: #0c1424;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236E7C95' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form__fine { font-size: .78rem; color: var(--text-3); margin-top: .9rem; text-align: center; }
.form__note {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: 1.4rem; padding: .85rem 1rem; border-radius: 12px;
    font-size: .88rem; line-height: 1.5; color: var(--text);
    background: rgba(253, 176, 34, .09); border: 1px solid rgba(253, 176, 34, .3);
}
.form__note .ic { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
    padding: .9rem 1.1rem; border-radius: 12px; font-size: .92rem;
}
.alert .ic { width: 20px; height: 20px; flex: none; }
.alert--success { background: rgba(46, 200, 120, .1); border: 1px solid rgba(46, 200, 120, .35); color: #9ff0c2; }
.alert--error { background: rgba(255, 107, 87, .1); border: 1px solid rgba(255, 107, 87, .35); color: #ffb3a8; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #05080f; border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { height: 42px; margin-bottom: 1.1rem; }
.footer__tag { font-size: .92rem; color: var(--text-2); margin-bottom: 1.2rem; max-width: 320px; }
.footer__phone, .footer__mail { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.footer__phone .ic, .footer__mail .ic { width: 17px; height: 17px; color: var(--blue-bright); }
.footer__phone:hover, .footer__mail:hover { color: var(--blue-bright); }
.footer__col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { font-size: .92rem; color: var(--text-2); transition: color .2s; }
.footer__col a:hover { color: var(--blue-bright); }
.footer__areas li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--text-2); }
.footer__areas .ic { width: 14px; height: 14px; color: var(--text-3); }
.footer__bar { border-top: 1px solid var(--border); padding-block: 1.4rem; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: var(--text-3); }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } .footer__bar-inner { flex-direction: column; } }

/* ---------- Lightbox gallery ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(4, 7, 13, .94); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
    position: relative; margin: 0;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    max-width: 100%; max-height: 100%;
}
.lightbox__img {
    max-width: min(1100px, 92vw); max-height: 80vh;
    width: auto; height: auto; object-fit: contain;
    border-radius: 14px; border: 1px solid var(--border-strong);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
    background: var(--surface);
    opacity: 0; transition: opacity .3s ease; user-select: none;
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__stage { transform: scale(.97); transition: transform .3s ease; }
.lightbox.is-open .lightbox__stage { transform: scale(1); }

.lightbox__cap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.lightbox__tag {
    font-family: var(--font-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--bg);
    background: var(--amber); padding: .22rem .6rem; border-radius: 6px;
}
.lightbox__title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.lightbox__count { font-size: .85rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.lightbox__close {
    position: absolute; top: clamp(.8rem, 2vw, 1.5rem); right: clamp(.8rem, 2vw, 1.5rem); z-index: 2;
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.lightbox__close .ic { width: 24px; height: 24px; }

.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.lightbox__nav:hover { background: rgba(46, 157, 255, .25); }
.lightbox__nav--prev { left: clamp(.6rem, 2.5vw, 2rem); }
.lightbox__nav--next { right: clamp(.6rem, 2.5vw, 2rem); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox__nav .ic { width: 26px; height: 26px; }

@media (max-width: 640px) {
    .lightbox__img { max-height: 66vh; max-width: 94vw; }
    .lightbox__nav { width: 44px; height: 44px; bottom: clamp(1rem, 5vw, 2rem); top: auto; transform: none; }
    .lightbox__nav--prev { left: 20%; }
    .lightbox__nav--next { right: 20%; }
    .lightbox__nav--prev:hover, .lightbox__nav--next:hover { transform: none; }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 40;
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(120deg, var(--blue), var(--blue-deep));
    box-shadow: 0 12px 30px -10px rgba(46, 157, 255, .7);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .ic { width: 22px; height: 22px; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal on scroll (fail open: only hides when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .pulse-dot { animation: none; }
    .tabpanel { animation: none; }
    .btn:hover, .feature:hover, .industry:hover, .gcard:hover img, .to-top:hover { transform: none; }
    .mobile-cta { transition: none; }
}

/* =============================================================================
   MOBILE REFINEMENTS (≤640px) — polished, touch-first small-screen layout
   ============================================================================= */
@media (max-width: 640px) {

    /* Vertical rhythm: compact but breathable */
    .section { padding-block: 3.25rem; }
    .section__head { margin-bottom: 2rem; }
    .section__title { font-size: clamp(1.6rem, 7.5vw, 2.05rem); }
    .section__sub { font-size: 1rem; }

    /* Hero: fills the screen, full-width stacked CTAs */
    .hero { min-height: auto; padding-block: 2.75rem 3.25rem; }
    .hero__eyebrow { font-size: .74rem; padding: .45rem .8rem; margin-bottom: 1.2rem; }
    .hero__title { font-size: clamp(2.1rem, 9.2vw, 2.85rem); margin-bottom: 1.1rem; }
    .hero__lead { font-size: 1.02rem; margin-bottom: 1.7rem; }
    .hero__actions { flex-direction: column; align-items: stretch; gap: .7rem; width: 100%; margin-bottom: 1.9rem; }
    .hero__actions .btn { width: 100%; }
    .hero__chips { gap: .5rem .9rem; }
    .hero__chips li { font-size: .84rem; }

    /* Nav: declutter — CTAs live in the drawer + sticky bar */
    .nav__inner { height: 60px; gap: .75rem; }
    .brand__logo { height: 33px; }
    .nav__actions .btn--primary { display: none; }
    .nav__toggle { margin-left: auto; }

    /* Stats: tighter cells */
    .stat { padding: 1.5rem .75rem; }
    .stat__value { font-size: 2rem; }
    .stat__label { font-size: .8rem; }

    /* Why us: tighter feature cards */
    .why__media { margin-top: 1.5rem; }
    .feature { padding: 1.1rem; gap: .9rem; }
    .feature__ic { width: 44px; height: 44px; }
    .feature__ic .ic { width: 22px; height: 22px; }
    .feature__title { font-size: 1.05rem; }

    /* Industries: compact 2-up */
    .industries { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .industry { padding: 1.3rem .75rem; gap: .7rem; }
    .industry__ic { width: 46px; height: 46px; }
    .industry__ic .ic { width: 24px; height: 24px; }

    /* Process: horizontal cards with number badge */
    .process { grid-template-columns: 1fr; gap: .8rem; }
    .process::before { display: none; }
    .step {
        position: relative; display: grid;
        grid-template-columns: auto 1fr; gap: .15rem 1rem;
        align-items: center; text-align: left;
        padding: 1.1rem 1.2rem;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .step__ic { grid-column: 1; grid-row: 1 / span 2; margin: 0; width: 52px; height: 52px; box-shadow: none; }
    .step__title { grid-column: 2; grid-row: 1; align-self: end; }
    .step__text { grid-column: 2; grid-row: 2; align-self: start; }
    .step__num {
        position: absolute; top: .8rem; right: .85rem; left: auto;
        transform: none; margin: 0; width: 26px; height: 26px; font-size: .68rem;
    }

    /* Gallery: clean, uniform 2-col grid (no bento spans on phones) */
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: .6rem; }
    .gcard--wide, .gcard--tall { grid-column: auto; grid-row: auto; }
    .gcard__cap { left: .8rem; bottom: .7rem; transform: none; }
    .gcard__title { font-size: .9rem; }
    .gcard__tag { font-size: .66rem; }

    /* Emergency: full-width CTA */
    .emergency__inner { padding: 1.6rem 1.3rem; gap: 1.2rem; }
    .emergency__title { font-size: 1.55rem; }
    .emergency .btn { width: 100%; }

    /* Contact */
    .contact__list { margin-top: 1.5rem; }
    .contact__form-wrap { padding: 1.25rem; }

    /* Footer: compact, 2-col service areas */
    .footer__inner { gap: 1.75rem; }
    .footer__areas { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }

    /* Back-to-top hidden; sticky action bar owns the bottom edge */
    .to-top { display: none; }

    /* Reserve space so content clears the sticky action bar */
    body { padding-bottom: 4.85rem; }
}

@media (max-width: 380px) {
    :root { --pad: 1.1rem; }
    .hero__title { font-size: 1.95rem; }
    .gallery { grid-auto-rows: 44vw; }
    .nav__call { display: none; }
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
    .mobile-cta {
        display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: .6rem var(--pad);
        padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
        background: rgba(7, 11, 21, .92);
        backdrop-filter: blur(14px) saturate(140%);
        border-top: 1px solid var(--border-strong);
    }
    .mobile-cta .btn { width: 100%; padding: .85rem 1rem; font-size: .95rem; }
}
