/*
Theme Name: DEKA Gold Class
Description: Premium Dark/Light WordPress Theme
Version: 5.0
*/

/* ========== 1. VARIABLES & RESET ========== */
:root {
    /* DARK MODE (Default) */
    --bg-body: #121212;
    --bg-header: rgba(18, 18, 18, 0.95);
    --bg-card: #1E1E1E;
    --bg-footer: #0f0f0f;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(198, 146, 20, 0.2);
    
    /* Brand Colors */
    --gold: #C69214;
    --gold-hover: #FFD700;
    --gold-gradient: linear-gradient(135deg, #C69214 0%, #FFD700 50%, #C69214 100%);
    
    /* Layout */
    --header-height: 80px;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --bg-body: #F4F4F4;
    --bg-header: rgba(255, 255, 255, 0.98);
    --bg-card: #FFFFFF;
    --bg-footer: #EAEAEA;
    --text-main: #121212;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== 2. UTILITY CLASSES ========== */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-dark { background: var(--bg-body); }
.bg-card { background: var(--bg-card); }
.text-gold { color: var(--gold); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--text-main);
    text-transform: uppercase;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========== 3. BUTTONS ========== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--gold-gradient);
    color: #121212;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(198, 146, 20, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(198, 146, 20, 0.5); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-outline:hover { background: var(--gold); color: #121212; }

/* ========== 4. HEADER STYLES ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-main);
}
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; gap: 15px; align-items: center; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span {
    width: 25px; height: 2px;
    background: var(--text-main);
}

/* ========== 5. GRID SYSTEMS ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch; 
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ========== 6. CARD STYLES ========== */
.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

.card-link:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(198, 146, 20, 0.15);
}

.card-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--gold); }
.card-title { font-size: 1.25rem; margin-bottom: 12px; color: var(--text-main); font-weight: 700; }
.card-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; flex-grow: 1; }

/* ========== 7. SERVICE TABS ========== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-tab {
    padding: 12px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.service-tab.active, .service-tab:hover {
    background: var(--gold);
    color: #121212;
    border-color: var(--gold);
}

.service-list { list-style: none; margin-top: 15px; padding: 0; }
.service-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.service-list li i { color: var(--gold); font-size: 0.8rem; }

/* ========== 8. FAQ ACCORDION ========== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h4 { margin: 0; font-size: 1.1rem; color: var(--text-main); }
.faq-answer {
    padding: 0 24px 24px;
    display: none;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.faq-item.active { border-color: var(--gold); }
.faq-item.active .faq-answer { display: block; }

/* ========== 9. FLOATING BUTTONS ========== */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

/* Theme Toggle - Top Right */
.theme-toggle-float {
    top: 100px;
    right: 20px;
    background: var(--bg-card);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* Back to Top - Bottom Right */
.back-to-top {
    bottom: 30px;
    right: 30px;
    background: var(--gold-gradient);
    color: #121212;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ========== 10. RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a, .hero-buttons button { width: 100%; text-align: center; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .legal-links-container { flex-direction: column; }
}