/* =============================================
   QUICKFLOW — SHARED STYLES
   Shared across all pages: variables, reset,
   typography, nav, footer, buttons, utilities.
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand colours — Flow palette */
    --blue-primary: #2D5BFF;
    --blue-dark: #1B3FCC;
    --blue-deeper: #1B3FCC;
    --blue-light: #6E8BFF;
    --pulse: #14C26A;

    /* Neutrals */
    --ink: #0B1330;
    --ink-2: #1A2447;
    --sand: #FAFAF7;
    --paper: #F1F1EC;
    --mid: #6B7080;
    --soft: #E4E5EB;
    --line: #D8DAE2;
    --white: #ffffff;

    /* Gradients */
    --gradient: linear-gradient(135deg, #2D5BFF 0%, #6E8BFF 100%);
    --gradient-subtle: linear-gradient(135deg, #E8EDFF 0%, #D6DEFC 100%);

    /* Text */
    --text-primary: #0B1330;
    --text-secondary: #4a5568;
    --text-light: #6B7080;

    /* Backgrounds */
    --bg-light: #FAFAF7;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Radii */
    --radius: 10px;
    --radius-lg: 18px;

    /* Layout */
    --max-width: 1200px;

    /* Type */
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--sand);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    background: none;
    padding: 0;
    margin-bottom: 12px;
}
.section-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    margin-right: 12px;
}
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(45,91,255,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45,91,255,0.45);
}
.btn-outline {
    background: rgba(45,91,255,0.06);
    color: var(--blue-dark);
    border: 2px solid var(--blue-primary);
}
.btn-outline:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}
.btn-outline-light {
    background: rgba(255,255,255,0.08);
    color: var(--sand);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--blue-primary);
    box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-whatsapp {
    background: var(--blue-light);
    color: #fff;
    box-shadow: 0 4px 20px rgba(110,139,255,0.35);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(110,139,255,0.45);
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,250,247,0.85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--soft);
    transition: all 0.3s ease;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.nav-logo { height: 42px; width: auto; display: none; }
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-lockup,
.footer-lockup {
    height: 48px;
    width: auto;
    display: block;
}
.footer-lockup { margin-bottom: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--blue-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta .btn {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
}
.nav-cta .btn-primary {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.nav-cta .btn-primary::after {
    display: none;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; -webkit-tap-highlight-color: transparent; }
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.9);
    padding: 72px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}
.footer-logo { height: 38px; width: auto; }
.footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.footer ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    font-size: 16px;
}
.footer-social a:hover { background: var(--blue-primary); color: #fff; }

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SHARED RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Nav */
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
        z-index: 999;
    }
    .nav-links.open .nav-cta { width: 100%; }
    .nav-links.open .nav-cta .btn { width: 100%; justify-content: center; }
    .nav-lockup,
    .footer-lockup { height: 40px; }

    /* Footer */
    .footer { padding: 48px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand p { max-width: none; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    /* General */
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    .container { padding: 0 16px; }
}

@media (max-width: 400px) {
    .nav-lockup,
    .footer-lockup { height: 34px; }
    .container { padding: 0 12px; }
}
