/* ============================================
   VoxOne Shared Styles
   ============================================ */

/* --------------------------------------------
   CSS Variables
   -------------------------------------------- */
:root {
    /* Colors */
    --color-bg: #242424;
    --color-text: #FFFFFF;
    --color-text-muted: #BBB;
    --color-dark-grey: #242424;
    --color-primary: #e8ca66;
    --color-primary-dark: #c29428;
    --color-yellow: #e8ca66;
    --color-darkYellow: #c29428;
    --color-mediumYellow: #d5a32d;
    --color-brightBlue: #168edf;
    --color-mediumBlue: #2368a2;
    --color-district-gold: #c49102;
    --color-district-gold-dark: #a67c00;
    --color-alert-red: #dc3545;
    --color-alert-orange: #fd7e14;
    --color-alert-dark: #b02a37;
    --color-district-light: rgba(196, 145, 2, 0.15);
    --color-school-light: rgba(232, 202, 102, 0.15);
    --color-border: #444444;
    --color-gray: #555555;
    --color-simulator-bg: #232323 !important;
    
    /* Typography */
    --font-display: 'Merriweather', serif;
    --font-body: 'Jura', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    
    /* Border Radius */
    --radius: 8px;
    --radius-sm: 6px;
}

/* --------------------------------------------
   Reset & Base Styles
   -------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------
   Navigation
   -------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #333;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 17px;
    transition: color 0.2s;
    line-height: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-yellow);
}

/* Dropdown Trigger */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 17px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: var(--color-yellow);
}

.nav-dropdown-trigger svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(10px);
    margin-top: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #333;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #CCC;
    transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
    background: rgba(232, 202, 102, 0.1);
    color: var(--color-yellow);
}

.nav-dropdown-menu a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.nav-dropdown-menu a:hover svg {
    opacity: 1;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-text span {
    font-size: 15px;
}

.dropdown-item-text small {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.nav-dropdown-menu a:hover small {
    color: #AAA;
}

/* Dropdown Menu Active State (Option I: Left Border + Background) */
.nav-dropdown-menu a.active {
    border-left: 3px solid var(--color-yellow);
    padding-left: 17px;
    background: rgba(232, 202, 102, 0.15);
    color: var(--color-yellow);
}

.nav-dropdown-menu a.active svg {
    opacity: 1;
}

.nav-dropdown-menu a.active small {
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

.nav-cta {
    background: var(--color-mediumBlue);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 17px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--color-brightBlue);
    transform: translateY(-1px);
}

/* --------------------------------------------
   Mobile Menu Button
   -------------------------------------------- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #FFF;
}

/* --------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #FFF;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px;
    width: fit-content;
    margin: auto;
}

.mobile-nav-links > a {
    color: #FFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 300;
    transition: color 0.2s;
}

.mobile-nav-links > a:hover {
    color: var(--color-yellow);
}

.mobile-nav-section {
    text-align: left;
}

.mobile-nav-section-title {
    color: #FFF;
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 300;
    margin-bottom: 12px;
}

.mobile-nav-section-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 24px;
    border-left: 2px solid #444;
    margin-left: 8px;
}

.mobile-nav-section-links a {
    font-size: 20px;
    color: #AAA;
    text-decoration: none;
}

.mobile-nav-section-links a:hover {
    color: var(--color-yellow);
}

.mobile-nav-cta {
    margin-top: 16px;
    background: var(--color-mediumBlue);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 18px !important;
    color: #FFF !important;
}

.mobile-nav-cta:hover {
    background: var(--color-brightBlue);
    color: #FFF !important;
}

/* --------------------------------------------
   Common Section Styles
   -------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 16px;
    color: #FFF;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------
   Decorative Badges (Option 9 - Lines)
   -------------------------------------------- */
.hero-badge,
.cta-badge,
.emergency-badge,
.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-yellow);
    padding: 8px 0;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before,
.hero-badge::after,
.cta-badge::before,
.cta-badge::after,
.emergency-badge::before,
.emergency-badge::after,
.savings-badge::before,
.savings-badge::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-yellow);
    opacity: 0.5;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn-primary {
    background: var(--color-mediumBlue);
    color: white;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(35, 104, 162, 0.3);
}

.btn-primary:hover {
    background: var(--color-brightBlue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 142, 223, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #FFF;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    border: 2px solid #555;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: white;
    color: var(--color-mediumBlue);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
footer {
    background: #000;
    color: white;
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: #888;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #666;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #AAA;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* --------------------------------------------
   Simulator CTA Section
   -------------------------------------------- */

/* Cube CSS Variables */
:root {
    --cube-size: 140px;
    --cube-half: 70px;
    --color-logoOrange: #ee4f03;
}

/* Tablet cube sizing */
@media (min-width: 550px) and (max-width: 768px) {
    :root {
        --cube-size: 120px;
        --cube-half: 60px;
    }
}

/* Mobile cube sizing */
@media (max-width: 549px) {
    :root {
        --cube-size: 100px;
        --cube-half: 50px;
    }
}

.simulator-cta-section {
    padding: 0;
    COMMANDO-background: linear-gradient(135deg, #ee4f03 0%, #c44003 50%, #ee4f03 100%);
}

.simulator-cta {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 40px 60px 60px;
    COMMANDO-background: rgba(0, 0, 0, 0.3);
	background-color: var(--color-simulator-bg);
    border: none;
    border-radius: 0;
}

.simulator-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

/* 3D Cube Styles */
.simulator-scene {
    width: var(--cube-size);
    height: var(--cube-size);
    perspective: 600px;
    margin: 0 12px 0 20px;
}

.simulator-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: simulatorSpin 8s infinite linear;
}

.simulator-face {
    border-radius: 8px;
    position: absolute;
    width: var(--cube-size);
    height: var(--cube-size);
    background-color: #FFF;
    border: 4px solid var(--color-simulator-bg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    COMMANDO-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.simulator-face-header {
    background: #000000;
    color: white;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.simulator-face-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.simulator-color-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498DB, #2980B9);
    box-shadow: 0 0 0 2px white, 0 0 8px 4px rgba(0, 0, 0, 0.15);
}

.simulator-icon-preview {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.simulator-font-preview {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-style: italic;
    color: #333;
}

.simulator-message-preview {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.15;
    padding: 4px;
    font-weight: 300;
}

/* Cube face transforms */
.simulator-face.front {
    transform: translateZ(var(--cube-half));
}

.simulator-face.back {
    transform: rotateY(-90deg) translateZ(var(--cube-half));
}

.simulator-face.left {
    transform: rotateY(-180deg) translateZ(var(--cube-half));
}

.simulator-face.right {
    transform: rotateY(-270deg) translateZ(var(--cube-half));
}

@keyframes simulatorSpin {
    from {
        transform: rotateY(0deg) rotateX(-5deg);
    }
    to {
        transform: rotateY(360deg) rotateX(-5deg);
    }
}

/* CTA Content */
.simulator-cta-content {
    text-align: left;
}

.simulator-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-logoOrange);
    padding: 8px 0;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.simulator-badge::before,
.simulator-badge::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-logoOrange);
    opacity: 0.5;
}

.simulator-cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.simulator-cta-content p {
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-simulator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-logoOrange);
    color: #FFF;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(238, 79, 3, 0.3);
}

.btn-simulator:hover {
    background: #c44003;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(238, 79, 3, 0.4);
}

.btn-simulator svg {
    width: 18px;
    height: 18px;
}

/* Simulator CTA Responsive - Tablet */
@media (max-width: 768px) {
    .simulator-cta {
        padding: 48px 32px;
    }

    .simulator-cta-inner {
        gap: 40px;
    }

    .simulator-scene {
        margin: 0 0 0 10px;
    }

    .simulator-cta-content h2 {
        font-size: 1.5rem;
    }

    .simulator-face-header {
        font-size: 14px;
        padding: 4px 0;
    }

    .simulator-icon-preview {
        font-size: 50px;
    }

    .simulator-color-circle {
        width: 55px;
        height: 55px;
    }

    .simulator-font-preview {
        font-size: 20px;
    }

    .simulator-message-preview {
        font-size: 13px;
    }
}

/* Simulator CTA Responsive - Mobile (stacked layout) */
@media (max-width: 549px) {
    .simulator-cta-section {
        padding: 0;
    }

    .simulator-cta {
        padding: 40px 24px;
    }

    .simulator-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .simulator-scene {
        margin: 0 auto;
    }

    .simulator-cta-content {
        text-align: center;
    }

    .simulator-cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .simulator-cta-content h2 {
        font-size: 1.35rem;
    }

    .simulator-badge {
        font-size: 14px;
    }

    .btn-simulator {
        padding: 12px 24px;
        font-size: 15px;
    }

    .simulator-face-header {
        font-size: 12px;
        padding: 3px 0;
    }

    .simulator-icon-preview {
        font-size: 42px;
    }

    .simulator-color-circle {
        width: 45px;
        height: 45px;
    }

    .simulator-font-preview {
        font-size: 18px;
    }

    .simulator-message-preview {
        font-size: 11px;
    }
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------
   Responsive - Tablet (768px)
   -------------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

/* --------------------------------------------
   Responsive - Mobile (480px)
   -------------------------------------------- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
