/* ==========================================================================
   CSS VARIABLES (Strictly as requested)
   ========================================================================== */
   :root {
    /* Brand */
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --primary-soft: #dcfce7;
    
    --secondary: #e30613;
    --secondary-dark: #b91c1c;
    --secondary-soft: #fee2e2; /* Added to match UI logic */
    
    --white: #ffffff;
    
    /* Backgrounds */
    --body: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    
    /* Text */
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #475569;
    --muted: #64748b;
    
    /* Borders */
    --border: #e2e8f0;
    
    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Radius */
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --radius-round: 999px;
    
    /* Shadows */
    --shadow-sm: 0 8px 24px rgba(15,23,42,.06);
    --shadow: 0 18px 45px rgba(15,23,42,.08);
    --shadow-lg: 0 30px 80px rgba(15,23,42,.12);
    
    /* Animation */
    --transition: .35s ease;
    
    /* Layout */
    --container: 1350px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
}

/* ==========================================================================
   GLOBAL RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--body);
    color: var(--dark-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-warning { color: var(--warning) !important; }

.bg-primary-soft { background-color: var(--primary-soft) !important; }
.bg-secondary-soft { background-color: var(--secondary-soft) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--dark-2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-soft {
    background-color: var(--surface);
    color: var(--primary);
    border: 1px solid var(--primary-soft);
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: var(--space-lg);
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-3);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin: var(--space-md) 0;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.trust-indicators {
    display: flex;
    gap: var(--space-md);
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-3);
}

.trust-item i {
    color: var(--primary);
}

/* Hero Visual Composition */
.hero-visual {
    position: relative;
    height: 500px;
}

.main-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.main-icon {
    font-size: 6rem;
    color: var(--primary-light);
}

.stats-card {
    position: absolute;
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10;
    border: 1px solid var(--border);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stats-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stats-info p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
}

.top-card {
    top: 10%;
    right: 0;
    animation: float 5s ease-in-out infinite;
}

.bottom-card {
    bottom: 10%;
    left: 0;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   SERVICES DIRECTORY (Massive UI)
   ========================================================================== */
.services-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.service-category {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.category-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface-2);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.category-header p {
    color: var(--muted);
    margin-top: 4px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
}

/* Specific item detailing */
.service-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-md);
    transition: var(--transition);
}

/* Remove right border for last item in row depending on grid size - handled generally */
.service-item:hover {
    background: var(--surface-2);
}

.item-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-2);
    margin-bottom: 8px;
}

.item-details p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 16px;
    min-height: 45px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-3);
    background: var(--body);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Expand the button within the card */
.service-item .btn {
    width: 100%;
}

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */
.cta-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--primary-soft);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--space-2xl) 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about p {
    color: var(--muted);
    margin-top: var(--space-md);
    max-width: 350px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.footer-bottom {
    background-color: var(--dark-2);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto var(--space-lg);
    }
    .hero-buttons, .trust-indicators {
        justify-content: center;
    }
    .hero-visual {
        display: none;
    }
    .service-list {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .service-list {
        grid-template-columns: 1fr;
    }
    .service-item {
        border-right: none;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}