/* ==========================================================================
   Nkhani Za Africa — Lara Scanner
   Warm charcoal / gold / deep-red brand. Realsee architecture, African identity.
   ========================================================================== */

:root {
    /* Brand palette */
    --gold: #c8a24a;
    --gold-bright: #e0b44c;
    --gold-dark: #a9863a;
    --red: #9b2226;
    --red-dark: #7a1e1e;

    /* Neutrals (warm) */
    --black: #0e0b08;
    --charcoal: #1a140e;
    --bg: #fdfbf6;
    --sand: #f5efe3;
    --border: #e7decb;
    --text: #3a322a;
    --muted: #8a7e6c;
    --on-dark: #f5efe3;

    /* Signature gradient — our answer to Realsee's navy glow */
    --hero-gradient: radial-gradient(120% 120% at 50% 0%, #3a1410 0%, #1a140e 60%, #0e0b08 100%);

    /* Spacing scale (8px base) */
    --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
    --s-5: 48px; --s-6: 64px; --s-7: 96px;

    /* Radius */
    --r-sm: 6px;
    --r-lg: 12px;

    /* Shadows (warm-tinted) */
    --shadow-card: 0 2px 8px rgba(30, 20, 10, .10);
    --shadow-hover: 0 12px 28px rgba(30, 20, 10, .18);

    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: "Sora", "Inter", sans-serif;
    line-height: 1.15;
    color: var(--charcoal);
    margin: 0 0 var(--s-2);
}

h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }

p { margin: 0 0 var(--s-2); }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

/* Eyebrow — the signature brand move */
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: var(--s-1);
}

section { padding-block: var(--s-7); }
@media (max-width: 700px) { section { padding-block: var(--s-5); } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-hover); color: var(--charcoal); }

.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: transparent;
    transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
    background: rgba(14, 11, 8, .92);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-card);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-1); text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-family: "Sora", sans-serif; font-weight: 700; color: var(--on-dark); font-size: 18px; }
.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav a { color: var(--on-dark); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--gold-bright); text-decoration: none; }
.nav a.btn-primary { color: var(--charcoal); }

@media (max-width: 640px) {
    .brand-name { display: none; }
    .nav { gap: var(--s-2); }
    .nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    background: var(--hero-gradient);
    color: var(--on-dark);
    padding-top: 160px;
    padding-bottom: var(--s-7);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; }
.hero .lead { font-size: 20px; color: var(--sand); max-width: 56ch; margin: var(--s-3) auto var(--s-4); }
.hero .cta-row { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-bright); }

/* Stat strip */
.stat-strip {
    background: var(--charcoal);
    color: var(--sand);
    padding-block: var(--s-3);
}
.stat-strip .container { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Sora", sans-serif; font-size: 26px; color: var(--gold-bright); }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 60ch; margin: 0 auto var(--s-5); }
.section-head p { color: var(--muted); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }
.service-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--s-4);
    box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card .icon {
    width: 48px; height: 48px; border-radius: var(--r-sm);
    background: var(--sand); color: var(--gold-dark);
    display: grid; place-items: center; margin-bottom: var(--s-2); font-size: 24px;
}

/* ---------- Tour showcase grid ---------- */
.tabs { display: flex; gap: var(--s-1); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.tab {
    padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border);
    background: transparent; color: var(--text); font-weight: 500; font-size: 14px;
    cursor: pointer; text-decoration: none;
}
.tab:hover { border-color: var(--gold); text-decoration: none; }
.tab.active { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }

.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.tour-card {
    position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s; background: var(--charcoal);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.tour-card .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.tour-card .thumb-fallback {
    aspect-ratio: 16 / 9; display: grid; place-items: center;
    background: var(--hero-gradient); color: var(--gold); font-family: "Sora", sans-serif;
}
.tour-card .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14, 11, 8, .85), transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-3);
    opacity: 0; transition: opacity .2s;
}
.tour-card:hover .scrim { opacity: 1; }
.tour-card .scrim h3 { color: #fff; margin: 0; font-size: 18px; }
.tour-card .scrim .loc { color: var(--sand); font-size: 13px; }
.tour-card .tag {
    position: absolute; top: var(--s-2); left: var(--s-2);
    background: rgba(14, 11, 8, .7); color: var(--gold-bright);
    font-size: 12px; padding: 4px 10px; border-radius: var(--r-sm);
    text-transform: uppercase; letter-spacing: .05em;
}
.tour-card .play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.8);
    width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
    color: var(--charcoal); display: grid; place-items: center; font-size: 22px;
    opacity: 0; transition: opacity .2s, transform .2s;
}
.tour-card:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Responsive iframe embed */
.embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--r-lg); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Alternating feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img, .feature-media .embed { border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: var(--s-4); } .feature.reverse .feature-media { order: 0; } }

/* Spec cards */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.spec { background: var(--sand); border-radius: var(--r-sm); padding: var(--s-2); text-align: center; }
.spec b { display: block; font-family: "Sora", sans-serif; font-size: 22px; color: var(--gold-dark); }
.spec span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero-gradient); color: var(--on-dark); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sand); max-width: 50ch; margin-inline: auto; }

/* ---------- Forms ---------- */
.form { max-width: 560px; margin-inline: auto; display: grid; gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select {
    padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
    font: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, .2);
}
.alert { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); margin-bottom: var(--s-3); }
.alert-error { background: #fbeaea; color: var(--red-dark); border: 1px solid #f0caca; }
.alert-success { background: #eaf6ec; color: #1f6b34; border: 1px solid #cce8d2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--sand); padding-top: var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--s-4); padding-bottom: var(--s-5); }
.footer-logo { height: 56px; margin-bottom: var(--s-2); }
.footer-tagline { color: var(--muted); max-width: 30ch; }
.footer-col h4 { color: var(--gold-bright); font-size: 15px; margin-bottom: var(--s-2); }
.footer-col a, .footer-loc { display: block; color: var(--sand); margin-bottom: 8px; font-size: 15px; }
.footer-col a:hover { color: var(--gold-bright); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(245, 239, 227, .1); padding-block: var(--s-3); font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-hover);
    transition: transform .15s;
}
.whatsapp-fab:hover { transform: scale(1.08); text-decoration: none; }

/* ---------- Admin ---------- */
.admin-shell { padding-top: 100px; min-height: 60vh; }
.admin-bar { background: var(--charcoal); }
.admin-bar .container { display: flex; align-items: center; gap: var(--s-3); height: 60px; }
.admin-bar a { color: var(--sand); font-size: 14px; font-weight: 500; }
.admin-bar a:hover { color: var(--gold-bright); text-decoration: none; }
.admin-bar .spacer { flex: 1; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-3); box-shadow: var(--shadow-card); }
.stat-card b { display: block; font-family: "Sora", sans-serif; font-size: 32px; color: var(--gold-dark); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th { background: var(--sand); font-family: "Sora", sans-serif; }
.login-card { max-width: 400px; margin: 120px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-card); }

/* Fade-up on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }
