:root {
    --paper: #f6f8fb;
    --surface: #ffffff;
    --surface-strong: #fffaf0;
    --ink: #162033;
    --muted: #617086;
    --line: #dce4ee;
    --red: #d7281f;
    --red-deep: #a91f19;
    --gold: #d7a321;
    --gold-soft: #fff1c2;
    --blue: #103e5d;
    --blue-soft: #e7f4fa;
    --cyan: #1688b5;
    --shadow: 0 18px 45px rgba(22, 32, 51, 0.12);
    --radius: 8px;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

section {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(220, 228, 238, 0.9);
    backdrop-filter: blur(14px);
}

.navbar {
    width: min(1120px, calc(100% - 40px));
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--blue);
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(16, 62, 93, 0.16));
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    padding: 0 14px;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--blue-soft);
    color: var(--blue);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100svh - 112px));
    padding: clamp(56px, 8vw, 92px) 20px 28px;
    background:
        linear-gradient(90deg, rgba(16, 62, 93, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(16, 62, 93, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #ffffff 0%, #fff7df 46%, #e9f7fc 100%);
    background-size: 56px 56px, 56px 56px, auto;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 9px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan), var(--blue));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-eyebrow {
    color: var(--red-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-logo {
    width: clamp(136px, 22vw, 220px);
    height: clamp(136px, 22vw, 220px);
    margin: 18px 0 12px;
    object-fit: contain;
    filter: drop-shadow(0 22px 36px rgba(16, 62, 93, 0.18));
}

.hero h1 {
    color: var(--blue);
    font-size: clamp(3rem, 9vw, 6.4rem);
    line-height: 0.95;
    font-weight: 900;
}

.hero-lead {
    width: min(680px, 100%);
    margin: 20px auto 0;
    color: #26344a;
    font-size: clamp(1.12rem, 2.8vw, 1.55rem);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    padding: 0 20px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(215, 40, 31, 0.22);
}

.button-primary:hover {
    background: var(--red-deep);
}

.button-secondary {
    background: var(--surface);
    color: var(--blue);
    border: 1px solid var(--line);
}

.button-secondary:hover {
    box-shadow: 0 12px 24px rgba(16, 62, 93, 0.12);
}

.highlight-band {
    background: var(--surface);
    padding: 28px 0 clamp(56px, 7vw, 82px);
}

.hero-highlights {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(16, 62, 93, 0.15);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-highlights div {
    min-height: 104px;
    padding: 22px;
    border-right: 1px solid rgba(16, 62, 93, 0.12);
}

.hero-highlights div:last-child {
    border-right: 0;
}

.hero-highlights strong {
    display: block;
    color: var(--blue);
    font-size: 1.05rem;
}

.hero-highlights span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    padding: clamp(64px, 9vw, 104px) 0;
}

.section-light {
    background: var(--surface);
}

.section-warm {
    background:
        linear-gradient(180deg, rgba(255, 241, 194, 0.5), rgba(231, 244, 250, 0.52)),
        var(--paper);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.section-intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.section-intro h2,
.section-heading h2,
.contact-copy h2 {
    margin-top: 8px;
    color: var(--blue);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.section-intro p:not(.section-eyebrow),
.section-heading,
.contact-copy p {
    color: var(--muted);
}

.section-intro p:not(.section-eyebrow),
.contact-copy p {
    margin-top: 18px;
    font-size: 1.04rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.portfolio-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(22, 32, 51, 0.07);
}

.feature-card {
    min-height: 220px;
    padding: 24px;
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: #825f05;
    font-weight: 900;
    font-size: 0.82rem;
}

.feature-card h3,
.portfolio-card h3 {
    margin-top: 18px;
    color: var(--ink);
    font-size: 1.22rem;
    line-height: 1.2;
}

.feature-card p,
.portfolio-card p {
    margin-top: 12px;
    color: var(--muted);
}

.section-heading {
    width: min(720px, 100%);
    margin-bottom: 34px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portfolio-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    overflow-wrap: anywhere;
}

.portfolio-card a {
    width: fit-content;
    margin-top: 28px;
    color: var(--blue);
    font-weight: 800;
    text-decoration-color: rgba(16, 62, 93, 0.28);
    text-underline-offset: 4px;
}

.portfolio-card a:hover {
    color: var(--red-deep);
}

.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0 12px;
    text-transform: uppercase;
}

.status-live {
    background: var(--gold-soft);
    color: #7c5b05;
}

.contact-section {
    background: var(--surface);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: start;
}

.direct-email {
    display: inline-flex;
    margin-top: 24px;
    color: var(--red-deep);
    font-weight: 900;
    text-decoration-color: rgba(169, 31, 25, 0.28);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.contact-form {
    padding: clamp(22px, 4vw, 34px);
}

.form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
    color: var(--ink);
    padding: 13px 14px;
    font-weight: 500;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field textarea {
    min-height: 146px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 0;
    border-color: var(--cyan);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 136, 181, 0.13);
}

.submit-button {
    width: 100%;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

#formStatus {
    display: none;
    margin-top: 14px;
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 700;
}

#formStatus.success {
    display: block;
    border: 1px solid rgba(22, 136, 181, 0.32);
    background: var(--blue-soft);
    color: var(--blue);
}

#formStatus.error {
    display: block;
    border: 1px solid rgba(215, 40, 31, 0.26);
    background: #fff0ef;
    color: var(--red-deep);
}

.footer {
    border-top: 1px solid var(--line);
    background: #f1f5f9;
}

.footer-content {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

@media (max-width: 860px) {
    :root {
        --header-height: 112px;
    }

    .navbar {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .hero-highlights,
    .section-grid,
    .portfolio-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-intro {
        position: static;
    }

    .hero-highlights div {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(16, 62, 93, 0.12);
    }

    .hero-highlights div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .container,
    .navbar {
        width: min(100% - 28px, 1120px);
    }

    .nav-link {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

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

    .feature-card,
    .portfolio-card {
        min-height: auto;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 22px 0;
    }
}
