/* ==========================================================================
   STRATEGY & DESIGN — Shared site styles (dark / clean / professional)
   Single source of truth for global chrome: tokens, typography, navigation,
   buttons, sections, cards, footer, utilities.
   Page-specific component styles live in each page's own <style> block.
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
    /* Brand */
    --accent: #ff6b35;
    --accent-hover: #ff8252;
    --accent-soft: rgba(255, 107, 53, 0.12);
    --accent-line: rgba(255, 107, 53, 0.35);

    /* Dark neutrals (layered for depth) */
    --bg: #0b0d11;            /* page base */
    --bg-alt: #12151b;        /* alternating section band */
    --bg-elev: #161922;       /* cards / raised surfaces */
    --bg-dark: #07080b;       /* footer / deepest */

    --text: #eef1f5;          /* near-white */
    --text-muted: #98a2b0;    /* secondary copy */
    --text-on-dark: #eef1f5;
    --text-on-dark-muted: #8b94a3;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

    --radius: 12px;
    --radius-lg: 18px;

    --header-h: 72px;
    --container: 1180px;
}

/* ----- Base / reset ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ----- Typography ----- */
h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-muted); }

.accent-text { color: var(--accent); }

/* Small uppercase label — used sparingly for eyebrows */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ----- Layout ----- */
.section-container,
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: 0.85rem; font-size: 1.05rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.30);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 107, 53, 0.40); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent-hover); }

/* Legacy button hooks kept so older markup still styles cleanly */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 1.7rem;
    background: var(--accent); color: #fff;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.30);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.phone-link { color: var(--accent); text-decoration: none; font-weight: 700; }

/* ----- Header / navigation ----- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(11, 13, 17, 0.78);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-login { font-size: 0.92rem; font-weight: 600; color: var(--text); text-decoration: none; }
.nav-login:hover { color: var(--accent); }

/* Mobile header + menu */
.mobile-header {
    display: none;
    position: fixed; top: 0; left: 0; right: 0;
    height: 64px; z-index: 200;
    align-items: center; justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(11, 13, 17, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.mobile-header .brand-font { color: var(--text); font-size: 1.15rem; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 2px; }
.mobile-menu {
    position: fixed; top: 64px; left: 0; right: 0;
    background: #0e1116;
    height: 0; overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    z-index: 199;
    border-bottom: 1px solid var(--border);
}
#menu-toggle { display: none; }
#menu-toggle:checked ~ .mobile-menu { height: auto; padding: 0.5rem 0 1.25rem; }
.mobile-link {
    padding: 0.9rem 1.5rem;
    font-size: 1rem; font-weight: 600;
    color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.mobile-link:hover { color: var(--accent); }

/* ----- Cards ----- */
.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent-line); }

/* ----- Shared components used across pages ----- */
/* Icon chip (feature lists, flows). Pages reference this; keep it global. */
.feat-ico {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.feat-ico svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Final call-to-action card */
.cta-band { text-align: center; }
.cta-card {
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    padding: 3.25rem 2rem;
    max-width: 760px; margin: 0 auto;
}
.cta-card p { max-width: 52ch; margin: 0.85rem auto 1.75rem; }
.cta-phone { margin-top: 1.25rem; font-size: 0.95rem; color: var(--text-muted); }

/* Comparison ("the usual way" vs us) — used by several pages */
.compare { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.compare-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.compare-heads .ch { padding: 0.2rem 1.1rem; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.ch.them { color: var(--text-muted); }
.ch.us { color: var(--accent); }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.cmp-cell { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.95rem 1.1rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; }
.cmp-cell.them { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); }
.cmp-cell.us { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.cmp-cell .mk { flex-shrink: 0; font-weight: 700; }
.cmp-cell.them .mk { color: var(--text-on-dark-muted); }
.cmp-cell.us .mk { color: var(--accent); }
@media (max-width: 600px) {
    .compare-heads { display: none; }
    .cmp-row { grid-template-columns: 1fr; gap: 0.45rem; margin-bottom: 0.55rem; }
}

/* ----- Footer ----- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem; }
.footer-brand span { color: var(--accent); }
.footer-tagline { color: var(--text-on-dark-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 24ch; }
.site-footer h4 {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-on-dark-muted); margin-bottom: 1rem; font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: var(--text-on-dark); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
}

/* ----- Scroll fade-in ----- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-on-scroll.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .fade-in-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ----- Gradient text (one accent word, used sparingly) ----- */
.gradient-text { color: var(--accent); }

/* ----- Accessibility ----- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.skip-link {
    position: absolute; top: -48px; left: 0;
    background: var(--accent); color: #fff;
    padding: 0.5rem 1rem; z-index: 10000;
    font-weight: 600; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ----- Floating CTA bar (mobile) ----- */
.floating-quote-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 998;
    background: rgba(11, 13, 17, 0.96);
    backdrop-filter: blur(14px);
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border);
}
.floating-quote-bar a {
    display: block; width: 100%; padding: 0.85rem;
    background: var(--accent); color: #fff;
    text-decoration: none; text-align: center;
    font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 0.95rem; border-radius: 10px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .site-header { display: none; }
    .mobile-header { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}
