/* =========================================
   1) Design Tokens
   ========================================= */
:root {
    --bg: #0b0f16;
    --surface: #101826;
    --surface-2: #0f1420;
    --text: #e7ecf3;
    --muted: #9aa6b2;
    --accent: #3aa6ff;
    --accent-2: #6dd6ff;
    --border: #1f2a3a;
}

/* =========================================
   2) Base / Reset
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
}

/* =========================================
   3) Layout Utilities
   ========================================= */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section {
    padding: 72px 20px;
    text-align: center;
}

.page-section:nth-of-type(even) {
    background: var(--surface-2);
}

/* =========================================
   4) Reusable Utilities
   ========================================= */
.text-muted {
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* =========================================
   5) Header / Navigation
   ========================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 15, 22, 0.9);
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.logo img {
    height: 62px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--accent-2);
}

.footer-links .nav-link {
    color: var(--muted);
}

/* =========================================
   6) Hero
   ========================================= */
.hero {
    position: relative;
    padding: 120px 20px 110px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(11, 15, 22, 0.85), rgba(11, 15, 22, 0.95)),
    url("../images/hero-background.png") center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3.4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

/* =========================================
   7) Main Content
   ========================================= */
.section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.section > .container > p {
    max-width: 760px;
    margin: 0 auto;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 30px;
    align-items: center;
}

.section-text {
    text-align: left;
}

.section-text > p {
    margin: 0;
}

.section-figure,
.section-support-figure {
    margin: 0;
}

.section-figure img,
.section-support-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.section-support-figure {
    margin-top: 28px;
    margin-inline: auto;
    width: 100%;
}

.section-support-figure--services {
    max-width: 620px;
}

.section-support-figure--contact {
    max-width: 720px;
}

.section-inline-figure {
    margin: 22px 0 0;
}

.section-inline-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.section-visual-transition {
    padding: 0 20px;
}

.section-support-figure--transition {
    margin-top: 0;
    max-width: 100%;
}

.why-summary {
    max-width: none;
    white-space: nowrap;
}

.why-images-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.why-image {
    margin: 0;
    padding: 0;
}

.why-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.service-card {
    padding: 22px 20px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.service-card p {
    margin: 0;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(58, 166, 255, 0.6);
    box-shadow: 0 16px 30px rgba(3, 12, 24, 0.45);
}

/* =========================================
   8) Footer
   ========================================= */
.site-footer {
    padding: 50px 20px 20px;
    border-top: 1px solid var(--border);
    background: #0a0e15;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 14px;
}

.footer-brand p,
.footer-contact p,
.footer-bottom p {
    margin: 0;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
}

.footer-contact {
    font-style: normal;
}

/* =========================================
   9) Responsive
   ========================================= */
@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 10px 0 8px;
    }

    .site-nav.is-menu-open .nav-links {
        display: flex;
    }

    .site-nav.is-menu-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.is-menu-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-nav.is-menu-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 80px 20px;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-text {
        text-align: center;
    }

    .section-support-figure--services,
    .section-support-figure--contact,
    .section-support-figure--transition {
        max-width: 100%;
    }

    .why-summary {
        white-space: normal;
    }

    .why-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section {
        padding: 52px 15px;
    }

    .service-card {
        text-align: center;
    }
}