/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
    --primary-dark: #0A192F;
    --accent-color: #FF6B00;
    --accent-secondary: #D90429;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    
    --text-dark: #333333;
    --text-grey: #555555;
    --text-light: #F8F9FA;
    
    --border-color: #E5E5E5;
    
    --font-primary: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-grey);
    line-height: 1.6;
    background-color: var(--bg-card);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-card); }
.text-center { text-align: center; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn i, .btn svg {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0d2240;
}

.btn-white {
    background-color: #fff;
    color: var(--primary-dark);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* ==========================================================================
   1. Top Utility Bar
   ========================================================================== */
.top-bar {
    background-color: var(--bg-light);
    height: 35px;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-size: 0.85rem;
    color: var(--text-grey);
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left .item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   2. Main Header / Navigation Bar
   ========================================================================== */
.main-header {
    background-color: var(--bg-card);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.brand-logo span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-grey);
    margin-left: 10px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    height: 100%;
}

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

.nav-menu a {
    color: var(--primary-dark);
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5px;
}

.nav-menu a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* ==========================================================================
   3. Hero Banner Section
   ========================================================================== */
.hero {
    background-color: var(--bg-light);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 .accent-text {
    color: var(--accent-color);
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-image img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. Overview / About Section
   ========================================================================== */
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: var(--shadow-md);
}

.about-content p {
    margin-bottom: 20px;
}

/* ==========================================================================
   5. Category Icon Services Grid
   ========================================================================== */
.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    height: 40px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-grey);
}

/* ==========================================================================
   6. Product Card Grid Section
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-image {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: calc(56.25% - 24px); /* 16:9 ratio is 56.25% height */
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 4px solid var(--bg-card);
    z-index: 10;
}

.product-body {
    padding: 35px 20px 20px;
    text-align: center;
    flex-grow: 1;
}

.product-body h4 {
    margin-bottom: 10px;
}

.product-body p {
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* ==========================================================================
   7. Dual Feature Call-to-Action (CTA) Cards
   ========================================================================== */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cta-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 350px;
}

.cta-card-1 {
    background-color: var(--primary-dark);
}

.cta-card-2 {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.cta-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-card h3 {
    color: white;
    margin-bottom: 20px;
}

.cta-list {
    margin-bottom: 30px;
}

.cta-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cta-list li i {
    margin-right: 10px;
    color: #fff;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 2px;
    font-size: 0.7rem;
}

.cta-graphic {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    z-index: 1;
}

.cta-graphic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   8. FAQ Accordion & Support Callout Section
   ========================================================================== */
.faq-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 15px 20px;
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.support-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.support-content {
    position: relative;
    z-index: 2;
}

.support-card p {
    margin-bottom: 25px;
}

.support-graphic {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 200px;
    z-index: 1;
}

/* ==========================================================================
   9. Footer Component
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding-top: 60px;
}

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

.footer-brand h2 {
    color: white;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.footer-socials a:hover {
    background-color: var(--accent-color);
}

.footer-col-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero .container, .about .container, .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-menu {
        display: none; /* simple hidden state for mobile without JS */
    }
    
    h1 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}
