/* Custom Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; color: #444; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 28px; font-weight: 800; text-decoration: none; color: #091E3E; }
.logo span { color: #06A3DA; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li a { text-decoration: none; margin-left: 30px; color: #091E3E; font-weight: 700; transition: 0.3s; }
.nav-links li a:hover { color: #06A3DA; }
.btn-nav { background: #06A3DA; color: #fff !important; padding: 10px 20px; border-radius: 4px; }

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero h4 { color: #06A3DA; font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
.hero h1 { font-size: 55px; max-width: 800px; margin-bottom: 30px; }
.hero-btns .btn-primary { background: #06A3DA; color: white; padding: 15px 40px; text-decoration: none; border-radius: 4px; margin: 10px; display: inline-block; font-weight: bold;}
.hero-btns .btn-secondary { background: #fff; color: #091E3E; padding: 15px 40px; text-decoration: none; border-radius: 4px; margin: 10px; display: inline-block; font-weight: bold;}

/* Features Grid */
.features { padding: 80px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #f8f9fa; padding: 40px; text-align: center; transition: 0.4s; border-bottom: 5px solid transparent; }
.card:hover { transform: translateY(-10px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: #06A3DA; }
.card .icon { font-size: 50px; margin-bottom: 20px; }

/* Shared Utilities */
.text-center { text-align: center; }
.section-subtitle { color: #06A3DA; letter-spacing: 1px; margin-bottom: 5px; }
.section-title { font-size: 32px; color: #091E3E; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* About Section */
.about { padding: 100px 0; }
.about-img img { width: 100%; border-radius: 8px; box-shadow: 20px 20px 0px #06A3DA; }
.check-list { list-style: none; margin: 20px 0; }
.check-list li { margin-bottom: 10px; font-weight: 700; color: #091E3E; }

/* Service Cards */
.services { background: #f8f9fa; padding: 100px 0; }
.service-card { background: #fff; padding: 40px; border-radius: 5px; transition: 0.3s; }
.service-card.active { background: #06A3DA; color: #fff; }
.service-card.active h3 { color: #fff; }

/* Pricing Cards */
.pricing { padding: 100px 0; }
.price-card { padding: 50px 30px; background: #f8f9fa; border-radius: 5px; transition: 0.4s; position: relative; }
.price-card.featured { background: #fff; box-shadow: 0 0 30px rgba(0,0,0,0.1); transform: scale(1.05); z-index: 1; border-top: 5px solid #06A3DA; }
.price { font-size: 45px; font-weight: 800; color: #06A3DA; margin: 20px 0; }
.price span { font-size: 18px; color: #666; }
.price-card ul { list-style: none; margin-bottom: 30px; }
.price-card li { padding: 10px 0; border-bottom: 1px solid #ddd; }

/* Contact Section */
.contact { padding: 100px 0; background: #fff; }
.info-item { display: flex; align-items: center; margin-bottom: 30px; }
.info-item .icon { 
    width: 60px; height: 60px; background: #06A3DA; color: #fff; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 4px; margin-right: 20px; font-size: 24px;
}

.quote-form { background: #091E3E; padding: 40px; border-radius: 8px; }
.form-grid { display: grid; gap: 20px; }
.form-grid input, .form-grid select { 
    padding: 15px; border: none; border-radius: 4px; font-size: 16px; width: 100%;
}
.btn-full { 
    background: #06A3DA; color: #fff; padding: 15px; border: none; 
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 18px; 
}

/* Footer Styling */
.footer { background: #091E3E; color: #fff; padding: 80px 0 0 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.logo.light { color: #fff; }
.footer-col h4 { margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { 
    content: ''; position: absolute; left: 0; bottom: 0; 
    width: 50px; height: 2px; background: #06A3DA; 
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #fff; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { padding-left: 10px; color: #06A3DA; }
.footer-bottom { 
    margin-top: 50px; padding: 25px 0; text-align: center; 
    border-top: 1px solid rgba(256,256,256,0.1); font-size: 14px; 
}

/* Page Header / Breadcrumbs */
.page-header {
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)), url('header-bg.jpg');
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}
.page-header h1 { font-size: 50px; margin-bottom: 10px; }
.page-header p a { color: #06A3DA; text-decoration: none; }

/* Search Overlay */
.search-overlay {
    display: none; position: fixed; top: 0; left: 0; 
    width: 100%; height: 100%; background: rgba(9, 30, 62, 0.9);
    z-index: 9999; justify-content: center; align-items: center;
}
.search-content input {
    width: 300px; padding: 15px; border: none; font-size: 20px;
}
/* Breadcrumb Header Styling */
.breadcrumb-header {
    background: linear-gradient(rgba(9, 30, 62, 0.8), rgba(9, 30, 62, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    padding: 80px 0;
    color: #fff;
}
.breadcrumb-header a { color: #06A3DA; text-decoration: none; }

/* Team Section Styling */
.team { padding: 100px 0; background: #f8f9fa; }
.team-item { background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.team-item img { width: 100%; height: auto; display: block; }
.team-text { padding: 25px; }
.team-text h4 { color: #091E3E; font-size: 20px; }
.team-text p { color: #06A3DA; font-weight: bold; margin-bottom: 0; }

/* Contact Page Grid Adjustments */
.contact-page .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-page .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Top Bar */
.top-bar {
    background: #091E3E;
    color: rgba(255,255,255,0.7);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.top-info span { margin-right: 20px; }
.top-info i { color: #06A3DA; margin-right: 8px; }
.top-social a { color: #fff; margin-left: 15px; transition: 0.3s; }
.top-social a:hover { color: #06A3DA; }

/* Navigation Tweaks */
.navbar { transition: 0.5s; }
.sticky-nav { 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    background: #091E3E; padding: 10px 0 !important; 
}

/* Hero Slider */
.slider-container { position: relative; height: 100vh; overflow: hidden; margin-top: -1px; }
.slide {
    position: absolute; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.2s ease-in-out;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { text-align: center; color: white; max-width: 900px; padding: 0 20px; }

/* Text Animations */
.slide h4 { font-size: 24px; color: #06A3DA; letter-spacing: 2px; margin-bottom: 20px; }
.slide h1 { font-size: 64px; font-weight: 800; margin-bottom: 30px; line-height: 1.2; }
.slide.active h1, .slide.active h4, .slide.active .hero-btns {
    animation: fadeInUp 1s both;
}

/* Slider Controls */
.prev, .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(6, 163, 218, 0.3); border: none; color: white;
    padding: 20px; cursor: pointer; z-index: 10; font-size: 24px; transition: 0.3s;
}
.prev:hover, .next:hover { background: #06A3DA; }
.prev { left: 30px; border-radius: 0 5px 5px 0; }
.next { right: 30px; border-radius: 5px 0 0 5px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Ensure the default navbar is transparent or has its base color */
.navbar {
    position: absolute; /* Sits on top of the slider */
    width: 100%;
    top: 50px; /* Sits below the top-bar */
    left: 0;
    z-index: 999;
    background: transparent;
    transition: all 0.5s ease;
    padding: 20px 0;
}

/* The STICKY state (triggered by your JavaScript) */
.navbar.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #091E3E !important; /* Solid Dark Blue */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 10px 0;
    animation: fadeInDown 0.5s; /* Smooth slide-in effect */
}

/* Make sure links are white and visible on the blue background */
.navbar.sticky-nav .nav-links li a {
    color: #ffffff !important;
}

.navbar.sticky-nav .logo {
    color: #ffffff !important;
}

/* Optional: Smooth animation for the sticky bar appearing */
@keyframes fadeInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; line-height: 1.6; color: #6B7280; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
a { text-decoration: none; }
ul { list-style: none; }

/* Navigation */
.logo { font-size: 30px; font-weight: 800; color: #06A3DA; }
.logo span { color: #091E3E; }
.nav-links { display: flex; align-items: center; }
.nav-links li a { color: #fff; padding: 10px 15px; font-weight: 700; transition: 0.3s; }
.nav-links li a:hover { color: #06A3DA; }

/* Buttons */
.btn-primary { background: #06A3DA; color: white; padding: 12px 30px; border-radius: 5px; display: inline-block; font-weight: 700; }
.btn-secondary { background: #091E3E; color: white; padding: 12px 30px; border-radius: 5px; display: inline-block; font-weight: 700; margin-left: 10px; }
.btn-nav { background: #06A3DA; color: white !important; padding: 10px 20px !important; border-radius: 5px; margin-left: 15px; }

/* Slider */
.slider-container { position: relative; height: 100vh; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; }
.slide-content h4 { color: #06A3DA; font-size: 24px; letter-spacing: 2px; }
.slide-content h1 { color: #fff; font-size: 60px; font-weight: 800; margin: 20px 0; }

/* Features Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 80px 0; }
.card { background: #fff; padding: 40px; box-shadow: 0 0 45px rgba(0,0,0,0.08); text-align: center; transition: 0.5s; }
.card:hover { transform: translateY(-10px); background: #06A3DA; color: #fff; }
.card .icon { font-size: 50px; color: #06A3DA; margin-bottom: 20px; }
.card:hover .icon { color: #fff; }


/* =========================================
   FIX: Form & Select Styling
   ========================================= */
.quote-form select {
    appearance: none; /* Removes default browser arrow to style customly */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
    color: #444; /* Dark text for the dropdown options */
}

/* Ensure form inputs are visible inside the dark blue background */
.quote-form .form-grid input, 
.quote-form .form-grid select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #ffffff; /* Solid white background so text is readable */
    color: #333;
    outline: none;
    transition: 0.3s;
}

.quote-form .form-grid input:focus, 
.quote-form .form-grid select:focus {
    border-color: #06A3DA;
    box-shadow: 0 0 8px rgba(6, 163, 218, 0.2);
}

/* =========================================
   FIX: Pricing Card Selection
   ========================================= */
.price-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* This class is added via JavaScript when a user clicks */
.price-card.selected {
    border-color: #06A3DA;
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hover effect to show it's clickable */
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Update this in your style.css */
.quote-form select {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    background-color: #ffffff !important; /* Ensure background is white */
    color: #333 !important; /* Ensure text is dark */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    appearance: auto; /* This restores the standard browser dropdown arrow */
    -webkit-appearance: menulist; 
    display: block;
}

/* Specific styling for inner pages (About, Service, Contact) */
.navbar.nav-solid {
    position: relative; /* Stays at the top naturally */
    top: 0;
    background: #ffffff !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ensure links are dark on the white background */
.navbar.nav-solid .nav-links li a,
.navbar.nav-solid .logo {
    color: #091E3E !important;
}

/* When scrolling, it still turns blue (inherited from .sticky-nav) */
.navbar.nav-solid.sticky-nav {
    position: fixed;
    background: #091E3E !important;
}

.navbar.nav-solid.sticky-nav .nav-links li a,
.navbar.nav-solid.sticky-nav .logo {
    color: #ffffff !important;
}

/* Service Card Interactivity */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Style for the 'selected' or 'active' card */
.service-card.active {
    background: #06A3DA !important;
    border-color: #06A3DA;
}

.service-card.active h3, 
.service-card.active p,
.service-card.active .icon i {
    color: #fff !important;
}

/* --- Inner Page Navbar Fix (White Background State) --- */
.navbar.nav-solid {
    background: #ffffff !important;
    position: relative; /* Sits naturally below top-bar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Make logo and links dark blue when on white background */
.navbar.nav-solid .logo,
.navbar.nav-solid .nav-links li a {
    color: #091E3E !important;
}

/* Search icon and hover states */
.navbar.nav-solid #search-btn i {
    color: #091E3E;
}

.navbar.nav-solid .nav-links li a:hover {
    color: #06A3DA !important;
}

/* --- Sticky State (When Scrolling Down) --- */
.navbar.nav-solid.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #091E3E !important; /* Back to dark blue */
    z-index: 1000;
    animation: slideDown 0.5s;
}

/* Turn text white again when nav turns blue on scroll */
.navbar.nav-solid.sticky-nav .logo,
.navbar.nav-solid.sticky-nav .nav-links li a,
.navbar.nav-solid.sticky-nav #search-btn i {
    color: #ffffff !important;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Ensure the WEBS span keeps its brand color on inner pages */
.navbar.nav-solid .logo span {
    color: #06A3DA !important;
}

/* Ensure it stays blue even when scrolling (sticky nav) */
.navbar.nav-solid.sticky-nav .logo span {
    color: #06A3DA !important;
}
