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

body {
    font-family: 'Georgia', serif;
    background-color: #F4EFE6;
    color: #2C2620;
    min-height: 100vh;
}

/* ── Header ─────────────────────────────── */
header {
    padding: 1.5rem 4rem;
    background-color: #F4EFE6;
    border-bottom: 1px solid #D8CFBF;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-top h1 {
    font-size: 2.6rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    color: #2C2620;
    flex-shrink: 0;
    line-height: 1;
}

.header-top h1 a {
    color: inherit;
    text-decoration: none;
    display: block;
}

header p.tagline {
    font-size: 0.95rem;
    color: #7A6E62;
    margin-top: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Navigation banner ───────────────────── */
nav {
    background-color: #3D342A;
    padding: 0 4rem;
    position: relative;
}

.nav-hamburger {
    display: none;
}

nav > ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav > ul > li {
    position: relative;
}

nav a {
    display: block;
    padding: 1rem 1.8rem;
    color: #E8DFD0;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

nav > ul > li > a:hover,
nav > ul > li > a.active,
nav > ul > li:hover > a {
    background-color: #5C4F42;
    color: #F4EFE6;
}

/* ── Dropdown menus ──────────────────────── */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #3D342A;
    min-width: 200px;
    z-index: 100;
    border-top: 2px solid #5C4F42;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: #5C4F42;
    color: #F4EFE6;
}

/* ── Main content ────────────────────────── */
main {
    max-width: 860px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.intro {
    text-align: center;
    padding: 2.5rem 3rem;
    background-color: #EDE6D8;
    border: 1px solid #D8CFBF;
    border-radius: 2px;
}

.intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3D342A;
}

/* ── Footer ──────────────────────────────── */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 6rem;
    border-top: 1px solid #D8CFBF;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    color: #9E9080;
}

/* ── Header simulation ───────────────────── */
.header-sim {
    flex: 1;
    overflow: hidden;
    height: 80px;
}

.header-sim canvas {
    display: block;
    width: 100%;
    height: 80px;
    touch-action: none;
}

/* ── Sim icon buttons ────────────────────── */
.sim-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.sim-buttons button {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 0.85rem;
    line-height: 26px;
    text-align: center;
    background-color: #3D342A;
    color: #E8DFD0;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.sim-buttons button:hover {
    background-color: #5C4F42;
}

.sim-buttons button:active {
    background-color: #7A6E62;
}

/* ── Page content ───────────────────────── */
.page-title {
    font-size: 2rem;
    font-weight: normal;
    color: #2C2620;
    margin-bottom: 0.4rem;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #7A6E62;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.page-section {
    margin-bottom: 2.5rem;
}

.page-section h2 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #3D342A;
    border-bottom: 1px solid #D8CFBF;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.page-section p {
    line-height: 1.85;
    color: #3D342A;
    margin-bottom: 0.8rem;
}

.page-section ul {
    list-style: none;
    padding: 0;
}

.page-section ul li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    line-height: 1.65;
    color: #3D342A;
}

.page-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #9E9080;
}

/* ── Client cards ────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.card {
    background-color: #EDE6D8;
    border: 1px solid #D8CFBF;
    border-radius: 2px;
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: normal;
    color: #2C2620;
    margin-bottom: 0.25rem;
}

.card-tag {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9E9080;
    margin-bottom: 0.7rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3D342A;
}

/* ── CTA box ─────────────────────────────── */
.cta-box {
    text-align: center;
    padding: 2rem;
    background-color: #EDE6D8;
    border: 1px solid #D8CFBF;
    border-radius: 2px;
    margin-top: 3rem;
}

.cta-box p {
    margin-bottom: 1rem;
    color: #3D342A;
    font-size: 1rem;
}

.cta-box a {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background-color: #3D342A;
    color: #E8DFD0;
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.cta-box a:hover {
    background-color: #5C4F42;
}

/* ── FAQ ─────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid #D8CFBF;
    padding: 1.2rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: normal;
    color: #2C2620;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #3D342A;
}

/* ── Tech tags ───────────────────────────── */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tech-tag {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #3D342A;
    color: #E8DFD0;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

/* ── Stub pages ──────────────────────────── */
.stub {
    text-align: center;
    padding: 4rem 2rem;
    color: #7A6E62;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.stub h2 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #3D342A;
}

/* ── Mobile responsive ──────────────────── */
@media (max-width: 600px) {
    header {
        padding: 1rem 1rem;
    }

    .header-top {
        flex-direction: column;
        gap: 0.8rem;
    }

    .header-top h1 img {
        height: 50px !important;
    }

    header p.tagline {
        font-size: 0.75rem;
        text-align: center;
    }

    .header-sim {
        height: 50px;
        width: 100%;
    }

    .header-sim canvas {
        height: 50px;
    }

    .sim-buttons {
        flex-direction: row;
    }

    /* Hamburger button */
    .nav-hamburger {
        display: block;
        background: none;
        border: none;
        color: #E8DFD0;
        font-size: 1.5rem;
        padding: 0.7rem 1rem;
        cursor: pointer;
        width: 100%;
        text-align: left;
    }

    .nav-hamburger.active {
        background-color: #5C4F42;
    }

    nav {
        padding: 0;
    }

    /* Hide menu by default on mobile */
    nav > ul {
        display: none;
        flex-direction: column;
    }

    nav > ul.nav-open {
        display: flex;
    }

    nav > ul > li {
        position: static;
    }

    nav a {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        border-bottom: 1px solid #5C4F42;
    }

    .dropdown-menu {
        position: static;
        border-top: none;
        min-width: 0;
        width: 100%;
        background-color: #332B23;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.7rem 2.5rem;
        font-size: 0.75rem;
    }

    main {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .intro {
        padding: 1.5rem 1rem;
    }

    .intro p {
        font-size: 1rem;
    }
}
