/* main.css - premium visual design system for Kids Check */

/* ===== THEME CUSTOM PROPERTIES ===== */
:root {
    --font-primary: 'Tajawal', sans-serif;
    
    /* Core Light Mode - Vibrant Green & Gold Theme */
    --bg-primary: #1A5F2A; /* Original Primary Green Background */
    --bg-secondary: #134B20; /* Darker Green for contrasts */
    --bg-tertiary: #0D3D1A; /* Original Dark Green */
    --surface: #227337; /* Lighter Green Surface for cards to stand out */
    --border: rgba(212, 175, 55, 0.3); /* Gold borders */
    --border-hover: rgba(212, 175, 55, 0.6);
    --text-primary: #FFFFFF; /* White text for readability on green */
    --text-secondary: #E2EDE4; /* Soft green-white text */
    --text-tertiary: #A4BFA9;
    
    --brand-green: #1A5F2A;
    --brand-dark-green: #0D3D1A;
    --brand-green-hover: #2D8A3E;
    --brand-gold: #D4AF37; /* Original Gold */
    --brand-gold-hover: #F4D03F; /* Original Light Gold */
    --brand-gold-light: rgba(212, 175, 55, 0.15);
    
    --success: #2D8A3E;
    --error: #E04554;
    
    --shadow-sm: 0 4px 12px rgba(13, 61, 26, 0.2);
    --shadow-md: 0 12px 32px rgba(13, 61, 26, 0.35);
    --shadow-lg: 0 20px 48px rgba(13, 61, 26, 0.45);
    
    --glass-bg: rgba(26, 95, 42, 0.85);
    --glass-border: rgba(212, 175, 55, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Core Dark Mode - Deep Dark Obsidian Green & Gold Theme */
    --bg-primary: #08170C; /* Deep Obsidian Green Background */
    --bg-secondary: #0D2614; /* Deep Forest Green */
    --bg-tertiary: #13361E;
    --surface: #0F3018; /* Dark Green Surface for cards */
    --border: rgba(212, 175, 55, 0.25); /* Gold borders */
    --border-hover: rgba(212, 175, 55, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #D4E2D7;
    --text-tertiary: #8AA391;
    
    --brand-green: #2D8A3E;
    --brand-dark-green: #08170C;
    --brand-green-hover: #37A84C;
    --brand-gold: #D4AF37;
    --brand-gold-hover: #F4D03F;
    --brand-gold-light: rgba(212, 175, 55, 0.18);
    
    --success: #2D8A3E;
    --error: #E04554;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
    
    --glass-bg: rgba(8, 23, 12, 0.85);
    --glass-border: rgba(212, 175, 55, 0.25);
}

/* ===== RESET & BASE SYSTEM ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.3s ease;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container limits */
.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-gold);
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* ===== STICKY HEADER & GLASS NAV ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
    border-bottom: 2px solid var(--brand-gold);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

header .logo {
    color: #FFFFFF !important;
}

header .logo-text {
    color: #FFFFFF !important;
}

header .logo-sub {
    color: var(--brand-gold-hover) !important;
}

header nav a {
    color: rgba(255, 255, 255, 0.85) !important;
}

header nav a:hover {
    color: var(--brand-gold-hover) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

header .theme-toggle {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

header .theme-toggle:hover {
    color: var(--brand-gold-hover) !important;
    border-color: var(--brand-gold-hover) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

header .menu-toggle span {
    background: #FFFFFF !important;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: -2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

nav a:hover {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== PREMIUM BUTTONS ===== */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand-gold);
    color: var(--brand-dark-green);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--brand-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: var(--brand-dark-green);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-dark-green);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    background: var(--brand-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-dark-green) 0%, var(--brand-green) 100%);
    color: #FFFFFF;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: #FFFFFF;
}

.hero-text h1 span {
    color: var(--brand-gold-hover);
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem;
    max-width: 50ch;
    color: rgba(255, 255, 255, 0.85);
}

.hero .eyebrow {
    color: var(--brand-gold-hover);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background: #FFFFFF;
    color: var(--brand-green);
    border-color: #FFFFFF;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Flat Premium Board Styling */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flat-board-container {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.flat-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.flat-square {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    user-select: none;
    transition: background-color 0.2s;
}

.flat-square.light {
    background: #EAE6DF;
    color: #4A544C;
}

.flat-square.dark {
    background: #A69E90;
    color: #FAF9F6;
}

/* ===== EDITORIAL BENTO GRID (LEVELS) ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-md);
}

/* Bento card sizing variants */
.bento-col-2 {
    grid-column: span 2;
}

.bento-row-2 {
    grid-row: span 2;
}

.bento-card-bg-gradient {
    background: linear-gradient(135deg, var(--brand-dark-green) 0%, var(--brand-green) 100%);
    color: #FFFFFF;
    border-color: var(--brand-gold) !important;
}

.bento-card-bg-gradient h3,
.bento-card-bg-gradient p,
.bento-card-bg-gradient .bento-bullets li {
    color: #FFFFFF !important;
}

.bento-card-bg-gradient .bento-bullets li::before {
    color: var(--brand-gold-hover) !important;
}

.bento-tag {
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--brand-gold-light);
    color: var(--brand-gold);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    border: 1px solid rgba(200, 155, 60, 0.2);
}

.bento-content {
    margin-top: 1.5rem;
}

.bento-content h3 {
    margin-bottom: 0.5rem;
}

.bento-bullets {
    list-style: none;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.bento-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.bento-bullets li::before {
    content: '→';
    color: var(--brand-gold);
    font-weight: 900;
}

.bento-price-list {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bento-price-list div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.bento-price-val {
    font-weight: 700;
    color: var(--text-primary);
}

.bento-visual-icon {
    font-size: 3rem;
    opacity: 0.15;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

/* ===== EDITORIAL SPLIT TRAINERS ===== */
.editorial-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.split-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trainer-row-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trainer-row-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.trainer-avatar-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.trainer-details h3 {
    margin-bottom: 0.25rem;
}

.trainer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
}

/* ===== INTERACTIVE PRICE CALCULATOR ===== */
.calc-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.calc-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.calc-selector {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-option-group {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.calc-btn-option {
    flex: 1;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
}

.calc-btn-option.active {
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Result panel */
.calc-result-panel {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
    border: 2px solid var(--brand-gold);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
}

.calc-result-panel .calc-label {
    color: var(--brand-gold) !important;
}

.calc-price-display {
    font-size: 3rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0.5rem 0;
}

.calc-price-display span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.calc-result-panel p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.calc-result-panel .btn-primary {
    background: var(--brand-gold);
    color: #FFFFFF;
}

.calc-result-panel .btn-primary:hover {
    background: var(--brand-gold-hover);
}

/* ===== PRICING STANDARD GRID ===== */
.pricing-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.price-card-clean {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.price-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.price-card-clean.featured {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
    border: 2px solid var(--brand-gold);
    transform: scale(1.02);
    color: #FFFFFF;
}

.price-card-clean.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.price-card-clean.featured h3,
.price-card-clean.featured .price-amount,
.price-card-clean.featured .price-features li {
    color: #FFFFFF !important;
}

.price-card-clean.featured .price-header p,
.price-card-clean.featured .price-amount span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.price-card-clean.featured .price-features li svg {
    color: var(--brand-gold-hover) !important;
}

.price-card-clean.featured .btn-primary {
    background: var(--brand-gold);
    color: #FFFFFF;
}

.price-card-clean.featured .btn-primary:hover {
    background: var(--brand-gold-hover);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gold);
    color: #FAF9F6;
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
}

.price-header {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 1rem 0;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-features li svg {
    color: var(--brand-gold);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== TESTIMONIALS & FAQ ===== */
.testimonials-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-gold-light);
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* JS-driven Accordion Accordion styles */
.accordion-list {
    max-width: 760px;
    margin: 3rem auto 0;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-trigger {
    width: 100%;
    padding: 1.25rem 1.75rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: right;
    transition: var(--transition);
}

.accordion-trigger:hover {
    background: var(--bg-secondary);
}

.accordion-icon {
    font-size: 1.25rem;
    transition: transform 0.3s;
    color: var(--brand-gold);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 1.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-item.active .accordion-panel {
    padding-bottom: 1.25rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* ===== CONTACT FORM & SPLIT REGISTRATION ===== */
.form-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.form-split > div:first-child {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark-green) 100%);
    color: #FFFFFF;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-gold);
}

.form-split > div:first-child h2 {
    color: #FFFFFF;
}

.form-split > div:first-child p {
    color: rgba(255, 255, 255, 0.9);
}

.form-split > div:first-child .eyebrow {
    color: var(--brand-gold-hover);
}

.form-split > div:first-child div {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.form-split > div:first-child h4 {
    color: var(--brand-gold-hover) !important;
}

.form-split > div:first-child ul li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px var(--brand-gold-light);
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: var(--bg-secondary);
    color: #FFFFFF;
}

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

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--brand-dark-green) 0%, var(--brand-green) 100%);
    border-top: 2px solid var(--brand-gold);
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--brand-gold-hover) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-parent .reveal {
    transition-delay: 0s;
}

.stagger-parent .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-parent .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-parent .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-parent .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ===== SECTION TITLES & LAYOUT SPACING ===== */
section {
    padding: 6rem 0;
}

.section-header-clean {
    max-width: 65ch;
    margin-bottom: 4rem;
}

.section-header-clean h2 {
    margin-bottom: 0.5rem;
}

/* WhatsApp Floating Button */
.wa-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: #FFFFFF;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.wa-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.wa-floating-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ===== APP/GAME CHESS INTERFACE ===== */
.app-layout {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
}

.app-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.board-card-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.app-control-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    text-align: center;
}

.app-stat-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand-green);
    display: block;
}

.app-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 2px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Responsive spacing */
    section {
        padding: 4rem 0;
    }
    
    .header-container {
        height: 64px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    
    nav.active {
        max-height: 380px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        align-items: stretch;
    }
    
    nav a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero layout */
    .hero {
        padding-top: 100px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .flat-board-container {
        max-width: 320px;
    }
    
    /* Bento collapse */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-col-2 {
        grid-column: span 1;
    }
    
    /* Split sections */
    .editorial-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-sidebar {
        position: static;
    }
    
    /* Pricing standard grid */
    .pricing-grid-clean {
        grid-template-columns: 1fr;
    }
    
    .price-card-clean.featured {
        transform: none;
    }
    
    .price-card-clean.featured:hover {
        transform: translateY(-4px);
    }
    
    /* Calculator */
    .calc-container {
        padding: 1.5rem;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-row {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .form-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* App interface collapse */
    .app-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== CHESSBOARD.JS SQUARE STYLING OVERRIDES ===== */
.white-1e1d7 {
    background-color: #EAE6DF !important;
    color: #4A544C !important;
}

.black-3c85d {
    background-color: #A69E90 !important;
    color: #FAF9F6 !important;
}

[data-theme="dark"] .white-1e1d7 {
    background-color: #2F3E34 !important;
    color: #FAF9F6 !important;
}

[data-theme="dark"] .black-3c85d {
    background-color: #141E17 !important;
    color: #9DA9A0 !important;
}

