/* Base and variables */
:root {
    --brand: #1428A0;
    --accent: #00B6F0;
    --muted: #64748b;
    --bg: #ffffff;
    --surface: #f8fafc;
    --text: #0b1220;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(2, 6, 23, .06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --muted: #94a3b8;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Layout */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    padding: .5rem .75rem;
    border-radius: 8px;
}

.nav-links a[aria-current="page"], .btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns:1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 3rem 0;
    min-height: 100svh;
}

h1 {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.2;
    margin: 0;
}

.sub {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--muted);
    margin: 0;
}

.cta {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: #111827;
    cursor: pointer;
    justify-content: center;
}

.grid {
    display: grid;
    gap: 1rem;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(2, 6, 23, .04);
}

.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, .06);
    padding: 1.5rem;
}

section {
    padding: 2rem 0;
}

footer {
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    color: var(--muted);
}

/* Reveal and interactions */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .revealed {
        opacity: 1;
        transform: none;
    }

    .btn {
        transition: transform .15s ease, box-shadow .2s ease;
    }

    .btn:hover {
        box-shadow: 0 6px 20px rgba(2, 6, 23, .08);
    }

    .btn:active {
        transform: translateY(1px);
    }

    .card {
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(2, 6, 23, .06);
    }
}

/* Forms */
input, textarea, select {
    padding: .65rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: inherit;
}

label {
    display: grid;
    gap: .4rem;
    font-weight: 500;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent)
}

button[disabled], .btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.invalid {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, .15);
}

.hint {
    color: #6b7280;
    font-size: .9rem;
}

.error-text {
    color: #b91c1c;
    font-size: .9rem;
}

/* Select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.25rem;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M6 8l4 4 4-4" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right .6rem center;
    background-size: 16px 16px;
    cursor: pointer;
}

select:hover {
    border-color: #cbd5e1;
}

select option {
    background: #ffffff;
    color: #0b1220;
}

/* Utilities */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    color: #000;
    padding: .5rem .75rem;
    border-radius: .5rem;
    z-index: 1000;
}

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

picture {
    display: inline-block;
}

nav a:hover {
    background: #f3f4f6;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 1100
}

.modal[hidden] {
    display: none
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .5);
    backdrop-filter: blur(5px)
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(2, 6, 23, .2);
    max-width: 420px;
    width: 100%;
    padding: 1.25rem
}

.modal__close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer
}

.modal__body {
    text-align: center
}

.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    margin: 0 auto .75rem
}

.circle--spinner {
    border: 6px solid #e5e7eb;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite
}

.circle--success {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 2rem
}

.circle--error {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 2rem
}

.actions {
    margin-top: 1rem
}

.actions--row {
    display: flex;
    gap: .75rem;
    justify-content: center
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 10px 30px rgba(2, 6, 23, .15);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    cursor: pointer;
}

.to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Breakpoints */
@media (min-width: 768px) {
    .hero {
        grid-template-columns:1.2fr .8fr;
    }

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

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

@media (max-width: 767px) {
    .nav-links {
        background: var(--surface);
        padding: .5rem;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        justify-content: space-evenly;
        display: none;
    }

    .brand.title {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
        background: #fff;
        border: 0;
        border-radius: 8px;
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .nav-links {
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .container {
        margin: 0 10px;
    }
}

@media (min-width: 1100px) {
    .container {
        max-width: 95dvw;
    }

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


nav a:hover {
    background: #f3f4f6;
}

.btn {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    box-shadow: var(--shadow);
}

.hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
