/*
 * SpeedX Food — Institutional CSS
 * Shared styles for all multi-page institutional pages
 * Consistent with index.html design system
 */

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

:root {
    --p:        #e11d48;
    --p-dark:   #be123c;
    --bg:       #0b0f19;
    --surface:  #131929;
    --surface2: #1a2236;
    --border:   rgba(255,255,255,0.08);
    --text-p:   #f1f5f9;
    --text-s:   #94a3b8;
    --yellow:   #f59e0b;
    --success:  #10b981;
    --radius:   16px;
    --shadow:   0 10px 40px rgba(0,0,0,0.35);
    --font:     'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-p);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--p); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--p-dark); }
img { max-width: 100%; display: block; }
main { flex: 1; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,15,25,0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.main-header .container { height: 68px; display: flex; align-items: center; justify-content: space-between; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.logo h1 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-p);
    letter-spacing: -0.5px;
}
.logo h1 span { color: var(--p); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-s);
    padding: 7px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-p);
    background: rgba(255,255,255,0.07);
}
.nav-links a.nav-highlight {
    color: var(--yellow);
    font-weight: 700;
}
.nav-cta {
    background: var(--p) !important;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--p-dark) !important; }

.dark-toggle {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
    color: var(--text-p);
}
.dark-toggle:hover { background: rgba(255,255,255,0.12); }

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-p);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── Page Hero ───────────────────────────────────────────────── */
.page-hero {
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225,29,72,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p);
    background: rgba(225,29,72,0.1);
    border: 1px solid rgba(225,29,72,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text-p);
    margin-bottom: 20px;
}
.page-hero h1 em {
    font-style: normal;
    color: var(--p);
}
.page-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-s);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--p), var(--p-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(225,29,72,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(225,29,72,0.4); color: white; }
.btn-secondary {
    background: rgba(255,255,255,0.07);
    color: var(--text-p);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--text-p); }
.btn-outline {
    background: transparent;
    color: var(--p);
    border: 2px solid var(--p);
}
.btn-outline:hover { background: var(--p); color: white; }

/* ─── Section ─────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-p);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-s);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 50px;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── Cards ───────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(225,29,72,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: block;
}
.card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-p);
    margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--text-s); line-height: 1.7; }

/* ─── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin: 60px 0;
}
.stat-item {
    background: var(--surface);
    padding: 32px 24px;
    text-align: center;
}
.stat-value {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--p);
    letter-spacing: -2px;
    display: block;
}
.stat-label { font-size: 13px; color: var(--text-s); margin-top: 4px; font-weight: 600; }

/* ─── Steps / Process ─────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    counter-reset: steps;
}
.step-item { position: relative; }
.step-number {
    counter-increment: steps;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--p), var(--p-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}
.step-item h4 { font-size: 16px; font-weight: 800; color: var(--text-p); margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-s); line-height: 1.6; }

/* ─── FAQ / Accordion ─────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(225,29,72,0.3); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-p);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-arrow { color: var(--p); font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
    color: var(--text-s);
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ─── CTA Section ─────────────────────────────────────────────── */
.cta-section {
    margin: 40px 24px 80px;
    background: linear-gradient(135deg, var(--surface) 0%, #1a0a14 100%);
    border: 1px solid rgba(225,29,72,0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(225,29,72,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 14px; }
.cta-section p { font-size: 1rem; color: var(--text-s); max-width: 500px; margin: 0 auto 32px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.main-footer {
    background: #060a12;
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-s); line-height: 1.7; max-width: 260px; }
.footer-brand small { display: block; margin-top: 14px; font-size: 11px; color: rgba(148,163,184,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-s); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-s); font-weight: 500; }
.footer-col ul li a:hover { color: var(--text-p); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-s); }
.footer-bottom a { font-size: 13px; color: var(--text-s); }
.footer-bottom a:hover { color: var(--text-p); }

/* ─── Tags / Badges ───────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.tag-red   { background: rgba(225,29,72,0.12); color: var(--p); border: 1px solid rgba(225,29,72,0.25); }
.tag-green { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.tag-yellow { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }

/* ─── Divider ─────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(11,15,25,0.98); padding: 20px; border-bottom: 1px solid var(--border); gap: 4px; z-index: 99; }
    .hamburger { display: flex; }
    .main-header .container { position: relative; }
    .page-hero { padding: 70px 20px 60px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .section { padding: 60px 20px; }
    .cta-section { padding: 40px 24px; }
}

/* ─── Dark mode toggle (light variant) ───────────────────────── */
body.light-mode {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface2: #f1f5f9;
    --border: rgba(0,0,0,0.08);
    --text-p: #0f172a;
    --text-s: #64748b;
}
