/* --- CSS VARIABLES & THEME CONFIG --- */
:root {
    --primary: #1e3a8a;       /* Deep Royal Blue */
    --secondary: #059669;     /* Emerald Green */
    --accent: #0d9488;        /* Teal */
    --dark: #1f2937;          /* Charcoal text */
    --light: #f8fafc;         /* Light grey background */
    --white: #ffffff;
    --border-color: #e2e8f0;  /* Structural grid borders */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 35px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--secondary);
    margin: 8px 0 0 0;
    border-radius: 2px;
}

.text-center { text-align: center; }
.text-center .section-title::after { margin: 8px auto 0 auto; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
    border: none;
    min-height: 44px;
}

.btn:focus-visible,
nav ul li a:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.28);
    outline-offset: 3px;
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: #172554; }
.btn-secondary { background-color: var(--secondary); color: var(--white); }
.btn-secondary:hover { background-color: #047857; }

/* --- BADGES --- */
.badge {
    background-color: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

/* --- HEADER / NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    position: relative;
}

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

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    display: block;
    width: 178px;
    height: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    width: 44px;
    height: 44px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- FOOTER LAYOUT --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-brand-logo {
    background: var(--white);
    border-radius: 8px;
    display: inline-flex;
    padding: 8px 10px;
    margin-bottom: 16px;
}

.footer-brand-logo img {
    display: block;
    width: 170px;
    height: auto;
}

.footer-col p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.copyright {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- ANIMATION CLASS --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MASTER MEDIA QUERIES --- */
@media (max-width: 992px) {
    .section-padding { padding: 48px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 24px; }
    .nav-container { height: 76px; }
    .logo-text { font-size: 1.35rem; }
    .brand-logo { width: 142px; }
    .nav-toggle { display: flex; }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 12px 20px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-top: 1px solid var(--border-color);
        gap: 15px;
        align-items: stretch;
    }
    nav ul.open { display: flex; }
    nav ul li a {
        display: block;
        padding: 10px 0;
    }
    .nav-container > .btn {
        display: none;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    .top-bar-info span {
        display: block;
        margin: 0 0 4px;
    }
    .hero-section {
        padding: 52px 0 92px !important;
    }
    .hero-section .hero-grid,
    .about-highlight-grid,
    .feature-split-section,
    .instrument-split-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .hero-title {
        font-size: 2.35rem !important;
        line-height: 1.15;
    }
    .hero-desc {
        font-size: 1rem !important;
    }
    .hero-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-graphic-box {
        display: block !important;
        height: auto !important;
        min-height: 260px;
        max-width: 520px;
        margin: 0 auto;
    }
    .graphic-badge {
        position: static !important;
        margin: 12px;
        width: calc(100% - 24px);
    }
    .stats-card-row,
    .services-container-grid,
    .offers-container-layout,
    .packages-deck,
    .trending-grid {
        grid-template-columns: 1fr !important;
    }
    .control-panel,
    .view-filter-group {
        width: 100%;
    }
    .search-wrapper {
        min-width: 0 !important;
        width: 100%;
    }
    .view-filter-group {
        overflow-x: auto;
    }
    .filter-btn {
        white-space: nowrap;
        flex: 1 0 auto;
    }
    .promo-card,
    .dept-card,
    .package-premium-card,
    .quick-tabs-container,
    .carousel-window,
    .vm-sidebar {
        padding: 24px !important;
    }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.55rem; }
    .hero-title { font-size: 2rem !important; }
    .btn { width: 100%; }
    .tab-header { gap: 8px; }
    .tab-btn { padding: 10px 14px; }
    .test-strip {
        padding: 18px !important;
        text-align: left !important;
    }
    .test-tat {
        justify-content: flex-start !important;
    }
    .price-section,
    .trending-price,
    .price-text {
        font-size: 1.45rem !important;
    }
    footer {
        padding: 42px 0 18px;
    }
}
