/* ==========================================================================
   Bsure Brokers — stylesheet
   Sections: tokens · base · layout · header/nav · hero · cards · about
             contact form · footer · utilities · motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --brand: #C8102E;
    --brand-strong: #A50D25;
    --brand-soft: rgba(200, 16, 46, 0.08);
    --brand-ring: rgba(200, 16, 46, 0.35);

    /* Surfaces & text (light) */
    --bg: #F9FAFB;
    --bg-accent: #F1F3F7;
    --surface: #FFFFFF;
    --surface-2: #F3F4F6;
    --text: #111827;
    --text-muted: #4B5563;
    --border: #E5E7EB;
    --border-strong: #D1D5DB;

    --header-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 10px 20px -8px rgba(17, 24, 39, 0.15), 0 4px 8px -4px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 24px 48px -16px rgba(17, 24, 39, 0.22);

    /* Shape & motion */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --content-width: 1120px;
    --header-height: 84px;

    color-scheme: light;
}

[data-theme="dark"] {
    --brand: #E2374A;
    --brand-strong: #F25468;
    --brand-soft: rgba(226, 55, 74, 0.14);
    --brand-ring: rgba(226, 55, 74, 0.45);

    --bg: #0B0F14;
    --bg-accent: #0E141C;
    --surface: #121821;
    --surface-2: #1A2230;
    --text: #E8EBF0;
    --text-muted: #9AA4B2;
    --border: #232B37;
    --border-strong: #313B4A;

    --header-bg: rgba(11, 15, 20, 0.78);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.6), 0 4px 8px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 28px 56px -18px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition), color var(--transition);
}

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

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

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

.honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    min-height: var(--header-height);
    padding: 0.75rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo--dark {
    display: none;
}

[data-theme="dark"] .logo--light {
    display: none;
}

[data-theme="dark"] .logo--dark {
    display: block;
}

.nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__list a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav__list a:hover {
    color: var(--brand);
}

/* Theme toggle (icon only) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--text);
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.theme-toggle__sun,
.theme-toggle__moon {
    display: block;
}

.theme-toggle__sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__sun {
    display: block;
}

[data-theme="dark"] .theme-toggle__moon {
    display: none;
}

/* Language toggle */
.nav__lang {
    display: flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.lang-toggle__btn {
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0.42rem 0.6rem;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.lang-toggle__btn:hover {
    color: var(--text);
}

.lang-toggle__btn[aria-pressed="true"] {
    color: #fff;
    background-color: var(--brand);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: '';
    position: relative;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    top: -2px;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button--primary {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px -10px var(--brand-ring);
}

.button--primary:hover {
    background-color: var(--brand-strong);
    transform: translateY(-2px);
}

.button--ghost {
    background-color: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.button--ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.button--block {
    width: 100%;
}

/* Submit stays muted until name, email, message and captcha are all complete */
.button--primary[aria-disabled="true"] {
    background-color: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border-strong);
    box-shadow: none;
    cursor: not-allowed;
}

.button--primary[aria-disabled="true"]:hover {
    background-color: var(--surface-2);
    color: var(--text-muted);
    transform: none;
}

.button__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.button.is-loading .button__icon {
    display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    text-align: center;
    padding: clamp(4.5rem, 10vw, 8rem) 5% clamp(4rem, 8vw, 6rem);
    background:
        radial-gradient(900px 420px at 50% -10%, var(--brand-soft), transparent 70%),
        var(--surface);
    overflow: hidden;
}

.hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) 5%;
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section__head h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    position: relative;
    padding-bottom: 1rem;
}

.section__head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--brand);
}

.section__lead {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-ring);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    color: var(--brand);
    background: var(--brand-soft);
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.stats__list {
    list-style: none;
    max-width: var(--content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.5rem 0;
}

.stat {
    text-align: center;
}

.stat__value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .stats__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__intro {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 1.15rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.subhead {
    text-align: center;
    font-size: 1.35rem;
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}

.feature-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem 2rem;
}

.feature {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.feature__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 0.15rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.feature__icon svg {
    width: 15px;
    height: 15px;
}

.feature h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.feature__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--brand);
    background-color: var(--brand-soft);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.feature__link:hover {
    background-color: var(--brand);
    color: #fff;
}

.feature__link svg {
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.feature__link:hover svg {
    transform: translateX(3px);
}

.pillars {
    max-width: 900px;
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pillar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.pillar h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--brand);
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.recognition {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.recognition li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.recognition h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.recognition p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .pillars {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Broker
   -------------------------------------------------------------------------- */
.broker__card {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.broker__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
}

.broker__monogram {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.broker__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition);
}

.broker__photo.is-loaded img {
    opacity: 1;
}

.broker__creds {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0 1.75rem;
}

.broker__creds li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.broker__creds li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.broker__tribute {
    margin-top: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--brand);
    color: var(--text-muted);
    font-style: italic;
}

.broker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact__actions {
    margin-top: 1.75rem;
}

@media (max-width: 700px) {
    .broker__card {
        grid-template-columns: 1fr;
    }

    .broker__photo {
        max-width: 200px;
    }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(2rem, 5vw, 3.5rem);
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.contact__intro {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact__points {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.contact__points li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

/* Form */
.contact-form {
    display: grid;
    gap: 1.15rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 600;
}

.field__optional {
    font-weight: 400;
    color: var(--text-muted);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

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

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
    background: var(--surface);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.field__error {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 500;
}

.h-captcha {
    margin: 0.25rem 0;
}

.button__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

.button.is-loading .button__spinner {
    display: block;
}

.button.is-loading {
    opacity: 0.85;
    cursor: progress;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.form-status.is-success {
    color: #15803D;
}

[data-theme="dark"] .form-status.is-success {
    color: #4ADE80;
}

.form-status.is-error {
    color: var(--brand);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--text);
    color: var(--bg);
    margin-top: 2rem;
}

[data-theme="dark"] .footer {
    background: var(--surface-2);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem 5%;
    text-align: center;
    font-size: 0.875rem;
}

.footer__meta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.75;
}

.footer__legal {
    margin-top: 0.6rem;
    font-size: 0.8rem;
}

.footer__legal a {
    color: inherit;
    opacity: 0.8;
}

.footer__legal a:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Legal / privacy page
   -------------------------------------------------------------------------- */
.legal {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.legal__inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.legal__updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.2rem;
    margin: 2.25rem 0 0.75rem;
}

.legal p,
.legal li {
    color: var(--text-muted);
}

.legal p {
    margin-bottom: 0.9rem;
}

.legal ul {
    margin: 0 0 1rem 1.25rem;
    display: grid;
    gap: 0.4rem;
}

.legal a {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Scroll reveal (progressive enhancement — only when JS is present)
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 0.5rem 5% 1.25rem;
        display: none;
    }

    .nav.is-open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav__list li {
        border-bottom: 1px solid var(--border);
    }

    .nav__list li:last-child {
        border-bottom: 0;
    }

    .nav__list a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
    }

    .theme-toggle {
        margin-top: 0.9rem;
    }

    .nav__lang {
        padding: 0.9rem 0;
    }

    .lang-toggle {
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .hero__actions .button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
