/* ─────────────────────────────────────────
   Calio — Shared Site Styles
   Used by: training, tools, assistants,
   resources, contact, index (new)
───────────────────────────────────────── */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:           #1e3a8a;
    --color-primary-mid:       #2d52bb;
    --color-primary-light:     #3b82f6;
    --color-accent:            #60a5fa;
    --color-text:              #0f172a;
    --color-text-secondary:    #475569;
    --color-background:        #ffffff;
    --color-background-subtle: #f8fafc;
    --color-border:            #e2e8f0;
    --color-dark:              #0f172a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1100px;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── HEADER ── */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo-lockup {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: -2px;
    text-decoration: none;
}
.logo-c { width: 42px; height: 42px; margin-right: -6px; }
.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-primary); font-weight: 600; }
.header-cta {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(30,58,138,0.2);
}
.header-cta:hover {
    background: var(--color-primary-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30,58,138,0.3);
}

/* ── HAMBURGER ── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.25s;
}

/* ── HERO BADGE (pulsing dot) ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--color-primary-mid);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary-light);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── PAGE HERO (dark gradient — inner pages) ── */
.page-hero {
    background: linear-gradient(145deg, #060d1f 0%, #0d1f4a 40%, #1e3a8a 80%, #1a4fa8 100%);
    color: white;
    padding: 4.5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(59,130,246,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59,130,246,0.18);
    border: 1px solid rgba(96,165,250,0.4);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.page-hero .badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 8px #60a5fa;
    animation: pulse 2s ease-in-out infinite;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.page-hero h1 em { font-style: normal; color: #93c5fd; }
.page-hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: white;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: -0.01em;
}
.btn-primary:hover { background: #f0f7ff; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-blue:hover { background: var(--color-primary-mid); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:hover { background: #eff6ff; }

/* ── TRUST STRIP ── */
.trust-strip {
    background: var(--color-background-subtle);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 2.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}
.trust-item svg { color: var(--color-primary-light); flex-shrink: 0; }

/* ── SECTION SHARED ── */
.section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-mid);
    margin-bottom: 0.75rem;
}
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.65;
}

/* ── FEATURE CARDS ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--color-background-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #bfdbfe;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary-mid);
}
.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── STEP CARDS ── */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ── BOTTOM CTA SECTION ── */
.bottom-cta {
    padding: 5rem 0;
    background: var(--color-dark);
    text-align: center;
    color: white;
}
.bottom-cta h2 {
    font-size: clamp(2rem, 4vw, 2.875rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
}
.bottom-cta p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: white;
    color: var(--color-primary);
    padding: 1.125rem 3rem;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: -0.01em;
}
.bottom-cta-btn:hover { background: #f0f7ff; }
.bottom-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 1.125rem 2.25rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 1rem;
}
.bottom-cta-secondary:hover { background: rgba(255,255,255,0.18); }

/* ── FOOTER ── */
.footer {
    background: var(--color-dark);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.footer-brand .logo-text { color: rgba(255,255,255,0.85); font-size: 1.5rem; }
.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.375rem;
}
.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.8125rem;
    text-align: center;
}
.footer-copy a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-copy a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        z-index: 99;
        box-shadow: var(--shadow-md);
    }
    .header-nav.open { display: flex; }
    .nav-links { flex-direction: column; gap: 0.75rem; }
    .header-cta { text-align: center; }
    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-links { gap: 1.25rem; }
    .bottom-cta-secondary { margin-left: 0; margin-top: 0.75rem; }
}
@media (max-width: 640px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .bottom-cta { padding: 3.5rem 0; }
    .bottom-cta-btn { padding: 1rem 2rem; font-size: 1rem; }
    .bottom-cta-secondary { padding: 1rem 1.75rem; font-size: 0.9375rem; }
}
