/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --express-blue: #313A87;
    --express-orange: #E15A2D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* Utility Classes */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.flex-row { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.section-padding { padding: 80px 0; }
.center { text-align: center; }

/* Shared Theming */
.btn-theme { background-color: var(--express-orange); color: white; padding: 12px 24px; border-radius: 4px; font-weight: 700; display: inline-block; transition: background-color 0.3s ease; }
.btn-theme:hover { background-color: var(--express-blue); }
.accent-bar { background-color: var(--express-orange); height: 4px; width: 60px; margin-bottom: 15px; }
h1 span, h2 span { color: var(--express-orange); }
.sub-heading, .tagline { color: var(--express-orange); font-weight: 700; letter-spacing: 1px; }
.feat-card i, .l-item i, .acc-header i { color: var(--express-orange); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar { background-color: var(--express-blue); color: white; padding: 10px 0; font-size: 14px; }
.top-left span { margin-right: 20px; }
.top-left i { margin-right: 8px; color: var(--express-orange); }
.top-right a { margin-left: 15px; color: white; }
.top-right a:hover { color: var(--express-orange); }

.header { background: #fff; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.navbar ul li { margin: 0 15px; }
.navbar ul li a { font-weight: 600; font-size: 14px; position: relative; }
.navbar ul li a:hover, .navbar ul li a.active { color: var(--express-orange); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--express-blue); }

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */
.hero { position: relative; height: 80vh; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; }

/* The background slider container */
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }

/* The gradient overlay */
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(49,58,135,0.95) 0%, rgba(49,58,135,0.5) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin: 20px 0; }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; }
.hero-btns { display: flex; align-items: center; gap: 20px; }
.video-btn { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.video-btn i { background: #fff; color: var(--express-blue); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.video-btn:hover i { background: var(--express-orange); color: #fff; }

/* ==========================================================================
   Post-Header Sliding Carousel (200x200 squares)
   ========================================================================== */
.mini-carousel-section { background: #f1f1f1; padding: 40px 0; overflow: hidden; white-space: nowrap; }
.carousel-track { display: inline-flex; gap: 20px; animation: scroll-carousel 20s linear infinite; }
.carousel-track:hover { animation-play-state: paused; /* pauses on hover */ }

/* Image Autofit Styling */
.carousel-track img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex-shrink: 0; }

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6 - 20px * 6)); } /* Adjust based on image count to loop perfectly */
}

/* ==========================================================================
   Other Sections (Features, Footer, etc.)
   ========================================================================== */
.features { margin-top: -50px; position: relative; z-index: 10; }
.feat-card { background: #fff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s ease; border-bottom: 4px solid transparent; }
.feat-card:hover, .feat-card.active { transform: translateY(-10px); border-bottom-color: var(--express-orange); }
.feat-card i { font-size: 2.5rem; margin-bottom: 20px; }

.footer { background-color: var(--express-blue); color: white; padding: 80px 0 20px; }
.footer p { color: #ccc; margin-bottom: 15px; }
.f-socials { display: flex; gap: 15px; margin-top: 20px;}
.f-socials a { background: rgba(255,255,255,0.1); width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center;}
.f-socials a:hover { background: var(--express-orange); }
.f-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); color: #999; }

/* ==========================================================================
   Responsive & Mobile Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    .header-action { display: none; } /* Hide quote button on mobile nav */
    
    /* Hamburger & Mobile Menu Logic */
    .hamburger { display: block; }
    .navbar { position: absolute; top: 100%; left: -100%; width: 100%; background: #fff; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); transition: left 0.3s ease; }
    .navbar.nav-active { left: 0; }
    .navbar ul { flex-direction: column; align-items: center; gap: 20px; }

    .hero-content h1 { font-size: 2.5rem; }
    .hero { text-align: center; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .features { margin-top: 40px; }
}