/* ===== COLORS ===== */
:root {
    --blue: #1F5FA8;
    --blue-light: #6FA7D9;
    --dark: #1A1A1A;
    --gray-light: #F5F5F5;
    --white: #FFFFFF;
    --radius: 8px;
    --transition: 0.3s ease;
    --max-width: 1100px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* ===== RESET & GLOBAL ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -44px;
    background: var(--dark);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 12px;
}

a {
    text-decoration: none;
    color: var(--blue);
}

a:hover {
    color: var(--blue-light);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== UTILITY ===== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin-inline: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: #174d8a;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--blue-light);
    color: var(--blue);
    padding: 10px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    background: var(--blue-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

.nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-height: 84px;
    overflow: visible;
    flex-shrink: 0;
}

.nav .logo img {
    display: block;
    height: 84px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav nav a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    transition: color var(--transition);
}

.nav nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition);
}

.nav nav a:hover,
.nav nav a.active {
    color: var(--blue);
}

.nav nav a:hover::after,
.nav nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark);
    cursor: pointer;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 56px 40px 36px;
}

.page-header-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    column-gap: 32px;
}

.page-header-copy {
    min-width: 0;
    max-width: 700px;
    text-align: left;
}

.page-header h1 {
    font-size: 2.4rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-header p {
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
}

.page-header-graphic {
    width: 220px;
    height: 220px;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
}

.page-header-graphic svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 40px;
    max-width: var(--max-width);
    margin-inline: auto;
    gap: 40px;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-note {
    color: #4b4b4b;
    font-size: 0.95rem;
}

/* Hero Graphic — abstract nodes */
.hero-graphic {
    width: 300px;
    height: 300px;
    position: relative;
    flex-shrink: 0;
}

.hero-graphic svg {
    width: 100%;
    height: 100%;
}

/* ===== SERVICES / CARDS ===== */
.services {
    padding: 60px 40px;
    background: var(--gray-light);
}

.services h2,
.cases h2,
.blog-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--blue);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.15rem;
    color: var(--blue);
    margin-bottom: 8px;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

/* ===== CASES ===== */
.cases {
    padding: 60px 40px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-card {
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--white);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.case-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.case-card p {
    color: #555;
    font-size: 0.95rem;
}

.case-sheet-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #eef4fb;
    border: 1px solid #cfe0f2;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.case-sheet-link:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    color: var(--white);
}

.case-card .result {
    margin-top: 10px;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.92rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.kpi {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.kpi strong {
    display: block;
    color: var(--blue);
    font-size: 1.8rem;
    line-height: 1.2;
}

.kpi span {
    color: #555;
    font-size: 0.92rem;
}

.cta-band {
    padding: 56px 40px;
    background: linear-gradient(135deg, #f3f8fd 0%, #eef4fb 100%);
    border-top: 1px solid #e2ebf5;
    border-bottom: 1px solid #e2ebf5;
}

.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.cta-band p {
    color: #4f4f4f;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #e4e4e4;
    box-shadow: var(--shadow);
    padding: 24px;
}

.detail-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.detail-card ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.detail-card li {
    margin-bottom: 7px;
}

.process {
    padding: 60px 40px;
}

.process h2 {
    font-size: 1.8rem;
    margin-bottom: 22px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-step {
    border: 1px solid #e2e2e2;
    border-radius: var(--radius);
    padding: 18px;
    background: var(--white);
}

.process-step .step {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact {
    padding: 40px 20px 60px;
    max-width: 760px;
    margin-inline: auto;
}

.contact p {
    font-size: 1.02rem;
    color: #444;
    margin-bottom: 12px;
}

.contact-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-form {
    margin-top: 24px;
    background: var(--gray-light);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    padding: 20px;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    color: var(--dark);
    background: var(--white);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--blue-light);
    outline: 2px solid rgba(111, 167, 217, 0.25);
    outline-offset: 1px;
}

.form-status {
    min-height: 1.3rem;
    margin-top: 10px;
    font-size: 0.92rem;
    color: #555;
}

.form-status.success {
    color: #1f7a42;
}

.form-status.error {
    color: #b1261b;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== ABOUT ===== */
.about {
    padding: 40px 40px 60px;
    max-width: 820px;
    margin-inline: auto;
}

.about p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.7;
}

.about h2 {
    margin: 24px 0 14px;
    font-size: 1.45rem;
    color: var(--dark);
}

.timeline {
    list-style: none;
    margin: 10px 0 22px;
    padding-left: 22px;
    border-left: 2px solid #dbe7f5;
}

.timeline li {
    position: relative;
    margin-bottom: 16px;
    padding: 2px 0 2px 14px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.timeline-year {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 2px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 24px 20px;
    background: var(--gray-light);
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 0.9rem;
}

footer p + p {
    margin-top: 6px;
    font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid,
    .process-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .page-header-inner {
        grid-template-columns: minmax(0, 1fr) 170px;
        column-gap: 18px;
    }

    .page-header-graphic {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav nav.open {
        max-height: 400px;
    }

    .nav nav a {
        display: block;
        padding: 12px 20px;
        text-align: center;
    }

    .nav .logo {
        width: 220px;
        min-height: 64px;
    }

    .nav .logo img {
        height: 64px;
    }

    .hero {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-graphic {
        width: 220px;
        height: 220px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .services,
    .cases,
    .blog-section {
        padding: 40px 20px;
    }

    .process,
    .cta-band {
        padding: 40px 20px;
    }

    .about {
        padding: 30px 20px 50px;
    }

    .page-header {
        padding: 40px 20px 30px;
    }

    .page-header-inner {
        grid-template-columns: 1fr;
        row-gap: 14px;
        justify-items: center;
        text-align: center;
    }

    .page-header-copy {
        text-align: center;
    }

    .page-header p {
        margin-inline: auto;
    }

    .page-header-graphic {
        width: 132px;
        height: 132px;
        justify-self: center;
    }
}