/* --- 1. DESIGN TOKENS --- */
:root {
    /* base — deep luxury navy */
    --bg-primary: #0a1622;
    --bg-secondary: #0f2032;
    --bg-tertiary: #16304a;
    --text-primary: #f0ece4;
    --text-muted: #9aa9bd;

    /* premium signature — warm gold/copper */
    --accent: #c9a25e;
    --accent-hover: #ddb978;
    --accent-dark: #8a6d3b;
    --accent-glow: rgba(201, 162, 94, 0.16);
    --text-on-accent: #1a1206;   /* dark text on bright gold (dark theme) */

    /* retained secondary (blue) for subtle accents/links if needed */
    --accent-secondary: #3d8ecf;

    --border-color: rgba(201, 162, 94, 0.16);
    --success: #3fb950;
    --danger: #f85149;

    /* --- SPACING SCALE (1rem = 10px) --- */
    --space-xs: 0.8rem;
    --space-sm: 1.6rem;
    --space-md: 2.4rem;
    --space-lg: 3.2rem;
    --space-xl: 6.4rem;
    --space-xxl: 12.0rem;

    --section-padding: var(--space-xxl);
    --card-padding: var(--space-lg);
}

[data-theme="light"] {
    --bg-primary: #faf7f1;
    --bg-secondary: #f1ece2;
    --bg-tertiary: #e6decd;
    --text-primary: #1a1206;
    --text-muted: #5c5340;

    /* darker gold for AA contrast on light backgrounds */
    --accent: #8a6d3b;
    --accent-hover: #6f5527;
    --accent-dark: #8a6d3b;
    --accent-glow: rgba(138, 109, 59, 0.12);
    --accent-secondary: #2c6da3;
    --text-on-accent: #faf7f1;   /* light text on deep gold (light theme) */

    --border-color: rgba(138, 109, 59, 0.20);
}

/* --- UTILITY CLASSES --- */
.section-spacing {
    padding: var(--section-padding) 0;
}

.card-spacious {
    padding: var(--card-padding);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 6.4rem;
        --card-padding: 2.4rem;
    }
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

/* --- ACCESSIBILITY --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 5000;
    background: var(--accent);
    color: #1a1206;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 0 0 0.6rem 0;
}
.skip-link:focus {
    left: 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

h1 { font-size: clamp(4rem, 6vw, 6.4rem); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

/* --- 3. NAVIGATION --- */
.navbar {
    height: 8rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 2000;
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 3.6rem;
    width: auto;
    margin-right: 1rem;
}

.logo span {
    color: var(--accent);
}

.nav-back-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
    height: 2.4rem;
}

.nav-back-link:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

.nav-link {
    margin-right: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    padding: 0.5rem;
}

[data-theme="dark"] .sun,
[data-theme="light"] .moon {
    display: none;
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1.6rem 3.2rem;
    border-radius: 0.4rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-hover), var(--accent));
    color: var(--text-on-accent);
    font-weight: 700;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-glow);
}

.btn-sm {
    padding: 1rem 2rem;
    font-size: 1.3rem;
}

/* --- 5. HERO SECTION --- */
.badge {
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.6rem;
    border-radius: 5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    display: inline-block;
    font-weight: 700;
}

.hero p {
    max-width: 65rem;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.9rem;
}

.hero-actions {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 6. STATS BAR --- */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', Georgia, serif;
    display: block;
}

.stat-item .stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- 7. FEATURES / CARDS GRID --- */
.features {
    padding: 10rem 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3.2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 4rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 5.6rem;
    height: 5.6rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* --- 8. ABOUT / EXPERT SECTION --- */
.about-expert {
    padding: 10rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    font-size: 3.4rem;
    margin-bottom: 2.5rem;
}

.about-content p {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- 9. CTA / FORMS --- */
.cta-section {
    padding: 10rem 0;
}

.cta-box {
    background: var(--bg-secondary);
    padding: 7rem 4rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cta-box h2 {
    font-size: 3.4rem;
    margin-bottom: 2rem;
}

.eval-form {
    margin: 3.5rem auto 0;
    display: flex;
    gap: 1.5rem;
    max-width: 65rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.form-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eval-form input,
.eval-form select,
.eval-form textarea {
    width: 100%;
    padding: 1.8rem;
    border-radius: 0.4rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.6rem;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
}

.eval-form input:focus,
.eval-form select:focus,
.eval-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-note {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    display: block;
}

/* --- 10. PORTFOLIO --- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8rem;
    margin: 6rem 0;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    --divider-width: 3px;
    --divider-color: var(--accent);
}

.project-info {
    padding: 4rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    text-align: center;
}

.meta-label {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.meta-value {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
}

/* --- 11. INVESTMENT OPTION CARDS --- */
.invest-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.invest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.invest-card h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.invest-card ul {
    list-style: none;
    margin: 2rem 0;
}

.invest-card ul li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.invest-card ul li:last-child {
    border-bottom: none;
}

.invest-card ul li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.invest-highlight {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    padding: 2rem;
    border-radius: 0.8rem;
    text-align: center;
    margin-top: 2rem;
}

.invest-highlight .rate {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', Georgia, serif;
}

.invest-highlight .rate-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- 12. PRO-FORMA BOX --- */
.proforma-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    padding: 5rem 4rem;
    margin-top: 6rem;
}

.proforma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.proforma-item .proforma-label {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proforma-item .proforma-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.proforma-item .proforma-value.highlight {
    color: var(--accent);
}

/* --- 13. QR SPLASH PAGE --- */
.qr-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.qr-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.6rem;
    padding: 5rem 4rem;
    max-width: 56rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.qr-card h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.qr-card .project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 3rem;
}

.qr-card .project-status .pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.qr-details {
    text-align: left;
    margin: 3rem 0;
}

.qr-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.qr-detail-row .label {
    color: var(--text-muted);
}

.qr-detail-row .value {
    color: var(--accent);
    font-weight: 700;
}

/* --- 14. FOOTER --- */
.footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer h3 {
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul li {
    list-style: none;
    margin-bottom: 1.2rem;
}

.footer ul li a {
    color: var(--text-muted);
    font-size: 1.5rem;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 1.3rem;
}

/* --- 15. MEDIA QUERIES --- */
@media (max-width: 768px) {
    .about-grid,
    .footer-grid,
    .hero-actions,
    .eval-form {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .project-info {
        padding: 3rem 2rem;
    }

    .project-meta {
        grid-template-columns: 1fr 1fr;
    }

    .proforma-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PREMIUM HERO POLISH --- */
.hero {
    position: relative;
    text-align: center;
    background:
        radial-gradient(1200px 500px at 70% -10%, var(--accent-glow), transparent 60%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 10rem 0 8rem;
    overflow: hidden;
}
.hero .badge {
    color: var(--accent);
    border: 1px solid var(--accent);
    background: var(--accent-glow);
}
.hero h1 {
    font-size: clamp(4rem, 7vw, 7rem);
    margin: 2rem 0;
    line-height: 1.1;
}

/* gold gradient on key numbers */
.stat-number, .featured-stat .value, .rate {
    background: linear-gradient(120deg, var(--accent-hover), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FOUNDER BLOCK --- */
.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}
.founder-photo img {
    width: 100%;
    border-radius: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.founder-copy h2 {
    font-size: 3.4rem;
    line-height: 1.2;
    margin: 1.2rem 0 2rem;
}
.founder-points {
    list-style: none;
    margin: 2rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.founder-points li {
    padding-left: 2.4rem;
    position: relative;
    color: var(--text-muted);
}
.founder-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.7em;
    width: 0.9rem; height: 0.9rem;
    border-radius: 50%;
    background: var(--accent);
}
@media (max-width: 768px) {
    .founder-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* --- CINEMATIC DRONE VIDEO HERO --- */
.hero-video {
    position: relative;
    min-height: 92vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
}
.hero-video .hero-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* subtle gold color-grade over the footage (keeps it on-brand) */
.hero-video .hero-grade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(201,162,94,0.22), rgba(138,109,59,0.12) 50%, rgba(10,22,34,0.28));
    mix-blend-mode: soft-light;
}
.hero-video .hero-vid-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(1000px 560px at 50% 52%, rgba(10,22,34,0.45), transparent 72%),
        radial-gradient(1100px 520px at 72% 0%, var(--accent-glow), transparent 60%),
        linear-gradient(180deg, rgba(10,22,34,0.45) 0%, rgba(10,22,34,0.18) 44%, rgba(10,22,34,0.82) 100%);
}
.hero-video .hero-vid-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}
@media (max-width: 768px) {
    .hero-video { min-height: 84vh; }
}

/* ============================================================
   AUDIT FIXES (2026-05) — motion, focus, contrast, tap targets
   ============================================================ */

/* Honor prefers-reduced-motion: disable smooth scroll, animations, transitions */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visible focus ring on form controls (previously outline:none + faint glow) */
.eval-form input:focus-visible,
.eval-form select:focus-visible,
.eval-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

/* Theme toggle: meet 44px minimum touch target */
#theme-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* Required-field marker in labels */
.form-label .req { color: var(--accent); margin-left: 0.2rem; }

/* Light theme: darker red for the required asterisk (was 2.85:1 on cream) */
[data-theme="light"] { --danger: #c0392b; }

/* Hero badge + intro paragraph: keep legible over bright video frames */
.hero-video .badge,
.hero-video .hero-vid-inner p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

/* Visually-hidden text (screen-reader + crawler accessible, not shown) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
