/* ==========================================================================
   Code & Compass — Digital Solutions
   ========================================================================== */

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

:root {
    --brand: #0056b3;
    --brand-bright: #007bff;
    --brand-pale: #e7f1ff;
    --ink: #333;
    --ink-soft: #5a6672;
    --line: #e2e6ea;
    --surface: #f4f4f4;
    --surface-alt: #e9ecef;
    --white: #fff;
    --radius: 8px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    --container: 960px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    background: var(--white);
    padding: 8px 14px;
    z-index: 2000;
    border-radius: 4px;
}

/* --------------------------------------------------------------- Header */

header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--brand);
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    flex: none;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
    color: var(--brand);
    border-bottom-color: var(--brand-bright);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
}

/* ----------------------------------------------------------------- Hero */

.hero {
    background: linear-gradient(to right, #0056b3, #007bff);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto 2rem auto;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--brand);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.ghost {
    background: transparent;
    color: var(--white);
}

.cta-button.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------------------------- Page header */

.page-hero {
    background: linear-gradient(to right, #0056b3, #007bff);
    color: var(--white);
    padding: 60px 20px 54px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.94;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------- Sections */

.section-light {
    background: var(--white);
    padding: 60px 20px;
}

.section-dark {
    background: var(--surface-alt);
    padding: 60px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 2.1rem;
    color: #1f2a36;
    letter-spacing: -0.01em;
}

.section-intro {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
    color: var(--ink-soft);
}

.section-light h2 + .services-grid,
.section-dark h2 + .services-grid {
    margin-top: 30px;
}

/* --------------------------------------------------------------- Cards */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--radius);
    text-align: left;
    border-left: 5px solid var(--brand-bright);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 1.2rem;
}

.service-card p {
    color: var(--ink-soft);
}

.service-card .card-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand-bright);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.service-card .card-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------ Process */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.process-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-pale);
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 14px;
}

.process-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #1f2a36;
}

.process-step p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------- Feature list */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

.split h2 {
    text-align: left;
    margin-bottom: 16px;
}

.split p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-bright);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.stat {
    text-align: center;
    padding: 22px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat strong {
    display: block;
    font-size: 1.9rem;
    color: var(--brand);
    line-height: 1.2;
}

.stat span {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* -------------------------------------------------------------- Quote */

.quote {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    font-style: italic;
    color: #2b3742;
}

.quote footer {
    background: none;
    color: var(--ink-soft);
    font-style: normal;
    font-size: 0.92rem;
    padding: 14px 0 0;
}

/* --------------------------------------------------------------- FAQ */

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1f2a36;
}

.faq details[open] summary {
    margin-bottom: 10px;
}

.faq p {
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- Contact form */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1f2a36;
    margin-bottom: -6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--brand-bright);
    outline-offset: 1px;
    border-color: var(--brand-bright);
}

.contact-form button {
    padding: 15px;
    background: var(--brand-bright);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background: var(--brand);
}

.form-status {
    max-width: 600px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 5px;
    display: none;
    font-size: 0.97rem;
}

.form-status.visible {
    display: block;
}

.form-status.success {
    background: #e6f4ea;
    border: 1px solid #b7dfc4;
    color: #1e5b33;
}

.form-status.error {
    background: #fdecea;
    border: 1px solid #f5c2bd;
    color: #8a2b22;
}

.form-note {
    max-width: 600px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------ CTA band */

.cta-band {
    background: #22303d;
    color: var(--white);
    padding: 54px 20px;
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-band p {
    max-width: 620px;
    margin: 0 auto 26px;
    opacity: 0.88;
}

/* -------------------------------------------------------------- Footer */

footer {
    background: #333;
    color: #cfd6dc;
    padding: 40px 20px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    max-width: var(--container);
    margin: 0 auto 26px;
}

footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

footer p {
    font-size: 0.92rem;
    max-width: 320px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #cfd6dc;
    text-decoration: none;
    font-size: 0.92rem;
}

footer ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    border-top: 1px solid #4a545c;
    padding-top: 18px;
    text-align: center;
    font-size: 0.86rem;
    color: #9aa4ad;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        flex-basis: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    nav ul.open {
        max-height: 260px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero {
        padding: 56px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }
}
