:root {
    --blue: #1e73be;
    --ink: #2a2a2a;
    --muted: #5c5854;
    --line: #e4e4e4;
    --cream: #fff;
    --header-h: 88px;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 1.075rem;
    line-height: 1.6;
}

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

a { color: var(--blue); }

h1 {
    margin: 0 0 0.6em;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

p { margin: 0 0 0.9em; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 40px)); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #fff;
    padding: 8px 12px;
    z-index: 20;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

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

.logo img { height: 58px; width: auto; }

.site-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    background: #d9d9d9;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-card {
    position: absolute;
    left: 7vw;
    bottom: 9vh;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    padding: 34px 42px 30px;
    min-width: min(440px, calc(100% - 14vw));
}

.hero-card p {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(0.82rem, 1.5vw, 1.05rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.8;
}

.page { padding: 72px 0 96px; }

.lead { font-size: 1.25rem; }

.contact-grid {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-form label { font-weight: 600; margin-top: 8px; }
.contact-form label span { color: var(--blue); }

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d5d5d5;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
}

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

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    color: var(--muted);
}
.check input { width: auto; margin-top: 0.35em; }

.contact-form button,
.button {
    justify-self: start;
    margin-top: 8px;
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border: 0;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    padding: 0.85em 1.4em;
    cursor: pointer;
}
.contact-form button:hover,
.button:hover { background: #165a96; }

.form-error {
    background: #f8ece6;
    color: #6d2e16;
    border: 1px solid #e7c8b8;
    padding: 12px 14px;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.legal h2 {
    margin: 1.4em 0 0.4em;
    font-family: var(--display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer {
    background: var(--blue);
    color: #fff;
    padding: 36px 0;
}

.footer-inner { text-align: left; }
.site-footer p { margin: 0 0 0.45em; }
.site-footer a { color: #fff; }

@media (max-width: 800px) {
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 22px 18px;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { display: grid; }
    .site-nav a { display: block; padding: 12px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-card { left: 16px; right: 16px; bottom: 24px; min-width: 0; padding: 22px 20px; }
    .hero-card p { letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}
