/* RoyalCar - global tokens, chrome and shared UI */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #0b0d10;
    --ink-2: #15181d;
    --muted: #5b616a;
    --muted-2: #8b919a;
    --line: rgba(11, 13, 16, 0.10);
    --line-strong: rgba(11, 13, 16, 0.16);
    --surface: #ffffff;
    --surface-2: #f6f7f8;
    --aqua-50: #f5fbfb;
    --aqua-100: #e9f4f5;
    --aqua-200: #dceef0;
    --container: 1200px;
    --gutter: 24px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 100px;
    --shadow-soft: 0 30px 80px -48px rgba(11, 13, 16, 0.45);
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

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

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
    transform: translateY(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;
}

/* ---------- shared type ---------- */

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.section {
    padding: 104px 0;
}

.section--tight {
    padding: 72px 0;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head--left {
    margin-inline: 0;
    text-align: left;
}

.section-title {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.section-sub {
    margin-top: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn-dark {
    background: var(--ink);
    color: #ffffff;
}

.btn-dark:hover {
    background: #20252d;
}

.btn-light {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-light:hover {
    border-color: rgba(11, 13, 16, 0.38);
}

.btn-circle {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #ffffff;
}

.btn-circle:hover {
    background: #20252d;
}

.btn-circle:disabled {
    opacity: 0.32;
    cursor: default;
    transform: none;
}

.btn svg,
.btn-circle svg {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---------- header ---------- */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    width: 26px;
    height: 18px;
    flex: none;
    color: var(--ink);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.primary-nav a {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    opacity: 0.86;
    transition: opacity 0.2s var(--ease);
}

.primary-nav a:hover {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .site-header {
        padding: 14px 0;
    }

    .primary-nav,
    .header-actions .btn {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-header.is-open .mobile-nav {
        display: block;
    }

    .mobile-nav {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
    }

    .mobile-nav a {
        display: block;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-nav a:hover {
        background: var(--surface-2);
    }

    .mobile-nav .btn {
        margin-top: 6px;
        padding: 15px 16px;
    }
}

/* ---------- footer ---------- */

.site-footer {
    padding-top: 72px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
    gap: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.footer-news-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-news-text {
    margin-top: 10px;
    max-width: 34ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
}

.newsletter-form input::placeholder {
    color: var(--muted-2);
}

.newsletter-form input:focus-visible {
    outline-offset: -2px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.footer-col a,
.footer-col .footer-static {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-links a:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.social-links svg {
    width: 15px;
    height: 15px;
}

.copyright {
    font-size: 13px;
    color: var(--muted);
}

.footer-wordmark {
    overflow: hidden;
    font-size: clamp(56px, 16.5vw, 232px);
    font-weight: 800;
    line-height: 0.78;
    letter-spacing: -0.05em;
    text-align: center;
    color: #eef1f2;
    user-select: none;
    padding-top: 8px;
}

@media (max-width: 900px) {
    .site-footer {
        padding-top: 56px;
    }

    .footer-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-bottom: 36px;
    }

    .footer-cols {
        gap: 28px;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
