/* ========== LAYOUT ========== */
/* The former sidebar layout collapsed to a plain block once the top header
   replaced it. The .app-container wrapper is retained in markup but no longer
   creates a flex row. */
.app-container {
    display: block;
    min-height: 100vh;
}

/* ========== TOP HEADER (replaces sidebar + mobile-header) ========== */
.site-header {
    background: transparent;
}

.header-inner {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 0 clamp(24px, 5vw, 72px);
    height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

/* Horizontal lockup (tools/logo/build_logo.py): icon + "FT-Services", 5.83:1. */
.brand-logo {
    width: auto;
    height: 42px;
    display: block;
}

.brand-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-top: 4px;
    /* starts under the wordmark, not the icon: 633.9 / 498.3 of the logo height */
    margin-left: calc(42px * 1.272);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.site-nav a {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--dusty-rose-action);
}

.site-nav a.active {
    color: var(--dusty-rose-action);
    font-weight: 600;
}

.nav-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-tools svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.nav-cta {
    color: var(--dusty-rose-action) !important;
    font-weight: 700;
}

.nav-cta:hover {
    color: var(--rose-strong) !important;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 26px;
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.burger span {
    height: 2px;
    width: 100%;
    background: var(--blue-authority);
    border-radius: 2px;
}

/* ========== MAIN CONTENT (full width, side gutters) ========== */
.main-content {
    padding: 48px clamp(24px, 5vw, 72px);
}

.inner {
    max-width: none;
    margin: 0;
}

/* Header mobile menu (burger toggles .site-nav.open via NavController) */
@media (max-width: 860px) {
    .burger {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--hairline);
        padding: 6px 0;
        display: none;
        z-index: 1000;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 32px;
    }

    .nav-cta {
        margin: 8px 32px;
        text-align: center;
    }
}

/* ========== TAB SYSTEM ========== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: var(--blue-authority);
}

.tab-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* ========== GRIDS ========== */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}
