/* SwiftCrates shared design system: tokens, header, buttons, footer.
   Loaded by the home page, /pricing and every guide. Page layouts live in
   their own files (guide.css, home-hero.css); this file is only the chrome
   every page shares so they look like one site. */
:root {
    --sc-brand: #1a78b6; /* 4.77:1 with white text (WCAG AA) */
    --sc-brand-strong: #13649a;
    --sc-brand-soft: #e7f2fa;
    --sc-tint: #f3f8fc;
    --sc-ink: #0e1b2a;
    --sc-body: #2c3a4a;
    --sc-muted: #5d6b7b;
    --sc-line: #dfe7ee;
    --sc-card: #ffffff;
    --sc-warn-bg: #fff7ed;
    --sc-warn-line: #fbd9b4;
    --sc-warn-ink: #9a3412;
    --sc-radius: 16px;
    --sc-radius-sm: 10px;
    --sc-shadow: 0 1px 2px rgba(14, 27, 42, 0.06), 0 8px 24px rgba(14, 27, 42, 0.06);
    --sc-shadow-lg: 0 20px 48px rgba(14, 27, 42, 0.14);
    --sc-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sc-max: 1120px;
    --sc-read: 44rem;
}

/* ---------- Buttons ---------- */
.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 700 1rem/1.2 var(--sc-font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.sc-btn-primary {
    background: var(--sc-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(27, 127, 192, 0.28);
}

.sc-btn-primary:hover,
.sc-btn-primary:focus-visible {
    background: var(--sc-brand-strong);
    color: #fff;
}

/* Pages with older link rules (e.g. .followup-page .scj-product a on /refer)
   must not recolor the header's Book now label. */
.site-header a.sc-btn.sc-btn-primary,
.site-header a.sc-btn.sc-btn-primary:hover {
    color: #fff;
}

.sc-btn-ghost {
    background: #fff;
    color: var(--sc-ink);
    border-color: var(--sc-line);
}

.sc-btn-ghost:hover,
.sc-btn-ghost:focus-visible {
    border-color: var(--sc-brand);
    color: var(--sc-brand-strong);
}

.sc-btn-sm {
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
}

.sc-btn .sc-arrow {
    transition: transform 0.15s ease;
}

.sc-btn:hover .sc-arrow {
    transform: translateX(2px);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--sc-line);
    font-family: var(--sc-font);
}

.site-header__inner {
    max-width: var(--sc-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo img {
    display: block;
    height: 34px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--sc-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--sc-brand-strong);
    background: var(--sc-brand-soft);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.site-phone {
    color: var(--sc-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.site-phone:hover {
    color: var(--sc-brand-strong);
}

.site-menu {
    display: none;
    position: relative;
}

.site-menu summary {
    list-style: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--sc-line);
    display: grid;
    place-items: center;
    color: var(--sc-ink);
    background: #fff;
}

.site-menu summary::-webkit-details-marker {
    display: none;
}

.site-menu summary svg {
    width: 20px;
    height: 20px;
}

.site-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(280px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow-lg);
    padding: 0.5rem;
    display: grid;
}

.site-menu__panel a {
    color: var(--sc-ink);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 0.9rem;
    border-radius: var(--sc-radius-sm);
}

.site-menu__panel a:hover {
    background: var(--sc-tint);
}

@media (max-width: 899px) {
    .site-nav,
    .site-phone {
        display: none;
    }

    .site-header__inner {
        height: 60px;
        gap: 0.75rem;
        justify-content: space-between;
    }

    .site-logo img {
        height: 30px;
    }

    .site-menu {
        display: block;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--sc-ink);
    color: #c9d3de;
    font-family: var(--sc-font);
    font-size: 0.95rem;
    margin-top: 0;
}

.site-footer__inner {
    max-width: var(--sc-max);
    margin: 0 auto;
    padding: 3rem 1.25rem 2.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.site-footer img {
    height: 30px;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
}

.site-footer h2 {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.site-footer p {
    margin: 0.35rem 0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-width: var(--sc-max);
    margin: 0 auto;
    padding: 1.25rem;
    font-size: 0.85rem;
    color: #93a1b0;
}

.site-footer__legal p {
    margin: 0.25rem 0;
}

@media (min-width: 760px) {
    .site-footer__inner {
        grid-template-columns: 1.3fr 1fr 1.6fr;
    }
}
