/* ══════════════════════════════════════════════
   DishNet Africa — Design System v1.0
   Shared across all pages
   ══════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --surface-alt: #F3F2EE;
    --text: #1A1A1A;
    --text-secondary: #5A5A58;
    --accent: #C8102E;
    --accent-dark: #A00D24;
    --accent-glow: rgba(200, 16, 46, 0.12);
    --green: #22C55E;
    --green-glow: rgba(34,197,94,0.12);
    --blue: #0EA5E9;
    --blue-glow: rgba(14,165,233,0.10);
    --border: #E5E4E0;
    --dark-bg: #0B1120;
    --dark-surface: #131B2E;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 100px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ── Typography ── */
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* ── Badges ── */
.badge-label { display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 20px; }
.badge-accent { color: var(--accent); background: var(--accent-glow); }
.badge-blue { color: var(--blue); background: var(--blue-glow); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: var(--radius-pill); transition: var(--transition); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: #f5f5f5; transform: translateY(-1px); }
.btn-ghost-white { border: 1.5px solid rgba(255,255,255,0.2); color: #fff; }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease-out both; }
.fd1 { animation-delay: 0.08s; } .fd2 { animation-delay: 0.16s; } .fd3 { animation-delay: 0.24s; } .fd4 { animation-delay: 0.32s; }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 0; }
.header.transparent { background: transparent; border-bottom-color: transparent; }
.header.scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 38px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--text); transition: var(--transition); }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { font-family: var(--font-display); font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: var(--radius-pill); background: var(--accent); color: #fff; transition: var(--transition); }
.header-cta:hover { background: var(--accent-dark); }
.mobile-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); position: relative; }
.mobile-toggle span::before, .mobile-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); }
.mobile-toggle span::before { top: -7px; } .mobile-toggle span::after { top: 7px; }
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 200; flex-direction: column; padding: 100px 32px 32px; gap: 8px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 22px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav-close { position: absolute; top: 20px; right: 24px; font-size: 28px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 90px 0 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); padding: 16px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-inner a { transition: var(--transition); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Cards ── */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Footer ── */
.footer { background: var(--dark-bg); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 300px; }
.footer-brand img { height: 36px; filter: brightness(10); }
.footer h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 13px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* ── WhatsApp Float ── */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--transition); }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Page Hero (generic) ── */
.page-hero { padding: 130px 0 60px; background: linear-gradient(160deg, #fff 0%, var(--surface-alt) 100%); text-align: center; position: relative; }
.page-hero::after { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; position: relative; z-index: 2; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; position: relative; z-index: 2; }

/* ── Dark CTA Banner ── */
.cta-banner { padding: 80px 0; }
.cta-card { background: var(--dark-bg); border-radius: 20px; padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(200,16,46,0.2) 0%, transparent 60%); pointer-events: none; }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-card p { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-card .btn { position: relative; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 20px 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--text-secondary); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding-bottom: 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 500px; }

/* ── Contact Form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; transition: var(--transition); background: var(--bg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Prose Content ── */
.prose { max-width: 800px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
.prose strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav, .nav-actions { display: none; }
    .mobile-toggle { display: flex; }
    .section { padding: 60px 0; }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero { padding: 120px 0 48px; }
}
@media (max-width: 480px) {
    .card-grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
