﻿/* OrganiCode design system. Shares its palette and type with warrenpridgeon.co.za. */

:root {
    --bg-base: #05070D;
    --bg-panel: #0B1020;
    --bg-panel-2: #121A33;
    --ink: #E8EEF7;
    --ink-dim: #9DB0CC;
    --accent: #1F8BFF;
    --accent-light: #4FB0FF;
    --accent-deep: #0A4FB0;
    --success: #2ED47A;
    --warn: #FFB020;
    --danger: #FF5470;
    --whatsapp: #25D366;
    --border: rgba(79, 176, 255, 0.18);
    --border-strong: rgba(79, 176, 255, 0.35);
    --accent-shadow: 0 0 24px rgba(31, 139, 255, 0.35);

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

    --maxw: 1200px;
    --readw: 760px;
    --radius: 14px;
    --radius-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -0.008em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 0.6em; }
h3 { font-size: 1.3rem; margin: 0 0 0.5em; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ink); }
/* Underline links in running text. Buttons, nav and card labels opt out. */
p a:not(.btn), li a:not(.btn), .faq-item a { text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0 0 0.7rem;
    display: inline-block;
}

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

/* Inline icons */
.icon {
    display: inline-block; vertical-align: middle; width: 1em; height: 1em;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.heading-icon { color: var(--accent-light); margin-right: 0.55rem; display: inline-flex; vertical-align: -0.06em; }
.heading-icon .icon { width: 0.8em; height: 0.8em; stroke-width: 1.5; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
    padding: 0.8rem 1.5rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    color: #fff; box-shadow: var(--accent-shadow);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 0 32px rgba(79, 176, 255, 0.55); }
.btn-primary:disabled { opacity: 0.6; transform: none; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(31, 139, 255, 0.1); color: var(--ink); transform: translateY(-2px); }

/* Header / nav */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.brand:hover { color: var(--ink); }
/* White halo keeps the black wordmark letters legible on the dark header. */
.brand-mark {
    height: 46px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 2px rgba(255, 255, 255, 0.55))
            drop-shadow(0 0 12px rgba(31, 139, 255, 0.45));
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-dim); font-weight: 500; font-size: 0.96rem; position: relative; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:not(.nav-cta).active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.nav-cta {
    padding: 0.55rem 1.2rem; border-radius: 8px; color: #fff !important;
    font-family: var(--font-display); font-weight: 600;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    box-shadow: var(--accent-shadow);
}
.nav-cta:hover { box-shadow: 0 0 26px rgba(79, 176, 255, 0.5); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex; align-items: center;
    overflow: hidden;
    padding: 3rem 0 2.5rem;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(760px 520px at 82% 18%, rgba(31, 139, 255, 0.13), transparent 66%);
}
/* Matrix rain canvas. The mask keeps it clear of the headline. */
#matrixCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 1) 78%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 1) 78%);
}
@media (max-width: 800px) {
    #matrixCanvas { opacity: 0.28; }
}
/* min-width:0 is load-bearing: without it the headline clips on narrow screens. */
.hero .container { min-width: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--accent-light); }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-dim); max-width: 680px; margin: 0 0 2.2rem; }
.hero-lede strong { color: var(--ink); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

/* Staggered entrance for the hero elements. */
.slide-up { opacity: 0; transform: translateY(18px); animation: slideUp 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.slide-up.d1 { animation-delay: 0.06s; }
.slide-up.d2 { animation-delay: 0.14s; }
.slide-up.d3 { animation-delay: 0.2s; }
.slide-up.d4 { animation-delay: 0.32s; }
@keyframes slideUp { to { opacity: 1; transform: none; } }

/* Trust strip */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.6rem;
    padding: 1rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(31, 139, 255, 0.04);
}
.trust-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    white-space: nowrap;
}
.trust-names { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.trust-names span { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.98rem; opacity: 0.85; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.2rem, 5vw, 4rem) 0; }
/* The heading runs the container width: at 42px that is about 55 characters, a fine measure that
   needs no cap of its own. The lead does need a cap (full width at body sizes is nearer 120
   characters a line, and the eye loses its place on the return sweep), but it is set larger than
   ordinary body copy, which buys a wider box at the same character count: about 72 characters at
   820px. Balanced wrapping splits a two-line heading or lead into even lines instead of a full
   line plus a stub. */
.section-head { margin-bottom: 2.6rem; }
.section-head h1, .section-head h2 { text-wrap: balance; }
.section-head .lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; max-width: 820px; text-wrap: balance; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.6), transparent); }

/* Generic panel */
.panel {
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
}

/* Card grid / tiles */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.card-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.3rem; }
.tile {
    display: block; position: relative; padding: 1.6rem; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
    border: 1px solid var(--border); color: var(--ink); overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); color: var(--ink); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32); }
.tile .tile-icon { color: var(--accent-light); margin-bottom: 0.85rem; display: block; line-height: 0; }
.tile .tile-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.tile h3 { margin-bottom: 0.3rem; }
.tile p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.tile .tile-go { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-top: 0.9rem; display: inline-block; }
.case-card:hover .tile-go, .post-card:hover .tile-go, a.tile-go:hover {
    text-decoration: underline; text-underline-offset: 3px;
}

/* Case study cards (image-topped) */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.case-grid.four { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.case-card {
    display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--border);
    color: var(--ink);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--border-strong); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.case-card .cover { height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.case-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.case-card h3 { margin-bottom: 0.4rem; }
.case-card .excerpt { color: var(--ink-dim); font-size: 0.95rem; flex: 1; margin-bottom: 0.9rem; }

/* Chips / tags */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.chip {
    font-size: 0.78rem; letter-spacing: 0.01em;
    padding: 0.28rem 0.7rem; border-radius: 4px; border: 1px solid var(--border);
    color: var(--accent-light); background: rgba(31, 139, 255, 0.07); display: inline-block;
}
.chip-green { color: var(--success); border-color: rgba(46, 212, 122, 0.35); background: rgba(46, 212, 122, 0.07); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.product-card {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    padding: 1.7rem; border-radius: var(--radius); color: var(--ink);
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--border);
}
.product-card h3 { font-size: 1.55rem; margin-bottom: 0.2rem; }
.product-tagline { font-size: 0.95rem; font-weight: 600; color: var(--accent-light); margin-bottom: 1rem; }
.product-card p { color: var(--ink-dim); font-size: 0.95rem; }
.product-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; color: var(--ink-dim); font-size: 0.95rem; flex: 1; }
.product-card ul li { padding: 0.25rem 0 0.25rem 1.1rem; position: relative; }
.product-card ul li::before {
    content: ""; position: absolute; left: 0; top: 0.85em;
    width: 5px; height: 5px; background: var(--accent-light);
}
.product-status {
    position: absolute; top: 1.1rem; right: 1.1rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    padding: 0.25rem 0.6rem; border-radius: 4px; border: 1px solid;
    color: var(--success); border-color: rgba(46, 212, 122, 0.4); background: rgba(46, 212, 122, 0.08);
}
/* Status chip for unreleased products. */
.product-status.soon {
    color: var(--ink-dim); border-color: var(--border); background: rgba(157, 176, 204, 0.06);
}
/* Product identity row: real logo for live products, icon wordmark for the rest.
   Ported from the hub (warrenpridgeon.co.za Work page) so the pair match. */
.product-logo { height: 52px; display: flex; align-items: center; margin: 0 0 0.9rem; }
.product-logo img { max-height: 100%; max-width: 210px; width: auto; object-fit: contain; }
.product-wordmark { height: 52px; display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.9rem; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; }
.product-wordmark .accent { color: var(--accent-light); }
.product-wordmark .wm-icon { color: var(--accent-light); display: inline-flex; line-height: 0; }
.product-wordmark .wm-icon .icon { width: 28px; height: 28px; }
/* Cards are deep-link targets from blog posts; keep anchors clear of the sticky header. */
.product-card[id] { scroll-margin-top: 96px; }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.value-card {
    padding: 1.6rem; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
    border: 1px solid var(--border);
}
.value-card h3 { color: var(--accent-light); font-size: 1.15rem; margin-bottom: 0.45rem; }
.value-card p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }

/* Founder quote */
.founder-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.founder-quote blockquote {
    font-family: var(--font-display); font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 600; line-height: 1.35; color: var(--ink); margin: 0 0 1.2rem; font-style: italic;
}
.founder-quote blockquote .accent { color: var(--accent-light); }
.founder-quote cite {
    font-family: var(--font-mono); font-style: normal; font-size: 0.85rem; color: var(--ink-dim);
    letter-spacing: 0.05em;
}
.founder-quote cite a { color: var(--accent-light); }

/* Process steps */
.process-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 760px; }
.process-list li {
    counter-increment: step; position: relative; padding: 1.1rem 1.3rem 1.1rem 3.4rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(11, 16, 32, 0.55);
}
.process-list li::before {
    content: counter(step) ".";
    position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent);
}
.process-list li strong { font-family: var(--font-display); color: var(--ink); }
.process-list li span { color: var(--ink-dim); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink-dim); margin: 0; font-size: 0.98rem; }
.faq-item p a { color: var(--accent-light); }

/* Interior page hero */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 0.5rem; }
.page-hero h1 { margin-bottom: 0.3em; text-wrap: balance; }
.page-hero .lead { max-width: 720px; }

/* Breadcrumbs */
.crumbs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-dim); margin: 0 0 1.2rem; }
.crumbs a { color: var(--ink-dim); }
.crumbs a:hover { color: var(--accent-light); }
.crumbs .sep { margin: 0 0.45rem; color: var(--accent-deep); }

/* Media */
.media { margin: 1.8rem 0; }
.media img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.media figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); margin-top: 0.6rem; }
.media.portrait { max-width: 420px; }

/* Blog / post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card {
    display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.post-card .cover { display: block; height: 190px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.post-card h3 { margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-light); }
.post-card .excerpt { color: var(--ink-dim); font-size: 0.96rem; flex: 1; }
.cat-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-light); }

/* Article reading view */
.article { max-width: var(--readw); margin: 0 auto; }
.article-header { margin-bottom: 2rem; }
.article-cover { width: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; display: block; }
.article-body { font-size: 1.08rem; }
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.8em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-body pre { background: #060a14; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.9rem; }
.article-body code, .prose code { font-family: var(--font-mono); font-size: 0.9em; color: var(--accent-light); }
.article-body pre code { color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 0.4em 1.2em; color: var(--ink-dim); background: rgba(31, 139, 255, 0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.5em 0.8em; text-align: left; }
.article-footer { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.4rem; }

.prose { max-width: var(--readw); }
.prose p, .prose ul, .prose ol { color: var(--ink-dim); }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose strong { color: var(--ink); }
.prose blockquote {
    border-left: 3px solid var(--accent); margin: 1.3em 0; padding: 0.6em 1.3em;
    color: var(--ink); background: rgba(31, 139, 255, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
}

/* Share row */
.share-row { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.share-row a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-panel); color: var(--ink-dim);
    transition: 0.18s ease;
}
.share-row a:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }
.share-row svg { width: 17px; height: 17px; fill: currentColor; }
.share-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim); margin: 0 0 0.8rem; }

/* Forms */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-dim); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    background: var(--bg-base); border: 1px solid var(--border); color: var(--ink);
    font-family: var(--font-body); font-size: 1rem; transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 139, 255, 0.15); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field ::placeholder { color: rgba(157, 176, 204, 0.55); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row-2 { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; }
.field-error, .text-danger { color: var(--danger); font-size: 0.85rem; }

.flash { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid; }
.flash-success { background: rgba(46, 212, 122, 0.1); border-color: rgba(46, 212, 122, 0.4); color: var(--success); }
.flash-error { background: rgba(255, 84, 112, 0.1); border-color: rgba(255, 84, 112, 0.4); color: var(--danger); }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-lines li { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; color: var(--ink-dim); }
.contact-lines .icon { color: var(--accent-light); width: 19px; height: 19px; flex: 0 0 auto; }
.contact-lines a { color: var(--ink); }
.contact-lines a:hover { color: var(--accent-light); }
.social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.social-row a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-panel); color: var(--ink-dim);
    transition: 0.18s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 3rem 0 1.5rem; background: rgba(11, 16, 32, 0.4); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 1.4fr; gap: 2rem; }
.footer-brand p { color: var(--ink-dim); font-size: 0.92rem; margin-top: 0.8rem; }
.footer-brand .made-in-sa { height: 84px; width: auto; margin-top: 0.9rem; opacity: 0.9; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-social a { color: var(--ink-dim); font-size: 0.95rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--accent-light); }
.footer-head { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 0.4rem; }
.footer-cta-lead { color: var(--ink-dim); font-size: 0.92rem; margin: 0 0 0.8rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--ink-dim); font-size: 0.85rem; }
.footer-base a { color: var(--ink-dim); }
.footer-base a:hover { color: var(--accent-light); }

/* Status / error pages */
.status-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.status-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; color: var(--accent); line-height: 1; text-shadow: var(--accent-shadow); }

/* Preview banner (admin post preview) */
.preview-banner {
    position: sticky; top: 0; z-index: 1080;
    background: var(--warn); color: #05070D; text-align: center;
    padding: 10px; font-weight: 600; letter-spacing: 0.02em;
    font-family: var(--font-display);
}

/* Tools / calculators */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.calc-block { text-align: center; }
.calc-block h3 { color: var(--accent-light); font-size: 1.05rem; margin-bottom: 1.1rem; }
.calculator { margin-bottom: 1.2rem; }
.calculator label { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); margin-bottom: 0.25rem; letter-spacing: 0.04em; }
.calculator input[type="number"] {
    margin: 0.25rem 0; padding: 0.65rem 0.9rem; font-size: 1rem;
    color: var(--ink); background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius-sm);
    width: 100%; max-width: 220px;
}
.calculator input[type="number"]:focus { outline: none; border-color: var(--accent); }
.calculator output {
    margin: 0.25rem 0 0.6rem; padding: 0.65rem 0.9rem; font-size: 1rem; font-family: var(--font-mono);
    border: 1px solid var(--border); border-radius: var(--radius-sm); display: inline-block;
    width: 100%; max-width: 220px; color: var(--accent-light); background: rgba(31, 139, 255, 0.06);
}
.estimator-result {
    margin-top: 1.6rem; padding: 1.6rem; border-radius: var(--radius);
    background: rgba(31, 139, 255, 0.07); border: 1px solid var(--border-strong);
    display: none;
}
.estimator-result h3 { color: var(--accent-light); }

/* Utilities */
/* Booking CTA band */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
}
.cta-band p { margin: 0; color: var(--ink-dim); font-size: 1.08rem; }
.cta-band p strong { color: var(--ink); }
.cta-band .btn { flex: 0 0 auto; }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.text-dim { color: var(--ink-dim); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-dim); }

/* Responsive */
@media (max-width: 1000px) and (min-width: 801px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
        gap: 0; background: var(--bg-panel); border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px;
    }
    .site-nav.open { max-height: 480px; padding: 1rem 24px 1.5rem; }
    .site-nav a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
    .nav-cta { margin-top: 0.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 0; padding: 2.5rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .slide-up { opacity: 1; transform: none; animation: none; }
}
