/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Color Palette - Luxury Safari & Savannah Nights */
    --bg-base: #110e0c;
    --bg-panel: #1a1613;
    --bg-panel-alt: #231e1a;
    
    --text-main: #e8e3d9;
    --text-ivory: #fcfaf5;
    --text-muted: #a39a8e;
    
    --accent-gold: #d4af37;
    --accent-gold-hover: #e6c863;
    --accent-bronze: #cd7f32;
    --accent-amber: #ffbf00;
    
    --border-color: rgba(212, 175, 55, 0.2);
    
    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Spacing & Layout */
    --section-pad-y: 4rem;
    --section-pad-x: 1.5rem;
    --container-max: 1200px;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.safari-theme {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.heading-serif {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.heading-wide {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.subheading {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.text-gold { color: var(--accent-gold); }
.text-ivory { color: var(--text-ivory); }
.text-bronze { color: var(--accent-bronze); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-base);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   HEADER / SITE NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(35, 25, 15, 0.95) 0%, rgba(20, 15, 10, 0.85) 100%);
    border-bottom: 1px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 72px;
    transition: var(--transition);
}

.site-header.solid-nav {
    background: linear-gradient(to bottom, rgba(35, 25, 15, 1) 0%, rgba(20, 15, 10, 1) 100%);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-emblem {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-ivory);
}

.logo span {
    color: var(--accent-gold);
    font-weight: 400;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
    height: 100%;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    padding: 0.5rem 1.25rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-ivory);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 72px);
    background: var(--bg-panel);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.mobile-nav a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent-gold);
}

/* Mobile Toggle States */
.site-header #mobile-menu-check:checked ~ .mobile-nav {
    right: 0;
}

.site-header #mobile-menu-check:checked ~ .header-inner .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header #mobile-menu-check:checked ~ .header-inner .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header #mobile-menu-check:checked ~ .header-inner .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO LANDSCAPE
   ========================================================================== */
.hero-landscape {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
}

.bg-image-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,14,12,0.3) 0%, rgba(17,14,12,0.9) 80%, var(--bg-base) 100%);
}

/* ==========================================================================
   GAME SECTION
   ========================================================================== */
.game-section {
    padding: var(--section-pad-y) var(--section-pad-x);
    max-width: var(--container-max);
    margin: -15vh auto 0;
    position: relative;
    z-index: 10;
}

.lounge-intro {
    margin-bottom: 3rem;
}

.game-frame-wrapper {
    background: var(--bg-panel);
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    position: relative;
}

/* Decorative Stone Corners */
.stone-corners {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-gold);
    z-index: 5;
}
.top-left { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.top-right { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.bottom-right { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.game-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
}

/* ==========================================================================
   PLATFORM FEATURES
   ========================================================================== */
.platform-features {
    padding: var(--section-pad-y) var(--section-pad-x);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-ivory);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Plaques */
.plaque-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.plaque {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-panel);
    padding: 1.5rem;
    border-left: 2px solid var(--accent-gold);
}

.plaque-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    margin-top: 8px;
}

.plaque h4 {
    color: var(--text-ivory);
    margin-bottom: 0.25rem;
}

.plaque p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Waterhole Basin Grid */
.stone-basin {
    background: var(--bg-panel-alt);
    padding: 1px; /* for border gradient illusion */
    position: relative;
}

.basin-inner {
    background: var(--bg-panel);
    padding: 2rem;
}

.basin-title {
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.basin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.basin-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.basin-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.basin-full {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 1rem;
    font-size: 0.875rem;
    font-style: italic;
}

/* Wood Paneling */
.wood-paneling {
    background: repeating-linear-gradient(
        45deg,
        var(--bg-panel),
        var(--bg-panel) 10px,
        var(--bg-panel-alt) 10px,
        var(--bg-panel-alt) 20px
    );
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.library-entry {
    background: var(--bg-base);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.library-entry:last-child {
    margin-bottom: 0;
}
.library-entry h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.library-entry p {
    font-size: 0.875rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background: var(--bg-panel);
    padding: var(--section-pad-y) 0;
}

.terrace-panel {
    max-width: var(--container-max);
    margin: 0 auto 4rem;
    padding: 0 var(--section-pad-x);
}

.terrace-panel:last-child {
    margin-bottom: 0;
}

/* Panel Editorial */
.panel-editorial {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-image {
    position: relative;
}

.img-lion {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

/* Panel Typography */
.panel-typography {
    text-align: center;
    padding: 4rem var(--section-pad-x);
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.specs-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-title {
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.spec-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Panel Glass */
.panel-glass {
    position: relative;
    padding: 4rem var(--section-pad-x);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-image-deck {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(17, 14, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 2rem;
    max-width: 600px;
    text-align: center;
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */
.support-section {
    padding: var(--section-pad-y) var(--section-pad-x);
    max-width: var(--container-max);
    margin: 0 auto;
}

.support-header {
    margin-bottom: 4rem;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.col-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.decorative-line {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.support-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inquiry-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.inquiry-item p {
    font-size: 0.875rem;
}

/* Luxury Form */
.luxury-form {
    background: var(--bg-panel);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.luxury-form input,
.luxury-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--text-ivory);
    font-family: var(--font-sans);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.luxury-form input:focus,
.luxury-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.luxury-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.platform-footer {
    position: relative;
    padding: 4rem var(--section-pad-x);
    background: #0a0807;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0a0807 20%, transparent 100%);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-logo h2 {
    font-family: var(--font-serif);
    color: var(--text-ivory);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}
.footer-logo span {
    color: var(--accent-gold);
    font-weight: 400;
}

.footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-legal-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-legal-nav a:hover {
    color: var(--accent-gold);
}

.footer-badges {
    margin-bottom: 2rem;
}

.badge-18 {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-weight: bold;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.minimal-footer {
    padding: 2rem var(--section-pad-x);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms, etc.)
   ========================================================================== */
.page-legal .site-header {
    position: sticky;
    top: 0;
}

.legal-document {
    padding: var(--section-pad-y) var(--section-pad-x);
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Tablet and larger */
@media (min-width: 768px) {
    .heading-serif {
        font-size: 3.5rem;
    }
    
    .heading-wide {
        font-size: 3rem;
    }

    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .game-controls {
        flex-direction: row;
    }

    .platform-features {
        gap: 4rem;
    }
    
    .plaque-list {
        grid-template-columns: 1fr 1fr;
    }

    .basin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel-editorial {
        flex-direction: row;
        align-items: center;
    }
    
    .panel-editorial > div {
        flex: 1;
    }

    .specs-row {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }

    .support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop and larger */
@media (min-width: 1024px) {
    .heading-serif {
        font-size: 4.5rem;
    }
    
    .hero-landscape {
        height: 100vh;
    }

    .game-section {
        margin-top: -25vh;
    }

    .platform-features {
        flex-direction: row;
        align-items: flex-start;
    }

    .feature-highlights, .reading-library {
        flex: 1;
    }

    .waterhole-plaza {
        flex: 1.2;
    }

    .plaque-list {
        grid-template-columns: 1fr;
    }
    
    .basin-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr 1.5fr 1.5fr;
    }
}