:root {
    color-scheme: light;
    --bg: #f4f1eb;
    --bg-soft: #e8dfd4;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #13212b;
    --muted: #51606c;
    --accent: #0c6b6b;
    --accent-strong: #0a5252;
    --border: rgba(19, 33, 43, 0.12);
    --shadow: 0 24px 60px rgba(19, 33, 43, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(12, 107, 107, 0.18), transparent 32%),
        radial-gradient(circle at right 20%, rgba(255, 183, 77, 0.18), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, #fcfaf7 100%);
    min-height: 100vh;
}

body.cookies-locked {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(19, 33, 43, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 33, 43, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 85%);
}

.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar,
.hero,
.section-grid,
.contact-box,
.highlights {
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 24px;
    position: sticky;
    top: 16px;
    z-index: 5;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    flex-shrink: 0;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a,
.contact-links a {
    color: inherit;
    text-decoration: none;
}

.hero {
    margin-top: 24px;
    border-radius: 36px;
    padding: clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 28px;
    overflow: hidden;
}

.hero-copy h1,
.section-heading h2,
.contact-box h2 {
    margin: 10px 0 14px;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 5.1rem);
    max-width: 12ch;
}

.hero-copy p,
.section-heading p,
.contact-box p,
.service-card p,
.highlight-card span,
.hero-panel li,
.portfolio-item,
.process-list li {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-strong);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-strong);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--border);
    color: var(--text);
}

.hero-panel {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(12, 107, 107, 0.12), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(12, 107, 107, 0.18);
    padding: 24px;
    align-self: end;
}

.panel-label {
    margin-top: 0;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-panel ul,
.process-list {
    padding-left: 20px;
}

.highlights {
    margin-top: 24px;
    padding: 16px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.highlight-card {
    background: var(--surface-strong);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
}

.highlight-card strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.section-grid {
    margin-top: 24px;
    border-radius: 32px;
    padding: clamp(24px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.section-grid.alt {
    background: rgba(255, 255, 255, 0.62);
}

.cards,
.portfolio-list {
    display: grid;
    gap: 16px;
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.portfolio-item,
.process-list li {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.service-card,
.portfolio-item {
    padding: 20px;
}

.service-card h3 {
    margin-top: 0;
}

.portfolio-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.portfolio-item,
.process-list li {
    padding: 18px 20px;
}

.contact-section {
    margin-top: 24px;
    border-radius: 32px;
    padding: clamp(24px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.contact-links a {
    font-weight: 700;
    color: var(--accent-strong);
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Form */
.contact-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-field {
    display: none !important;
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.form-row input,
.form-row textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    resize: vertical;
    width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(12, 107, 107, 0.14);
}

.form-submit {
    align-self: flex-start;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.legal-note {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.legal-note a {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.legal-note a:hover {
    text-decoration: underline;
}

.form-success {
    background: rgba(12, 107, 107, 0.1);
    border: 1.5px solid rgba(12, 107, 107, 0.3);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 0 0 14px;
    color: var(--accent-strong);
    line-height: 1.6;
}

.form-error {
    background: rgba(200, 40, 40, 0.08);
    border: 1.5px solid rgba(200, 40, 40, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    color: #8b1a1a;
    font-size: 0.93rem;
    margin-bottom: 16px;
}

.site-footer {
    margin-top: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.site-footer-logo {
    border-radius: 7px;
    flex-shrink: 0;
}

.site-footer-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    margin: 0 auto;
    width: min(920px, calc(100% - 32px));
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(19, 33, 43, 0.2);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-consent a {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

.cookie-consent-accept {
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(19, 33, 43, 0.52);
    backdrop-filter: blur(2px);
}

.cookie-overlay[hidden] {
    display: none;
}

@media (max-width: 920px) {
    .hero,
    .section-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .cards,
    .highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 18px, 1160px);
        padding-top: 10px;
    }

    .topbar {
        position: static;
        border-radius: 20px;
    }

    .nav {
        gap: 10px;
        font-size: 0.95rem;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .site-footer {
        padding: 14px 16px;
    }

    .site-footer-meta {
        width: 100%;
    }

    .cookie-consent {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 16px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-accept {
        width: 100%;
    }
}
