/* =====================================================================
   Surma Control — modern stylesheet
   Self-contained, dependency-free. Industrial / engineering aesthetic.
   ===================================================================== */

:root {
    --navy-900: #0a1622;
    --navy-800: #0f2438;
    --navy-700: #14314c;
    --slate-600: #34506b;
    --slate-400: #6b8299;
    --slate-200: #c7d4e0;
    --paper: #f4f7fa;
    --white: #ffffff;
    --ink: #16222e;
    --muted: #5b6b7a;
    --accent: #0a84ff;
    --accent-dark: #0066d6;
    --accent-soft: rgba(10, 132, 255, 0.10);
    --cyan: #1ec8c8;
    --border: #e2e9f0;
    --shadow-sm: 0 1px 3px rgba(16, 36, 56, 0.08);
    --shadow-md: 0 8px 24px rgba(16, 36, 56, 0.10);
    --shadow-lg: 0 20px 48px rgba(16, 36, 56, 0.16);
    --radius: 14px;
    --radius-sm: 10px;
    --maxw: 1140px;
    --header-h: 72px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
    color: var(--navy-800);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
}

.section--tight {
    padding: 48px 0;
}

.section--alt {
    background: var(--paper);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(10, 132, 255, 0.30);
}

.btn--primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.38);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

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

.btn--outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--navy-800);
    font-size: 1.15rem;
}

.brand:hover {
    color: var(--navy-800);
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
}

.brand__mark svg {
    width: 20px;
    height: 20px;
}

.brand small {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--slate-400);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: var(--navy-700);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
}

.main-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.main-nav a.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    font-weight: 600;
    color: var(--navy-800);
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--navy-800);
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(30, 200, 200, 0.18), transparent 60%),
        radial-gradient(700px 500px at 5% 110%, rgba(10, 132, 255, 0.20), transparent 55%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 90px 0 96px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    background: linear-gradient(90deg, #5ab9ff, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__lead {
    font-size: 1.15rem;
    color: var(--slate-200);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.hero__stats .stat strong {
    display: block;
    font-size: 1.7rem;
    color: #fff;
    line-height: 1.1;
}

.hero__stats .stat span {
    font-size: 0.85rem;
    color: var(--slate-400);
}

.hero__panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}

.hero__panel h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.hero__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero__panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-200);
    font-size: 0.95rem;
}

.hero__panel li svg {
    width: 18px;
    height: 18px;
    color: var(--cyan);
    flex: 0 0 auto;
}

/* ---------------------------------------------------------------- Page hero (sub pages) */
.page-hero {
    background:
        radial-gradient(700px 400px at 90% -20%, rgba(30, 200, 200, 0.16), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: 64px 0 56px;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--slate-200);
    max-width: 640px;
    margin: 0;
    font-size: 1.08rem;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--slate-400);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--slate-200);
}

/* ---------------------------------------------------------------- Cards / grids */
.grid {
    display: grid;
    gap: 24px;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cfe0f3;
}

.card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card h3 {
    margin-bottom: 12px;
}

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.card ul li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

.card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--cyan);
}

.card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

/* link card variant */
.card--link h3 a {
    color: var(--navy-800);
}

.card--link:hover h3 a {
    color: var(--accent-dark);
}

/* ---------------------------------------------------------------- Prose / content */
.prose {
    max-width: 820px;
    margin: 0 auto;
    color: var(--ink);
}

.prose p {
    color: #364553;
    font-size: 1.05rem;
}

.prose h2 {
    margin-top: 1.6em;
}

.prose .figure {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 28px 0;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.prose .figure img {
    width: 96px;
    flex: 0 0 auto;
    border-radius: 10px;
}

.prose .figure h3 {
    margin-top: 0;
}

.prose .figure p {
    margin: 0;
    font-size: 1rem;
}

/* ---------------------------------------------------------------- Partner cards */
.partner-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card .logo-wrap {
    height: 110px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.partner-card .logo-wrap img {
    max-height: 90px;
    width: auto;
}

.partner-card p {
    flex: 1;
}

/* ---------------------------------------------------------------- Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-item .card__icon {
    margin-bottom: 16px;
}

.contact-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.contact-item address,
.contact-item p {
    font-style: normal;
    color: var(--muted);
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
}

.contact-item a {
    font-weight: 500;
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 12px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 28px;
}

.cta-band .btn--primary {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cta-band .btn--primary:hover {
    background: #f0f6ff;
    color: var(--accent-dark);
}

/* ---------------------------------------------------------------- Image strip */
.image-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.image-strip figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-strip img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-strip figure:hover img {
    transform: scale(1.05);
}

.image-strip figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 18px 14px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(to top, rgba(10, 22, 34, 0.85), transparent);
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
    background: var(--navy-900);
    color: var(--slate-200);
    padding: 56px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.site-footer p,
.site-footer address {
    color: var(--slate-400);
    font-style: normal;
    font-size: 0.94rem;
    margin: 0 0 10px;
}

.site-footer a {
    color: var(--slate-200);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--slate-400);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 920px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 64px 0 72px;
    }

    .grid--3,
    .grid--4,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 8px;
        transform: translateY(-130%);
        transition: transform 0.25s ease;
        z-index: 90;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 12px;
        border-radius: 8px;
    }

    .header-phone {
        display: none;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 52px 0;
    }

    .grid--3,
    .grid--4,
    .grid--2,
    .contact-grid,
    .image-strip {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 32px 22px;
    }

    .prose .figure {
        flex-direction: column;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .image-strip img {
        height: 200px;
    }
}
