/* ==========================================================================
   QUANTUM HORIZONS - DESIGN SYSTEM & STYLESHEET
   Location: css/estilos.css
   Font Format: Local WOFF fonts from /fonts/
   Color Palette: Deep Obsidian, Slate Navy, Gold Accent #d7ad5e
   ========================================================================== */

/* --- Local Font Declarations (WOFF Format) --- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair';
    src: url('../fonts/playfair.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Root Design Variables --- */
:root {
    --bg-dark-core: #07090e;
    --bg-dark-surface: #0e121a;
    --bg-dark-card: #0e121a;
    --bg-dark-elevated: #f5f4f4;
    
    --gold-primary: #d7ad5e;
    --gold-light: #f4d48d;
    --gold-dark: #ab8336;
    --gold-glow: rgba(215, 173, 94, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #c5cbd8;
    --text-muted: #8c94a6;
    
    --border-subtle: rgba(215, 173, 94, 0.25);
    --border-card: rgba(215, 173, 94, 0.15);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair', serif;
    
    --container-max: 1680px;
    --transition: all 0.3s ease;
}

/* --- Reset & Global Defaults --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark-core);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

.text-gold {
    color: var(--gold-primary);
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 1050px;
}

strong, b {
    font-weight: 700;
    color: inherit;
}

.section-padding > .container > h1,
.section-padding > .container > h1 strong,
.section-padding > .container > h1 b {
    color: var(--gold-primary) !important;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 1rem;
}

.card-header-flex .card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* --- Layout Containers --- */
.container {
    width: 95%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5.5rem 0;
}

.section-padding-sm {
    padding: 3.5rem 0;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #020818 !important;
    background: #020818 !important;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.logo-img {
    height: 88px;
    max-height: 95px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Banner Section --- */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark-core);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: contrast(1.05) brightness(0.95);
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 9, 14, 0.96) 0%, rgba(7, 9, 14, 0.85) 35%, rgba(7, 9, 14, 0.35) 65%, rgba(7, 9, 14, 0.05) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: calc(100vh - 90px);
    gap: 2rem;
}

.hero-content {
    padding-right: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-title-thin {
    font-weight: 300;
    font-family: var(--font-body);
    display: inline-block;
    color: #ffffff;
}

.hero-subtitle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.hero-gold-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--gold-primary);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    line-height: 1.7;
}

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

.hero-portrait-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.hero-portrait-img {
    max-height: 76vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    z-index: 6;
    margin-top: 1.5rem;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 20;
    display: flex;
    gap: 1rem;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: rgba(14, 18, 26, 0.8);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.arrow-btn:hover {
    background: var(--gold-primary);
    color: #07090e;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: none;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: #07090e;
    border-color: var(--gold-primary);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(215, 173, 94, 0.4);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline-gold:hover {
    background-color: rgba(215, 173, 94, 0.12);
    box-shadow: 0 0 15px rgba(215, 173, 94, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-dark-card);
    color: #ffffff;
    border-color: var(--border-card);
}

.btn-secondary:hover {
    background: var(--bg-dark-elevated);
    border-color: var(--gold-primary);
}

/* --- Content Sections & Styling --- */
.section-dark-elevated {
    background-color: #f5f4f4;
    color: #575757;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.section-dark-elevated h1,
.section-dark-elevated h2,
.section-dark-elevated h3,
.section-dark-elevated h4,
.section-dark-elevated h5,
.section-dark-elevated h6 {
    color: #111726;
}

.section-dark-elevated p,
.section-dark-elevated .lead-text {
    color: #575757;
}

.section-dark-elevated strong,
.section-dark-elevated b {
    color: #111726;
}

.section-dark-elevated .section-tag {
    color: var(--gold-primary) !important;
    font-weight: 700;
}

.section-dark-elevated .card-item {
    background-color: #ffffff;
    border: 1px solid #d4d8e2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #0c1017;
}

.section-dark-elevated .card-item h3,
.section-dark-elevated .card-item h4 {
    color: #0c1017;
}

.section-dark-elevated .card-item p,
.section-dark-elevated .card-item span,
.section-dark-elevated .card-item div,
.section-dark-elevated .card-item .card-desc {
    color: #333d52;
}

.section-dark-elevated .card-item .text-gold {
    color: #9e7520 !important;
}

.section-dark-elevated .card-num {
    color: #9e7520;
}

/* Dark cards inside light sections override */
.dark-cta-box,
.dark-cta-box h1,
.dark-cta-box h2,
.dark-cta-box h3,
.dark-cta-box h4,
.dark-cta-box strong,
.dark-cta-box b,
.section-dark-elevated .dark-cta-box,
.section-dark-elevated .dark-cta-box h1,
.section-dark-elevated .dark-cta-box h2,
.section-dark-elevated .dark-cta-box h3,
.section-dark-elevated .dark-cta-box h4,
.section-dark-elevated .dark-cta-box strong,
.section-dark-elevated .dark-cta-box b,
.section-dark-elevated [style*="background"] h1,
.section-dark-elevated [style*="background"] h2,
.section-dark-elevated [style*="background"] h3,
.section-dark-elevated [style*="background"] h4,
.section-dark-elevated [style*="background"] strong,
.section-dark-elevated [style*="background"] b,
.section-dark-elevated [style*="background-color"] h1,
.section-dark-elevated [style*="background-color"] h2,
.section-dark-elevated [style*="background-color"] h3,
.section-dark-elevated [style*="background-color"] h4,
.section-dark-elevated [style*="background-color"] strong,
.section-dark-elevated [style*="background-color"] b {
    color: #ffffff !important;
}

.dark-cta-box p,
.dark-cta-box .lead-text,
.section-dark-elevated .dark-cta-box p,
.section-dark-elevated .dark-cta-box .lead-text,
.section-dark-elevated [style*="background"] p,
.section-dark-elevated [style*="background"] .lead-text,
.section-dark-elevated [style*="background-color"] p,
.section-dark-elevated [style*="background-color"] .lead-text {
    color: #c5cbd8 !important;
}

.section-dark-elevated .btn,
.section-dark-elevated .btn-gold,
.section-dark-elevated .btn-outline-gold {
    background-color: #090c15;
    color: #ffffff !important;
    border-color: #090c15;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-dark-elevated .btn:hover,
.section-dark-elevated .btn-gold:hover,
.section-dark-elevated .btn-outline-gold:hover {
    background-color: var(--gold-primary);
    color: #090c15 !important;
    border-color: var(--gold-primary);
    box-shadow: 0 6px 18px rgba(215, 173, 94, 0.35);
}

.section-dark-card {
    background-color: #0e121a;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    color: #ffffff;
}

.section-dark-card h1,
.section-dark-card h2,
.section-dark-card h3,
.section-dark-card h4,
.section-dark-card h5,
.section-dark-card h6 {
    color: #ffffff !important;
}

.section-dark-card p,
.section-dark-card .lead-text,
.section-dark-card span,
.section-dark-card div {
    color: #c5cbd8 !important;
}

.section-dark-card strong,
.section-dark-card b {
    color: #ffffff !important;
}

.section-dark-card .text-gold,
.section-dark-card .section-tag {
    color: var(--gold-primary) !important;
}

.section-dark-card .btn-gold {
    background-color: var(--gold-primary) !important;
    color: #07090e !important;
    border-color: var(--gold-primary) !important;
    font-weight: 700;
}

.section-dark-card .btn-gold:hover {
    background-color: var(--gold-light) !important;
    color: #07090e !important;
}

.section-tag {
    display: inline-block;
    color: var(--gold-primary) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* Gold Accent Line Under Section Headings (Except Hero) */
.section-header h2,
.section-header h1,
.section-padding > .container > h2 {
    position: relative;
}

.section-header h2::after,
.section-header h1::after,
.section-padding > .container > h2::after {
    content: '' !important;
    display: block !important;
    width: 90px !important;
    height: 4px !important;
    background-color: #d7ad5e !important;
    border-radius: 2px !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0.8rem !important;
}

.hero-content h1::after,
.hero-title::after,
.hero h1::after {
    display: none !important;
}

.section-header.text-center h2::after,
.section-header.text-center h1::after,
.text-center h2::after {
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center .lead-text {
    margin: 0 auto;
}

/* Card Grids */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.caio-bio-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.cards-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

@media (max-width: 992px) {
    .contact-grid,
    .caio-bio-grid,
    .cards-grid-2,
    .cards-grid-3,
    .cards-grid-6 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .card-item {
        padding: 1.5rem !important;
    }
}

/* Card Styling */
.card-item {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 2.2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
}

.card-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: invert(72%) sepia(48%) saturate(464%) hue-rotate(5deg) brightness(92%) contrast(88%);
    transition: var(--transition);
}

.card-item:hover .card-icon {
    transform: scale(1.12);
    filter: invert(80%) sepia(50%) saturate(500%) hue-rotate(5deg) brightness(100%) contrast(90%) drop-shadow(0 0 10px rgba(215, 173, 94, 0.4));
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Feature Box / Process Step */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #07090e;
    border: 1px solid var(--gold-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

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

/* Alert Boxes */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* --- Footer --- */
.site-footer {
    background-color: #040609;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col-about p {
    color: var(--text-muted);
    margin-top: 1.2rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

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

/* --- Admin Control Panel Layout --- */
.admin-body {
    background-color: #0b0e14;
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #06080c;
    border-right: 1px solid var(--border-subtle);
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.95rem;
}

.admin-menu-link:hover, .admin-menu-link.active {
    background: rgba(215, 173, 94, 0.15);
    color: var(--gold-primary);
}

.admin-content {
    flex-grow: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
}

.admin-card {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-card);
}

.admin-table th {
    color: var(--gold-primary);
    font-weight: 600;
}

/* --- Media Queries / Responsive Rules --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-portrait-wrapper {
        justify-content: center;
        height: auto;
    }

    .hero-portrait-img {
        max-height: 50vh;
    }

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

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background: #020818 !important;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.8rem;
    }

    .nav-separator {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

/* --- Admin Dashboard Layout --- */
.admin-body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background-color: #07090e;
    color: #ffffff;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background-color: #090c15;
    border-right: 1px solid var(--border-subtle);
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    color: #c5cbd8;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background-color: rgba(215, 173, 94, 0.15);
    color: var(--gold-primary) !important;
    font-weight: 600;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    background-color: #07090e;
    width: calc(100% - 260px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 992px) {
    .admin-body {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}
