/* Explain: Structural layout for header, footer, drawer, hero, and page heads. */
/*
 * Explain: Structural layout — shell widths, sticky header, mobile drawer, hero,
 * page headers and the site footer.
 */

.shell {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .shell {
        padding-inline: 2rem;
    }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(11, 27, 51, 0.09);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: var(--primary-color);
    color: var(--accent-color);
    font-size: 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--primary-color);
}

.brand-text small {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-muted);
}

.site-nav {
    display: none;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: 1.7rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: #35435c;
    }
}

.site-nav a {
    padding-block: 0.35rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    transition: background 0.2s ease;
}

.cart-link:hover {
    background: var(--surface-color);
}

.cart-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.3rem;
    height: 1.3rem;
    padding-inline: 0.25rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-size: 0.7rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}

.cart-badge.is-on {
    display: inline-flex;
}

.header-phone {
    display: none;
}

@media (min-width: 900px) {
    .header-phone {
        display: inline-flex;
    }
}

.drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .drawer-btn {
        display: none;
    }
}

/* ---------- Mobile drawer ---------- */
.site-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 16, 32, 0.55);
}

.site-drawer.is-open {
    display: block;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(21rem, 88vw);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.22);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: #26344c;
    transition: color 0.2s ease;
}

.drawer-nav a:hover {
    color: var(--primary-color);
}

.drawer-phone {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: #081426;
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(5, 15, 30, 0.94) 0%, rgba(5, 15, 30, 0.8) 45%, rgba(5, 15, 30, 0.45) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding: clamp(3.5rem, 11vw, 7.5rem) 1.25rem clamp(3rem, 8vw, 5rem);
}

@media (min-width: 768px) {
    .hero-inner {
        padding-inline: 2rem;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 212, 0, 0.45);
    background: rgba(255, 212, 0, 0.16);
    color: #ffe873;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title {
    margin-top: 1.15rem;
    font-size: clamp(2.1rem, 6.4vw, 3.9rem);
}

.hero-sub {
    margin-top: 1.1rem;
    max-width: 34rem;
    font-size: clamp(0.98rem, 2.2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.9rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 32rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats dt {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
}

.hero-stats dd {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #fff;
}

.hero-stats em {
    margin-left: 0.15rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-color);
}

/* ---------- Page header ---------- */
.page-head {
    padding-block: clamp(2.75rem, 7vw, 4.5rem);
    color: #fff;
    background: radial-gradient(circle at 15% 20%, #17325c 0%, #081426 62%);
}

.page-head-crumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.page-head-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.page-head-sub {
    max-width: 36rem;
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
}

/* ---------- Footer ---------- */
.site-footer {
    padding-block: 3rem 1.75rem;
    background: #071224;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.footer-title {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}