/* ========================================
   SurprisePromo - Global Styles
   Colors: Dark Blue (#0a1628) & Red (#e63946)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #0a1628;
    --blue-mid: #121f36;
    --blue-light: #1a2d4d;
    --red: #e63946;
    --red-dark: #c62833;
    --white: #ffffff;
    --gray-light: #cdd6e0;
    --gray: #8892a0;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--blue-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header (Sticky) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--blue-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-light);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--red);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.mobile-overlay.open {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: var(--blue-mid);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 56px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--red);
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
}

.hero-stats .stat {
    padding: 0 36px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats .stat:last-child {
    border-right: none;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

/* --- Section Base --- */
.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--blue-mid);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* --- Two-Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.two-col-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.two-col-text p {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.two-col-visual {
    background: var(--blue-light);
    border-radius: var(--radius);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

/* Promo collage with floating icons */
.promo-collage .float-icon {
    position: absolute;
    font-size: 2.4rem;
    transform: translate(var(--x, 0), var(--y, 0));
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.7;
}

.promo-collage .center-icon {
    position: relative;
    font-size: 4.5rem;
    opacity: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(var(--x, 0), var(--y, 0)); }
    50% { transform: translate(var(--x, 0), calc(var(--y, 0) - 12px)); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial p {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial .author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
}

/* --- FAQ --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
    text-align: center;
    padding: 88px 0;
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.05rem;
    color: var(--gray-light);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* --- Legal Pages --- */
.legal {
    padding: 80px 0;
}

.legal h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal .last-updated {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--white);
}

.legal p,
.legal li {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 16px;
}

.legal a {
    color: var(--red);
}

.legal a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .cards-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col {
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        right: -280px;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--blue-mid);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        z-index: 999;
        transition: right 0.3s ease;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stats .stat {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 20px;
    }

    .hero-stats .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cards-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .two-col-visual {
        min-height: 220px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta h2 {
        font-size: 1.7rem;
    }

    .legal {
        padding: 56px 0;
    }

    .legal h1 {
        font-size: 1.7rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 16px;
    }
}
