/* =============================
   AIRBNB / APPLE-INSPIRED TOKENS
   ============================= */
:root {
    --surface: #ffffff;
    --surface-muted: #faf7f4;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --text-primary: #222222;
    --text-secondary: rgba(0, 0, 0, 0.55);
    --accent: #ff385c;
    --accent-dark: #e52546;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 15px 50px rgba(30, 41, 59, 0.12);
    --font-sans: "Inter", "SF Pro Display", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =============================
   BASE
   ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--surface-muted);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

main {
    padding-block: clamp(1.5rem, 3vw, 3.5rem);
}

.container {
    max-width: 1200px;
    padding-inline: 1.5rem;
}

h1, h2, h3, h4, p {
    color: inherit;
    margin-bottom: 0.8rem;
}

.muted {
    color: var(--text-secondary);
}

/* =============================
   HEADER / NAV
   ============================= */
.bg-light-subtle {
    background: var(--surface-muted);
    min-height: 100vh;
}

/* legacy header styles kept for reference */
.site-header {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.glass-nav .nav-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.85rem;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-row-primary {
    justify-content: space-between;
}

.brand-stack {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-sub {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-primary-links {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    min-width: 220px;
    flex-wrap: wrap;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}

.nav-session {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-ghost-btn,
.nav-solid-btn {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-ghost-btn {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    background: transparent;
}

.nav-ghost-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-solid-btn {
    background: var(--text-primary);
    color: #fff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
}

.nav-row-secondary {
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
}

.nav-hierarchy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.nav-hierarchy a {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-hint {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.crumb {
    opacity: 0.4;
    font-weight: 600;
}

.nav-search {
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.2rem;
}

.nav-search .form-control {
    background: transparent;
    box-shadow: none;
}

.nav-search .form-control::placeholder {
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .nav-row-primary {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-session {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-row-secondary {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-search {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .nav-primary-links {
        justify-content: flex-start;
    }

    .nav-search {
        max-width: 100%;
    }
}

.nav-mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.6);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.nav-mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
}

.nav-mobile-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: flex-end;
    z-index: 1050;
}

.nav-mobile-scrim.is-open {
    display: flex;
}

.nav-mobile-panel {
    width: min(320px, 85%);
    height: 100%;
    background: #fff;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
}

.nav-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-mobile-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-primary);
}

.nav-mobile-body nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.nav-mobile-session {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =================================
   FOOTER
================================= */
.site-footer {
    background: #fef9f5;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-shell {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    padding-block: 2.5rem;
}

.footer-brand {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    color: var(--text-primary);
}

.footer-newsletter .newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0.45rem 0.9rem;
}

.newsletter-form button {
    border-radius: 999px;
    border: none;
    background: var(--text-primary);
    color: #fff;
    padding: 0.45rem 1rem;
}

.footer-meta {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-block: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-newsletter .newsletter-form {
        flex-direction: column;
    }
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: stretch;
}

.navbar-nav .nav-item {
    flex: 1 1 120px;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    min-height: 44px;
    text-align: center;
}

.navbar-nav .nav-link i {
    font-size: 1rem;
}

.navbar-nav .nav-link-underline {
    width: 100%;
}

.navbar-nav .nav-link-underline::after {
    bottom: 6px;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-item {
        flex: 1 1 45%;
    }
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #ff7e73);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.nav-link-underline {
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 999px;
    padding-inline: 0.9rem;
    padding-block: 0.35rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link-underline:hover,
.nav-link-underline:focus-visible,
.nav-link-underline.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.badge-new {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding-inline: 0.4rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

/* =============================
   SEARCH BAR
   ============================= */
.searchbar .input-group {
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.searchbar .input-group-text {
    background: transparent;
    border: 0;
    color: var(--text-secondary);
}

.searchbar .form-control {
    border: 0;
    box-shadow: none;
}

.searchbar .form-control::placeholder {
    color: var(--text-secondary);
}

/* =============================
   BUTTONS / INPUTS
   ============================= */
.btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    box-shadow: 0 15px 25px rgba(229, 37, 70, 0.3);
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text-primary);
    background: var(--surface);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(229, 37, 70, 0.25);
}

.form-control,
.input {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
}

.form-control:focus,
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

/* =============================
   CARDS / PANELS
   ============================= */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.card + .card {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

/* =============================
   UTILITIES
   ============================= */
.hero-shell {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 3rem);
    box-shadow: var(--shadow-card);
}

.pill {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}
