/* ===================================================
   INSPIRE COMMERCE — SHARED STYLESHEET
   styles.css · All shared tokens, layout, and UI
   =================================================== */


/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== DESIGN TOKENS ===== */
:root {
    --navy:        #0f2744;
    --navy-mid:    #1a3a5c;
    --navy-light:  #2d5f8a;
    --navy-pale:   #e8f0f8;
    --red:         #CC242C;
    --red-hover:   #a81c23;
    --white:       #ffffff;
    --off-white:   #f7f9fc;
    --text:        #0f2744;
    --text-muted:  #5a6a7a;
    --muted:       #5a6a7a;   /* alias for --text-muted, used on slim-header pages */
    --border:      #dde4ed;
    --bg:          #ffffff;
    --surface:     #f7f9fc;
    --header-h:    72px;
}

/* ===== BASE ===== */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.loaded { opacity: 1; }

/* ===== FULL NAV HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid transparent;
    z-index: 200;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.25s;
}
header.stuck {
    border-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    height: 100%; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-size: 18px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 2px;
}
.logo img { display: block; }
.logo-dot { color: var(--red); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
    font-size: 14px; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a.current { font-weight: 600; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; }
.cta-nav {
    padding: 9px 20px; border-radius: 6px;
    background: var(--navy); color: #fff;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.cta-nav:hover { background: var(--navy-mid); transform: translateY(-1px); color: #fff; }

/* ===== LOGIN DROPDOWN ===== */
.login-dropdown { position: relative; }
.login-btn {
    cursor: pointer; border: none; outline: none;
    font-family: inherit;
    padding: 9px 20px; border-radius: 6px;
    background: var(--navy); color: #fff;
    font-size: 14px; font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    display: flex; align-items: center; gap: 6px;
}
.login-btn:hover { background: var(--navy-mid); transform: translateY(-1px); }
.login-caret { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.login-dropdown.open .login-caret { transform: rotate(180deg); }
.login-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    min-width: 220px; overflow: hidden;
    opacity: 0; transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 300;
}
.login-dropdown.open .login-menu { opacity: 1; transform: translateY(0); pointer-events: all; }
.login-item {
    display: flex; flex-direction: column;
    padding: 14px 18px; text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.login-item:last-child { border-bottom: none; }
.login-item:hover { background: var(--surface); }
.login-item-label { font-size: 14px; font-weight: 600; color: var(--text); }
.login-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== HAMBURGER + DRAWER ===== */
.hamburger-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; padding: 6px;
    background: none; border: none; cursor: pointer;
    margin-left: 10px; flex-shrink: 0;
}
.hamburger-btn span {
    display: block; width: 20px; height: 2px;
    background: rgba(180,190,210,0.9); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; background: #fff;
    box-shadow: -8px 0 48px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 500; display: flex; flex-direction: column;
    padding: 80px 40px 48px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-close {
    position: absolute; top: 24px; right: 24px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); opacity: 0.5;
    transition: opacity 0.2s;
}
.nav-drawer-close:hover { opacity: 1; }
.nav-drawer a {
    display: block; font-size: 18px; font-weight: 600;
    color: var(--navy); text-decoration: none;
    padding: 14px 0; border-bottom: 1px solid rgba(10,35,80,0.08);
    transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--navy-mid); }
.nav-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease; z-index: 499;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ===== SLIM HEADER — back-link (.header-back) ===== */
/* Used on gateway-login.html and contact-thank-you.html.
   Those pages override the `header` element in page-specific styles. */
.header-back {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.header-back:hover { color: var(--text); }
.header-back svg { flex-shrink: 0; }

/* ===== EYEBROW ===== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 32px;
}
.eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--red); flex-shrink: 0;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 28px 40px;
}
.trust-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.trust-bar-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.trust-bar-items { display: flex; gap: 40px; flex-wrap: wrap; }
.trust-bar-item { display: flex; align-items: center; gap: 10px; }
.trust-bar-item svg { color: var(--red); flex-shrink: 0; }
.trust-bar-item span { font-size: 14px; font-weight: 500; color: var(--text); }

/* ===== SECTION SHARED ===== */
.section-wrap { padding: 110px 40px; }
.section-wrap.alt { background: var(--surface); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.section-h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); margin: 0 0 20px; }
.section-sub { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 580px; margin: 0 0 64px; }

/* ===== BUTTONS ===== */
.btn-hero-primary {
    padding: 15px 32px; border-radius: 6px;
    background: var(--red); color: #fff;
    font-size: 15px; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.2s, transform 0.2s;
}
.btn-hero-primary:hover { background: var(--red-hover); transform: translateY(-2px); color: #fff; }

.btn-hero-ghost {
    padding: 15px 32px; border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 15px; font-weight: 500;
    text-decoration: none; display: inline-block;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; transform: translateY(-2px); }

.btn-cta-white {
    padding: 16px 36px; border-radius: 6px;
    background: #fff; color: var(--navy);
    font-size: 16px; font-weight: 700; text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); color: var(--navy); }

.btn-cta-ghost {
    padding: 16px 36px; border-radius: 6px;
    background: transparent; border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    font-size: 16px; font-weight: 500; text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; transform: translateY(-2px); }

.btn-navy {
    display: inline-block;
    padding: 14px 28px; border-radius: 6px;
    background: var(--navy); color: #fff;
    font-size: 15px; font-weight: 600; text-decoration: none;
    margin-top: 36px;
    transition: background 0.2s, transform 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); color: #fff; }

.btn-red {
    display: inline-block;
    padding: 14px 28px; border-radius: 6px;
    background: var(--red); color: #fff;
    font-size: 15px; font-weight: 600; text-decoration: none;
    margin-top: 36px;
    transition: background 0.2s, transform 0.2s;
}
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); color: #fff; }

/* ===== CTA STRIP ===== */
.cta-strip {
    background: linear-gradient(135deg, var(--navy) 0%, #0a1e35 100%);
    padding: 110px 40px;
    position: relative; overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}
.cta-strip::after {
    content: '';
    position: absolute; bottom: -30%; right: -10%;
    width: 50%; height: 160%;
    background: radial-gradient(ellipse, rgba(204,36,44,0.2) 0%, transparent 65%);
}
.cta-strip-inner {
    position: relative; z-index: 2;
    max-width: 700px; margin: 0 auto; text-align: center;
}
.cta-strip h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 0 20px; line-height: 1.1; }
.cta-strip p  { font-size: 18px; color: rgba(255,255,255,0.65); margin: 0 0 48px; line-height: 1.7; }
.cta-strip-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== CTA PULSE ===== */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204,36,44,0.35); }
    50% { box-shadow: 0 0 0 12px rgba(204,36,44,0); }
}
.cta-strip .btn-cta-white { animation: ctaPulse 3s ease-in-out infinite; }

/* ===== FOOTER (full-nav pages) ===== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.footer-links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 13px; color: var(--text-muted); }
.footer-note a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
    background: var(--navy);
    padding: 80px 40px 88px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute; bottom: -30%; right: -5%;
    width: 40%; height: 160%;
    background: radial-gradient(ellipse, rgba(204,36,44,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto;
}
.page-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.page-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--red); flex-shrink: 0;
}
.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff; margin: 0 0 24px;
}
.page-hero p {
    font-size: 18px; line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 580px; margin: 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    .nav { display: none; }
    /* Login dropdown lives in nav drawer on mobile — hide it from header to prevent overflow */
    .header-inner .login-dropdown { display: none; }
    .section-wrap { padding: 60px 20px; }
    .cta-strip { padding: 60px 20px; }
    footer { padding: 32px 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .trust-bar { padding: 20px 20px; }
    .section-sub { margin-bottom: 40px; font-size: 16px; }
    .page-hero { padding: 52px 20px 60px; }
}

/* ===== IPAD RESPONSIVE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-inner { padding: 0 28px; }
    .section-wrap { padding: 80px 32px; }
    .cta-strip { padding: 80px 32px; }
    .trust-bar { padding: 24px 32px; }
    footer { padding: 40px 32px; }
}
