/* ============================================================
   Office Business Limited — herdr-inspired theme system
   Ink (dark) / Paper (light) — toggled via html[data-mode]
   Palette taken from herdr.dev (Apache 2.0)
   ============================================================ */

html[data-mode="ink"] {
    --bg: #17171a;
    --panel: #1e1e22;
    --mass: #26262b;
    --ink: #eae8ee;
    --dim: #bdb9c9;
    --faint: #8e8a98;
    --spot: #cba6f7;
    --spot-ink: #17171a;
    --line: #2a2a30;
}

html[data-mode="paper"] {
    --bg: #efece5;
    --panel: #e7e3da;
    --mass: #ddd8cc;
    --ink: #15140f;
    --dim: #55534a;
    --faint: #86826f;
    --spot: #8839ef;
    --spot-ink: #fff;
    --line: #d8d3c6;
}

:root {
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background .2s ease, color .2s ease;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--dim);
}

::selection {
    background: var(--spot);
    color: var(--spot-ink);
}

/* ---------------- HEADER ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(23, 23, 26, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

html[data-mode="paper"] .site-header {
    background: rgba(239, 236, 229, .88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .01em;
}

.logo span {
    color: var(--dim);
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 500;
}

.site-nav a {
    color: var(--dim);
}

.site-nav a:hover {
    color: var(--ink);
}

/* ---------------- MODE TOGGLE ---------------- */

.mode-btn {
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1;
    color: var(--ink);
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, color .15s ease;
}

.mode-btn:hover {
    border-color: var(--dim);
}

/* ---------------- HERO ---------------- */

.hero {
    padding: 120px 0 90px;
    border-bottom: 1px solid var(--line);
}

.kicker {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--dim);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(56px, 9vw, 104px);
    line-height: .98;
    letter-spacing: -.03em;
    margin-bottom: 32px;
}

.hero-title em {
    font-style: normal;
    color: var(--dim);
}

.hero-sub {
    max-width: 640px;
    font-size: 16.5px;
    color: var(--dim);
    margin-bottom: 64px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 36px;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---------------- SECTIONS ---------------- */

.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.section-index {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .18em;
    color: var(--faint);
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 28px;
}

.section-lead {
    max-width: 640px;
    font-size: 16.5px;
    color: var(--dim);
    margin-bottom: 56px;
}

/* ---------------- SERVICES ---------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

.service {
    padding: 36px 36px 40px 0;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.service:nth-child(2n) {
    padding-left: 36px;
    padding-right: 0;
}

.service:nth-child(n+5) {
    border-bottom: none;
}

.service-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--faint);
    margin-bottom: 16px;
}

.service h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    margin-bottom: 12px;
}

.service p {
    color: var(--dim);
    font-size: 14px;
}

/* ---------------- CAPABILITIES ---------------- */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.cap {
    padding: 36px 32px 40px 0;
    border-right: 1px solid var(--line);
}

.cap:last-child {
    border-right: none;
}

.cap h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
}

.cap p {
    color: var(--dim);
    font-size: 13.5px;
}

/* ---------------- CONTACT ---------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.contact-item {
    padding: 36px 32px 40px 0;
    border-right: 1px solid var(--line);
}

.contact-item:last-child {
    border-right: none;
}

.contact-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 16px;
}

.contact-item p {
    font-size: 15px;
    color: var(--dim);
}

.contact-item a {
    color: var(--ink);
}

.contact-item a:hover {
    color: var(--dim);
}

/* ---------------- FOOTER ---------------- */

.site-footer {
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--faint);
}

.footer-inner a {
    color: var(--dim);
}

.footer-inner a:hover {
    color: var(--ink);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 860px) {
    .hero {
        padding: 80px 0 60px;
    }

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

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service,
    .service:nth-child(2n) {
        padding: 28px 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .service:nth-child(n+5) {
        border-bottom: 1px solid var(--line);
    }

    .service:last-child {
        border-bottom: none;
    }

    .cap-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cap,
    .contact-item {
        padding: 28px 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .cap:last-child,
    .contact-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .site-nav {
        gap: 14px;
    }

    .site-nav a {
        font-size: 12px;
    }

    .header-inner {
        height: 56px;
    }
}
