﻿:root {
    /* Color Palette */
    --color-primary: #3E5062;
    /* Slate Blue */
    --color-secondary: #F9F9F4;
    /* Soft Beige */
    --color-accent: #D92525;
    /* Strong Red */
    --color-dark: #121212;
    /* Dark Charcoal */
    --color-text-light: #F9F9F4;
    --color-text-dark: #121212;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-800: #1f2937;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography Utility Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    /* Slight roundness for modern feel */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #b91c1c;
    /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(217, 37, 37, 0.3);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.section-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(62, 80, 98, 0.95);
    /* Semi-transparent Primary */
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: white;
}

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

/* Dropdown Menu */
.dropdown-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 260px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: left;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--color-gray-100);
    color: var(--color-accent);
}

/* Dropdown arrow */
.nav-link .arrow {
    display: inline-block;
    font-size: 0.8em;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.dropdown-container:hover .nav-link .arrow {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed header */
}

/* Abstract Background Elements for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: left;
    /* Enforce left alignment */
    margin-right: auto;
    /* Push to left if container allows */
    margin-left: 0;
}

.hero-title {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
    margin-right: auto;
    /* Ensure subtitle doesn't center itself if it has margin: 0 auto */
    margin-left: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Page Headers */
.page-header {
    background-color: var(--color-dark);
    padding: 100px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Make card clickable */
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 2rem;
    background-color: var(--color-gray-100);
    padding: 0.75rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: #fee2e2;
}

.service-card h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.service-summary {
    color: var(--color-gray-800);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-toggle-service {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.btn-toggle-service:hover {
    color: var(--color-accent);
}

.btn-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform var(--transition-fast);
}

.btn-toggle-service[aria-expanded="true"] .btn-icon {
    transform: rotate(45deg);
}

.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    animation: fadeIn 0.4s ease;
}

.service-details[hidden] {
    display: none;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 1rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}

/* Ensure visibility if JS fails or for SEO/Accessibility fallback */
@media (prefers-reduced-motion: reduce) {
    .service-list li {
        opacity: 1;
        transform: none;
    }
}

.service-list li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.service-cta {
    text-align: right;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Fix */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    background-color: var(--color-gray-200);
    /* Placeholder color */
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-title a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-gray-800);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-footer {
    border-top: 1px solid var(--color-gray-200);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-gray-800);
}

/* Blog Details */
.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-900);
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
}


/* --- Mobile Responsiveness --- */

/* Hamburger Menu Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State (Hamburger Animation) */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries */
@media screen and (max-width: 900px) {

    /* Header Improvements */
    .header-container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
        /* Show menu button */
    }

    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-dark);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1100;
        overflow-y: auto;
    }

    .nav.nav-active {
        right: 0;
        /* Slide in */
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
        color: white;
        display: block;
        width: 100%;
    }

    /* Dropdown in Mobile */
    .dropdown-container {
        width: 100%;
    }

    .dropdown-container .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        /* Stack naturally */
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: rgba(255, 255, 255, 0.05);
        /* Slight contrast */
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin-top: 1rem;
        display: none;
        /* Hidden by default, JS toggles this */
        transition: none;
    }

    .dropdown-menu.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-accent);
    }

    /* Hero Adjustments */
    .hero {
        padding-top: 100px;
        text-align: center;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* General Layout */
    .section {
        padding: var(--spacing-lg) 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
    }

    .hero-cta .btn {
        width: auto;
        /* Keep hero buttons auto width if they fit, or full if needed */
        min-width: 140px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* --- Mobile Layout Fixes --- */
@media screen and (max-width: 480px) {
    .logo img {
        max-width: 120px;
        /* Constrain logo width to prevent pushing menu off-screen */
        height: auto;
    }

    .header-container {
        padding: 0 1.5rem;
        /* Ensure enough padding */
    }
}

/* Fix for Contact Us button in Mobile Menu */
@media screen and (max-width: 900px) {
    .nav {
        /* Ensure z-index is higher than anything else */
        z-index: 9999;
        /* Ensure button text doesn't overflow */
    }

    .nav-list .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }
}

/* --- Homepage Redesign Styles --- */

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-white {
    color: white;
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.bg-gray {
    background-color: var(--color-gray-100);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-800);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section Updates */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Trust Signals */
.section-trust {
    padding: 3rem 0;
    background-color: white;
    border-bottom: 1px solid var(--color-gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.stat-number {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-800);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Grid */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.service-preview-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gray-200);
    text-align: left;
}

.service-preview-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(217, 37, 37, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.service-preview-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-preview-card p {
    color: var(--color-gray-800);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.feature-card {
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Process */
.process-timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

@media screen and (min-width: 900px) {
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: var(--color-gray-200);
        z-index: 1;
    }
}

.process-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.result-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* CTA */
.section-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f9f9f4 0%, #e5e7eb 100%);
}

/* Mobile Tweaks */
@media screen and (max-width: 900px) {

    .stats-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline::before {
        display: none;
    }
}

/* --- Visual Polish --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-800);
    border-radius: 5px;
    border: 2px solid var(--color-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

h1,
h2,
h3,
.hero-title,
.section-title {
    letter-spacing: -0.02em;
}

/* --- Final Layout Lock (Overflow Fix) --- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    box-sizing: border-box;
}

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

/* --- Vertical Spacing Optimization --- */

/* 1. Compact Header */
.header {
    padding: 0.25rem 0;
    /* tighter vertical padding */
}

.logo img {
    height: 50px;
    /* Slightly smaller logo to fit compact header */
}

/* 2. Optimize Hero Spacing */
.hero {
    padding-top: 80px;
    /* Reduced from default/100px */
    padding-bottom: 3rem;
    /* Reduced from 4rem or default */
    min-height: auto;
    /* Allow content to dictate height on short screens */
}

.hero-content {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-subtitle {
    margin-bottom: 2rem;
}

/* 3. Pull up Trust Signals */
.section-trust {
    padding: 1.5rem 0;
    /* Reduced from 3rem */
}

.stats-grid {
    gap: 1rem;
    /* tighter grid */
}

/* 4. Mobile Optimizations */
@media screen and (max-width: 900px) {
    .hero {
        padding-top: 70px;
        padding-bottom: 2rem;
        text-align: left;
        /* Ensure mobile is also left aligned */
    }

    .hero-title {
        font-size: 2.25rem;
        /* Slightly smaller to save vertical space */
    }

    .section-trust {
        padding: 1rem 0;
    }
}

/* Mega Menu Industries Styles */
.mega-menu {
    border-top: 5px solid var(--color-accent);
    /* Visual anchor */
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}

/* Desktop Styles */
@media screen and (min-width: 901px) {
    .dropdown-container.mega-dropdown {
        position: static;
    }

    .mega-menu {
        position: fixed;
        /* Fix to viewport to ensure centering */
        top: 80px;
        /* Approximate header height */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1200px;
        padding: 3rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
}

/* Ensure header container doesn't trap fixed element if context issues arise, though fixed usually escapes. */

.dropdown-container:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

.industry-col {
    display: flex;
    flex-direction: column;
}

.industry-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

/* Title Underline Colors */
.title-teal {
    border-bottom-color: #00897B;
    color: #004D40;
}

.title-blue {
    border-bottom-color: #1E88E5;
    color: #0D47A1;
}

.title-red {
    border-bottom-color: #E53935;
    color: #B71C1C;
}

.title-purple {
    border-bottom-color: #5E35B1;
    color: #311B92;
}

.title-orange {
    border-bottom-color: #FB8C00;
    color: #E65100;
}

.title-dark-purple {
    border-bottom-color: #4A148C;
    color: #4A148C;
}

.industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-list li {
    margin-bottom: 0.5rem;
}

.industry-list li a {
    color: #4b5563;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.industry-list li a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Utilities */
.mt-md {
    margin-top: 1.5rem;
}

.mt-lg {
    margin-top: 3rem;
}

/* Mobile Enhancements */
@media screen and (max-width: 1000px) {
    .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* JS Toggle */
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 1rem;
        margin-top: 1rem;
        border-top: none;
    }

    .dropdown-container:hover .mega-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .industry-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 1.5rem;
    }

    .industry-title {
        color: white;
        /* Dark background on mobile */
        border-bottom-color: rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }

    .industry-list li a {
        color: #d1d5db;
        /* Light gray */
    }

    .industry-list li a:hover {
        color: white;
        transform: translateX(5px);
    }
}