/* Nexus Computers — royal blue + white theme (no npm/Vite required) */
:root {
    --navy: #0b3d91;
    --navy-deep: #072c6b;
    --navy-soft: #1e56b3;
    --gold: #1d4ed8;
    --gold-dark: #1e40af;
    --cream: #ffffff;
    --ink: #0f172a;
    --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.font-display {
    font-family: var(--font-display);
    overflow-wrap: anywhere;
}

a {
    color: inherit;
    text-decoration: none;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background: var(--navy);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-gold:hover {
    background: var(--navy-deep);
}

.hero-swoosh .btn-gold,
.site-header .btn-gold,
.mobile-cta-bar__btn--wa {
    background: #fff;
    color: var(--navy-deep);
}

.hero-swoosh .btn-gold:hover,
.site-header .btn-gold:hover {
    background: #e8effc;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
}

.section-pad {
    padding: 4rem 1rem;
}

@media (min-width: 640px) {
    .section-pad {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-pad {
        padding: 5rem 2rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(11, 61, 145, 0.94);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: rgba(7, 44, 107, 0.97);
    box-shadow: 0 10px 25px rgba(7, 44, 107, 0.25);
}

.hero-swoosh {
    background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-soft) 100%);
}

.hero-swoosh::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,64 C240,120 480,0 720,40 C960,80 1200,120 1440,48 L1440,120 L0,120 Z'/%3E%3C/svg%3E")
        center bottom / 100% 100% no-repeat;
}

@media (min-width: 640px) {
    .hero-swoosh::after {
        height: 5.5rem;
    }
}

.category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip.is-active {
    border-color: var(--navy) !important;
    background: var(--navy) !important;
    color: #fff !important;
}

.mobile-cta-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(7, 44, 107, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
    .mobile-cta-bar {
        display: none;
    }
}

.mobile-cta-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.375rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.mobile-cta-bar__btn--call {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.mobile-cta-bar__btn--wa {
    background: #fff;
    color: var(--navy-deep);
}

.product-tile {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 61, 145, 0.06);
    outline: 1px solid rgba(11, 61, 145, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.12);
}

.admin-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
}

.admin-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.admin-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.break-all {
    word-break: break-all;
}

/* Head Office highlight card */
.head-office-card {
    position: relative;
    border: 2px solid var(--navy);
    background: linear-gradient(180deg, #eff4ff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.12);
}

.head-office-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.65rem;
}
