/* Shared styles for pointsnl.com — used by index.html, worth-it.html, minimal-spend.html.
   Extracted from what was byte-identical inline CSS across all three pages.
   Page-specific components (stat/verdict/contrast bars, benefit grids, footer, etc.)
   remain in each page's own <style> block — see that block's leading comment for what's local. */

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

:root {
    --navy: #1a2f5e;
    --navy-mid: #2d4a7a;
    --navy-light: #b8c4d8;
    --navy-muted: #8faabf;
    --navy-dim: #7a8fa8;
    --gold: #c9a84c;
    --gold-bg: #f5e9c8;
    --gold-text: #8a6a1a;
    --warm-white: #faf9f7;
    --warm-grey: #f0eee8;
    --warm-grey-mid: #f5f3ef;
    --border: #e0ddd8;
    --border-mid: #d0cdc8;
    --text-primary: #1a1a1a;
    --text-body: #3a3a3a;
    --text-muted: #555;
    --text-hint: #888;
    --text-faint: #aaa;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;

    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    --text-2xl: 48px;
}

html {
    scroll-behavior: smooth;
}

/* UTILITY */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

body {
    font-family: var(--sans);
    background: var(--warm-white);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: var(--text-md);
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    background: var(--warm-white);
    border-bottom: 0.5px solid var(--border);
    height: 96px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 42px;
    list-style: none;
}

.nav-links a {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a.active {
    color: var(--navy);
    font-weight: 500;
}

/* HERO */
.hero {
    background-color: var(--navy);
    background-image:
        linear-gradient(to right, #1a2f5e 40%, rgba(26,47,94,0.5) 70%, rgba(26,47,94,0) 100%),
        url('images/hero.webp');
    background-position: left center, center right;
    background-size: auto, cover;
    background-repeat: no-repeat;
    padding: 5.5rem 0 5rem;
    position: relative;
    text-align: left;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 55%;
}

.hero-eyebrow {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.125rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(var(--text-xl), 6vw, var(--text-2xl));
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    max-width: 700px;
    margin-bottom: 1.375rem;
}

.hero-sub {
    font-size: var(--text-md);
    color: var(--navy-light);
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 2.25rem;
}

.hero-sub strong {
    color: #fff;
    font-weight: 500;
}

.hero-footnote {
    font-size: var(--text-sm);
    color: var(--navy-dim);
    margin-top: 14px;
}

.hero-footnote a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* .btn-primary:hover is NOT here — its body differs on minimal-spend.html (see that
   page's inline <style> block), so the full rule is kept per-page rather than split. */

.btn-navy {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    padding: 18px 42px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(26, 47, 94, 0.2);
}

.btn-navy:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 47, 94, 0.35);
}

/* SECTION TYPOGRAPHY */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-family: var(--serif);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.125rem;
    line-height: 1.4;
}

.section p {
    font-size: var(--text-md);
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.section p:last-child {
    margin-bottom: 0;
}

.section-divider {
    height: 0.5px;
    background: var(--border);
    margin-bottom: 3rem;
}

/* CTA BLOCK (box only — .cta-block p sizing differs per page and stays local) */
.cta-block {
    background: var(--navy);
    border-radius: 10px;
    padding: 2.25rem;
    text-align: center;
    margin-top: 2.25rem;
}

/* MOBILE STICKY CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.mobile-sticky-cta .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
}

/* RESPONSIVE — shared nav/hero/sticky-CTA rules only.
   Each page's own <768px stat-bar/verdict-bar/contrast-bar-family breakpoints,
   and its .body-wrap / footer mobile rules, stay in that page's local <style> block. */
@media (max-width: 640px) {
    nav { height: auto; }
    .nav-inner { flex-wrap: wrap; padding: 12px 0; }
    .logo-img { max-height: 56px; }
    .container { padding: 0 1.25rem; }

    .nav-links {
        display: flex;
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-top: 12px;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: var(--text-sm);
    }

    .hero {
        padding: 2.5rem 0 2rem;
        background-image:
            linear-gradient(rgba(26, 47, 94, 0.75), rgba(26, 47, 94, 0.75)),
            url('images/hero.webp');
        background-position: 80% center;
    }

    .hero-inner { max-width: 100%; }

    .mobile-sticky-cta {
        display: block;
    }
}
