/*
 * zlca.css — Zero Limits Consulting shared stylesheet
 * Single source of truth for all zerolimitsconsulting.ca pages.
 * Provides :root vars, reset, shared components (header, footer, eyebrow, hero, buttons, CTA band).
 * Individual pages add only page-specific component CSS in a local <style> block.
 * NEVER redeclare :root inline in individual pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300;400;500;700;900&display=swap');

/* ── TOKENS ─────────────────────────────── */
:root {
    --ink:          #080808;
    --smoke:        #111111;
    --ash:          #1a1a1a;
    --panel:        #161616;
    --accent:       #c2c5ce;
    --accent-light: #d5d8e0;
    --accent-line:  rgba(194, 197, 206, 0.10);
    --accent-dim:   rgba(194, 197, 206, 0.06);
    --accent-glow:  rgba(194, 197, 206, 0.04);
    --white:        #ffffff;
    --muted:        rgba(255, 255, 255, 0.40);
    --faint:        rgba(255, 255, 255, 0.07);
    --sans:         'Kumbh Sans', system-ui, sans-serif;
    --serif:        'Kumbh Sans', system-ui, sans-serif;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--ink);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.28;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
main { flex: 1; }

/* ── HEADER / NAV ────────────────────────── */
header {
    padding: 0 6%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent-line);
    position: sticky; top: 0;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}

.header-logo {
    height: 38px;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
}

/* Index uses <ul class="header-nav">, inner pages use <nav> */
.header-nav,
nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.header-nav a,
nav a {
    font-size: 0.70rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active,
nav a:hover,
nav a.active { color: var(--white); }

.header-nav .nav-cta,
nav .nav-cta {
    color: var(--accent) !important;
    border: 1px solid rgba(194, 197, 206, 0.25);
    padding: 0.45rem 1.1rem;
    transition: all 0.2s !important;
}

.header-nav .nav-cta:hover,
nav .nav-cta:hover {
    background: var(--accent);
    color: var(--ink) !important;
}

/* ── EYEBROW ─────────────────────────────── */
.eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.eyebrow::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* Index hero has eyebrow centered with lines on both sides */
.eyebrow--center {
    justify-content: center;
    margin-bottom: 2rem;
}

.eyebrow--center::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
    padding: 7rem 6% 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--accent-line);
}

.page-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(194,197,206,0.04) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.page-hero h1 em { font-style: italic; color: var(--accent); }

.page-hero .tagline {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.9;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    padding: 0.9rem 2.25rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-accent:hover {
    background: var(--accent-light);
    color: var(--ink);
    transform: translateY(-1px);
}

.btn-silver {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    padding: 0.9rem 2rem;
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-silver:hover {
    background: var(--accent-light);
    color: var(--ink);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    color: var(--muted);
    padding: 0.9rem 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
    margin-left: 1rem;
}

.btn-ghost:hover { color: var(--white); }

/* ── CTA BAND ────────────────────────────── */
.cta-band {
    padding: 5rem 6%;
    text-align: center;
    background: var(--smoke);
    border-top: 1px solid var(--accent-line);
    border-bottom: 1px solid var(--accent-line);
}

.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band p { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }

/* ── FOOTER ──────────────────────────────── */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 6%;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.18);
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copy a:hover { color: var(--accent); }

.footer-links {
    display: flex;
    gap: 1.5rem;
}

footer p,
footer > a {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

footer > a:hover,
.footer-links a:hover { color: var(--accent); }

/* Admin links (index only) */
.admin-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.admin-link {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s var(--ease);
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
}

.admin-link:hover {
    color: rgba(194, 197, 206, 0.55);
    border-bottom-color: rgba(194, 197, 206, 0.2);
}

.admin-link svg {
    width: 0.7rem; height: 0.7rem;
    stroke: currentColor; fill: none; stroke-width: 1.5;
}

.admin-sep {
    width: 1px; height: 14px;
    background: rgba(255, 255, 255, 0.08);
}

/* Closing line (services/about) */
.closing-line {
    padding: 2.5rem 6%;
    text-align: center;
    border-top: 1px solid rgba(194, 197, 206, 0.07);
}

.closing-line p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    header { padding: 0 4%; }
    .header-nav { display: none; }
    nav a:not(.nav-cta) { display: none; }
    nav { gap: 1.25rem; }
    footer { flex-direction: column; align-items: center; text-align: center; }
    .admin-links { justify-content: center; }
    .footer-links { justify-content: center; }
}
