:root {
    /* Unified Color Palette */
    --primary-blue: #0A4DCC;     
    --secondary-blue: #003399;   
    --accent-blue: #20B7FF;      
    --text-main: #333333;        
    --text-muted: #555555;       
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f4f8ff;         
    
    /* Spacing & Shadows */
    --card-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* This adds a professional, modern font */
    font-family: 'Inter', sans-serif; 
}

body {
    margin: 0;
    padding: 0;
    padding-top: 100px;
}
/* =========================================
   SLEEK FIXED NAVIGATION BAR
   ========================================= */
/* =========================================
   1. FIXED NAVIGATION BAR CONTAINER
   ========================================= */
nav {
    position: fixed; 
    top: 0;
    left: 0; 
    width: 100%;
    z-index: 1000; 
    background-color: #ffffff; 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; /* Adds a tiny bit of breathing room instead of a strict height */
    box-sizing: border-box;
}

/* =========================================
   2. PROPORTIONAL LOGO
   ========================================= */
.logo img {
    height: 80px; /* Perfect size to look premium without making the bar too chunky */
    width: auto;
    display: block; 
}

/* =========================================
   3. UNIFORM BLUE NAVIGATION LINKS
   ========================================= */
nav ul, .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px; 
    margin: 0; 
    padding: 0;
}

nav ul li a, .nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue) !important; /* Forces all links to be your brand's blue */
    text-decoration: none !important; /* Keeps the text clean without default underlines */
    transition: all 0.3s ease;
}

/* Adds a subtle effect when hovering over any link */
nav ul li a:hover, .nav-links a:hover {
    color: #003d82 !important; /* Changes to a slightly darker blue on hover */
    text-decoration: underline !important;
    text-underline-offset: 20px;
}

/* =========================================
   4. BOOK APPOINTMENT BUTTON
   ========================================= */
nav ul li a.nav-btn {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 5px; 
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

nav ul li a.nav-btn:hover {
    background-color: transparent !important;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,40,120,0.75), rgba(0,80,180,0.55)), url('../images/hero.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    width: 100%;
    padding: 0 8%;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--bg-white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.btn-secondary {
    display: inline-block;
    margin-left: 15px;
    padding: 15px 35px;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-blue);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 25px;
    background: var(--bg-white);
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Standard Sections */
.about-home, .why-us, .services, .showcase, .cta {
    padding: 80px 8%;
}

.why-us, .stats {
    background: var(--bg-light);
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 40px;
    margin-bottom: 40px;
}

.about-home p {
    max-width: 900px;
    margin: auto;
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
}

/* Cards Grid (Used for Services & Why Us) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
}

/* Image Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.showcase-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
}

/* Stats Section */
.stats {
    padding: 70px 8%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-box {
    background: var(--bg-white);
    text-align: center;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.stat-box h2 {
    font-size: 42px;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Call to Action */
.cta {
    text-align: center;
    background: var(--bg-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--bg-white);
    text-align: center;
    padding: 50px 20px;
}

footer p {
    margin: 10px 0;
}

/* =========================================
   SUBPAGE SPECIFIC STYLES (About, Services)
   ========================================= */

/* 1. The Banner Background */
.page-banner {
    background: linear-gradient(rgba(0, 51, 153, 0.85), rgba(32, 183, 255, 0.75)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    text-align: center;
    padding: 120px 20px;
}

/* 2. The Main Heading (Our Purpose) */
.page-banner h1 {
    font-size: 64px; 
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff; /* Forces the text to be white */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 
}

/* 3. The Subtext */
.page-banner p {
    font-size: 22px; 
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto; /* Centers the paragraph block */
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Meet the Founder Section - Side-by-Side Layout */
.founder-section {
    background: var(--bg-white);
    padding: 80px 8%;
    text-align: center;
}

.founder-container {
    display: flex;
    align-items: center; /* Keeps the text vertically centered next to the image */
    gap: 50px; /* Adds space between the image and the text */
    max-width: 1100px; /* Made wider to fit both columns beautifully */
    margin: auto;
    background: var(--bg-light);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: left; /* Changes text to left-aligned */
}

/* The Left Column (Image) */
.founder-image-wrapper {
    /* This strictly limits the image to taking up no more than 40% of the card */
    flex: 0 0 40%; 
    max-width: 400px; /* Safety limit so it never gets too massive */
}

.founder-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Prevents the image from getting too tall */
    object-fit: cover; /* Keeps the proportions perfect without stretching */
    border-radius: 15px; 
    box-shadow: var(--card-shadow);
    display: block;
}

/* The Right Column (Text) */
.founder-text-wrapper {
    flex: 1; /* This tells the text to comfortably fill all the remaining space */
    padding-right: 20px; /* Adds a little breathing room on the right edge */
}

.founder-text-wrapper h3 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 5px;
}

.founder-title {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
}

.founder-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-main);
}

/* Make it stack properly on mobile phones */
@media (max-width: 768px) {
    .founder-container {
        flex-direction: column; /* Stacks image on top of text */
        text-align: center; /* Re-centers text for small screens */
        padding: 30px 20px;
    }
}

.about-company {
    padding: 80px 8%;
    text-align: center;
}

.about-company p {
    max-width: 900px;
    margin: 20px auto;
    color: var(--text-muted);
    font-size: 18px;
}

.mission-vision {
    background: var(--bg-light);
    padding: 80px 8%;
}

.mission-vision .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.mv-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: 0.3s;
}

.mv-box:hover {
    transform: translateY(-5px);
}

.mv-box h2 {
    margin-bottom: 20px;
}

/* Two-Column Story Layout */
.story-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
    text-align: left; /* Changes text from centered to left-aligned */
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.story-text {
    flex: 1;
}

.story-text p {
    margin-bottom: 20px; /* Adds breathing room between paragraphs */
}

/* Make it stack on smaller screens */
@media (max-width: 768px) {
    .story-flex {
        flex-direction: column;
    }
}

/* Upgraded Wide Layout for Our Journey */
.journey-text {
    max-width: 1200px; /* Spreads the text much wider across the screen */
    margin: 0 auto; 
    background: var(--bg-light); /* Adds a subtle, premium light-blue background */
    padding: 50px 80px; /* Gives the text plenty of breathing room inside the box */
    border-radius: 20px; /* Smooth, modern corners */
    border-left: 8px solid var(--primary-blue); /* Adds a professional brand accent line on the left */
    font-size: 19px; /* Slightly larger for easier reading */
    color: var(--text-main);
    line-height: 2; /* Increases the space between lines to reduce clutter */
    text-align: justify; /* Makes both the left and right edges perfectly straight */
    box-shadow: var(--card-shadow); /* Adds a soft 3D shadow effect */
}

.journey-text p {
    margin-bottom: 25px; /* Spreads the paragraphs further apart */
}

.journey-text p:last-child {
    margin-bottom: 0; /* Keeps the bottom padding neat */
}

/* Ensures it still looks good on small mobile screens */
@media (max-width: 768px) {
    .journey-text {
        padding: 30px 20px;
        text-align: left;
    }
}

/* =========================================
   FORM STYLES (Appointment & Contact Pages)
   ========================================= */
.form-section {
    padding: 80px 8%;
    background: var(--bg-light);
    text-align: center;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition-speed);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 77, 204, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    background: var(--primary-blue);
    color: var(--bg-white);
}

.submit-btn:hover {
    background: var(--secondary-blue);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

/* =========================================
   JOURNEY TIMELINE DIAGRAM
   ========================================= */
.journey-timeline-section {
    padding: 80px 8%;
    background: var(--bg-white);
}

.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* The continuous blue connecting line */
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 45px; /* Aligns the line exactly with the center of the dots */
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    z-index: 1;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

/* The Year/Label at the top */
.step-year {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    height: 25px; 
}

/* The Circle Dots on the line */
.step-dot {
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border: 5px solid var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 25px auto;
    /* This shadow "erases" the line underneath the dot so it looks clean */
    box-shadow: 0 0 0 6px var(--bg-white); 
}

/* The text below the dots */
.step-content h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Make it look beautiful and stacked on mobile phones */
@media (max-width: 768px) {
    .horizontal-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Hide the horizontal line and dots on mobile */
    .horizontal-timeline::before, 
    .step-dot {
        display: none; 
    }
    
    /* Turn the steps into modern cards */
    .timeline-step {
        background: var(--bg-light);
        padding: 25px;
        border-radius: 15px;
        border-left: 6px solid var(--primary-blue);
        text-align: left;
    }
    
    .step-year {
        margin-bottom: 5px;
        height: auto;
    }
}

/* =========================================
   SERVICES DIRECTORY GRID (Main Page)
   ========================================= */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.directory-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-top: 6px solid var(--primary-blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Styling for the new photos inside the service cards */
.card-photo {
    width: 100%;
    height: 180px; /* Forces all photos to be the exact same height */
    object-fit: cover; /* Ensures the photo fills the space without stretching */
    border-radius: 8px; /* Gives the photo soft, modern rounded corners */
    margin-bottom: 25px; /* Pushes the title down slightly */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Adds a very subtle 3D shadow to the image */
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-icon {
    margin-bottom: 20px;
}

.directory-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.directory-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the button to the bottom evenly */
}

.btn-directory {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-directory:hover {
    background: #003380;
    color: #ffffff;
}

/* =========================================
   SUB-PAGE DETAILED LAYOUTS 
   ========================================= */
.detail-section {
    padding: 80px 8%;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-content, .detail-media {
    flex: 1;
}

.detail-media img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.detail-title {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Step-by-Step Process Boxes */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0 auto;
}

.process-step {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Adds the arrow pointing right on desktop */
.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-blue);
}

.process-step h4 {
    font-size: 18px;
    color: var(--text-main);
    margin: 15px 0 10px 0;
}

.process-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .detail-row { flex-direction: column; }
    .process-grid { grid-template-columns: 1fr; }
    .process-step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        bottom: -30px;
        top: auto;
        transform: translateX(50%);
    }
}

/* =========================================
   MOBILE HAMBURGER MENU
   ========================================= */
@media (max-width: 850px) {
    /* Show the hamburger icon on mobile */
    .mobile-menu-btn {
        display: block !important;
    }

    /* Hide the normal links by default and style them as a dropdown */
    nav ul, nav .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Positions it right below the nav bar */
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        z-index: 999;
    }

    /* Add spacing to the links inside the mobile menu */
    nav ul li, nav .nav-links a {
        padding: 15px 8%;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        text-align: left;
    }

    /* This class is added by JavaScript when the button is clicked */
    .nav-active {
        max-height: 1500px !important; /* Expands the menu */
        padding: 20px 0 !important;
    }

    /* Makes the arrow a massive, easy-to-tap button for thumbs */
    .dropdown-arrow {
        display: inline-block !important;
        padding: 15px 20px !important; 
        margin: -15px -20px -15px 10px !important; 
    }
}

/* FAQ Accordion Styling */
.faq-item { border-bottom: 1px solid #e2e8f0; margin-bottom: 10px; }
.faq-question {
    width: 100%;
    padding: 20px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-radius: 8px;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-muted);
}
.faq-answer p { padding: 15px 0; }

/* Floating WhatsApp Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Official WhatsApp Green */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn img {
    width: 35px;
    height: 35px;
}

/* Make it slightly smaller on mobile */
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 200px;
    position: relative;
    padding: 0 60px; /* NEW: Adds space so text doesn't touch the arrows */
}

/* NEW: Arrow Button Styling */
.testi-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 77, 204, 0.1);
    color: var(--primary-blue);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Hide arrows on very small mobile screens so they don't block text */
@media (max-width: 600px) {
    .testi-btn { display: none; }
    .testimonial-container { padding: 0 10px; }
}
.testimonial-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}
.testimonial-slide.active { display: block; }
.testimonial-slide p { font-size: 20px; font-style: italic; color: #4a5568; margin-bottom: 20px; }
.testimonial-slide h3 { color: var(--primary-blue); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   HOMEPAGE SERVICES GRID FIX
   ========================================= */
/* Forces a perfectly balanced 3x2 grid on desktop */
.services .cards {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

/* Tablet view: Changes to 2 columns */
@media (max-width: 992px) {
    .services .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile view: Changes to 1 column */
@media (max-width: 600px) {
    .services .cards {
        grid-template-columns: 1fr;
    }
}

/* Optional: Make the cards look clickable if you link them */
.services .card {
    cursor: pointer;
    border-top: 4px solid transparent;
}

.services .card:hover {
    border-top: 4px solid var(--primary-blue);
}

/* =========================================
   STRICT SUBPAGE BANNER LOCK
   ========================================= */
.page-banner {
    height: 380px !important; /* STRICT limit: Forces the box to this exact size, no matter what */
    min-height: unset !important; /* Removes the flexible rule */
    padding: 0 !important; /* Kills any hidden padding that causes differences */
    margin: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Centers the text perfectly inside the 350px box */
    box-sizing: border-box !important; /* Forces the browser to calculate the height perfectly */
}

/* =========================================
   PROFESSIONAL CONTACT CARDS UPGRADE
   ========================================= */
/* 1. The Card Container */
.contact-grid .card {
    padding: 40px 30px !important; /* Adds generous breathing room inside the box */
    background: #ffffff;
    border-radius: 12px; /* Smooth, modern corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important; /* A very soft, premium shadow */
    border: 1px solid #f0f0f0; /* A barely-visible border for crispness */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Adds a sleek "lift" effect when the user hovers over the card */
.contact-grid .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(10, 77, 204, 0.12) !important; /* Shadow gets a slight blue tint on hover */
}

/* 2. The Heading & Icons (Call Us / Email Us) */
.contact-grid .card h3 {
    font-size: 26px !important; /* Significantly increases the title size */
    color: var(--primary-blue) !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Adds perfect spacing between the emoji icon and the text */
}

/* 3. The Details (Phone number, Email, Time) */
.contact-grid .card p {
    font-size: 18px !important; /* Bumps up the readability of the contact info */
    color: #4a5568 !important; /* A professional dark slate gray instead of plain black */
    line-height: 1.6 !important; /* Gives the two lines of text proper vertical spacing */
    margin: 0 !important;
    font-weight: 500 !important; /* Makes the text slightly bolder and sharper */
}

/* =========================================
   DROPDOWN MENU STYLING
   ========================================= */
/* 1. The Parent Container */
.dropdown {
    position: relative; /* Crucial: Keeps the dropdown anchored right below 'Services' */
}

/* 2. The Hidden Dropdown Box */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Pushes it exactly below the nav bar */
    left: 0;
    background-color: #ffffff;
    min-width: 260px; /* Makes the box wide enough for the text */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft, premium shadow */
    border-radius: 8px; /* Smooth corners */
    padding: 10px 0 !important;
    
    /* Animation settings: Hidden by default, slightly shifted down */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    
    /* Override flex settings from main nav */
    display: flex;
    flex-direction: column;
    gap: 0 !important; 
    z-index: 1000;
}

/* 3. The Hover Trigger (Slides the menu up and fades it in) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. The Dropdown Links */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block !important; /* Makes the entire row clickable, not just the text */
    padding: 12px 25px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #4a5568 !important; /* Slate gray text */
    text-decoration: none !important;
    transition: background 0.3s, color 0.3s !important;
}

/* 5. Hover Effect on Individual Links */
.dropdown-menu li a:hover {
    background-color: #f8f9fa !important; /* Very light gray background on hover */
    color: var(--primary-blue) !important;
    text-decoration: none !important; /* Prevents the underline effect from the main links */
}

/* --- DESKTOP EXCEPTION FOR 'WHY CHOOSE US' CARDS --- */
@media (min-width: 769px) {
    .four-col {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* =========================================================================
   UNIVERSAL MOBILE BANNER & HERO OPTIMIZATION
   ========================================================================= */
@media (max-width: 768px) {
    /* Optimizes the main home page hero banner container */
    .hero, 
    .page-banner {
        padding: 60px 5% !important; /* Reduces massive padding so content fits perfectly */
        text-align: center !important;
        min-height: auto !important;
    }

    /* Scales down the main massive headline text */
    .hero h1,
    .page-banner h1 {
        font-size: 28px !important; /* Drops from desktop size to a clean mobile scale */
        line-height: 1.3 !important; /* Gives breathing room between text lines */
        margin-bottom: 15px !important;
        letter-spacing: -0.5px !important;
    }

    /* Scales down and cleans up the description paragraph text */
    .hero p,
    .page-banner p {
        font-size: 14px !important; /* Makes description text readable and clean */
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important; /* Stops text from hugging the screen edges */
    }

    /* Arranges the call-to-action buttons beautifully on mobile */
    .hero .hero-buttons,
    .page-banner .banner-buttons {
        display: flex !important;
        flex-direction: column !important; /* Stacks buttons vertically on phone screens */
        gap: 12px !important; /* Adds a clean gap between the stacked buttons */
        align-items: center !important;
        width: 100% !important;
    }

    /* Standardizes button widths for touch targets */
    .hero .btn, 
    .hero .btn-secondary,
    .page-banner .btn {
        width: 100% !important;
        max-width: 280px !important; /* Prevents buttons from stretching too wide */
        padding: 12px 20px !important;
        font-size: 15px !important;
        margin: 0 auto !important; /* Centers them perfectly */
    }

    /* Scales down global content section headings below the banner */
    .detail-section h2,
    .services-directory h2,
    section h2 {
        font-size: 24px !important; /* Reduces size below banner text for perfect hierarchy */
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important; /* Keeps long words safely away from screen edges */
    }

    /* Scales down secondary item titles (like package or card names) */
    .directory-card h3,
    .detail-row h3,
    .process-step h4,
    section h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    /* Fixes the image showcase grid container on mobile devices */
    .showcase-grid,
    .image-gallery,
    div[style*="grid-template-columns: repeat(3"] {
        display: flex !important;
        flex-direction: column !important; /* Stacks the images vertically instead of keeping them side-by-side */
        gap: 20px !important; /* Adds clean breathing room between the stacked pictures */
        padding: 0 20px !important; /* Prevents the images from hugging the very edge of the phone glass */
    }

    /* Standardizes the images to look natural inside the stacked layout */
    .showcase-grid img,
    .image-gallery img,
    div[style*="grid-template-columns: repeat(3"] img {
        width: 100% !important; /* Allows them to expand to the full width of the mobile container */
        max-width: 400px !important; /* Prevents them from getting overly stretched on wider phablets */
        height: 220px !important; /* Slightly lowers the height from 280px so they look perfectly proportioned */
        margin: 0 auto !important; /* Centers each image block perfectly on the screen */
        object-fit: cover !important; /* Guarantees the visuals stay crisp and unwarped */
    }

    /* Turns the horizontal ribbon into a smooth touch-scroller */
    .features-ribbon, 
    .hero-features,
    div[style*="display: flex;"][style*="justify-content: space-between;"] {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important; /* Allows horizontal swiping */
        white-space: nowrap !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important; /* Keeps swiping buttery smooth on iPhones */
        padding: 15px 20px !important;
        gap: 25px !important;
        justify-content: flex-start !important;
    }

    /* Hides the ugly browser scrollbar while preserving the swiping feature */
    .features-ribbon::-webkit-scrollbar,
    .hero-features::-webkit-scrollbar {
        display: none !important;
    }

    /* Fixes items so they don't shrink or squish down while swiping */
    .features-ribbon div,
    .hero-features div,
    div[style*="display: flex;"][style*="justify-content: space-between;"] > div {
        flex: 0 0 auto !important; /* Prevents text compression */
        font-size: 14px !important;
        display: inline-block !important;
    }
} 

/* =========================================================================
   MASTER GLOBAL MOBILE RESPONSIVENESS OVERHAUL (MERGED & CLEAN)
   ========================================================================= */
@media (max-width: 768px) {
    
    /* 1. GLOBAL LAYOUT RESET */
    body, html {
        overflow-x: hidden !important; 
        width: 100% !important;
    }
    
    .container, main, section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;  
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. HERO & HERO BANNER OPTIMIZATION */
    .hero, .page-banner {
        padding: 60px 5% !important; 
        text-align: center !important;
        min-height: auto !important;
    }

    .hero h1, .page-banner h1 {
        font-size: 28px !important; 
        line-height: 1.3 !important; 
        margin-bottom: 15px !important;
        letter-spacing: -0.5px !important;
    }

    .hero p, .page-banner p {
        font-size: 14px !important; 
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important; 
    }

    .hero .hero-buttons, .page-banner .banner-buttons {
        display: flex !important;
        flex-direction: column !important; 
        gap: 12px !important; 
        align-items: center !important;
        width: 100% !important;
    }

    /* 3. OPTIMIZED FEATURE RIBBON (2x2 Clean Grid Option) */
    .features-ribbon, .hero-features,
    div[style*="display: flex;"][style*="justify-content: space-between;"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px 10px !important; 
        padding: 20px 15px !important;
        background: #f8fafc !important; 
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .features-ribbon div, .hero-features div,
    div[style*="display: flex;"][style*="justify-content: space-between;"] > div {
        font-size: 13px !important; 
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 4. UNIVERSAL GRID & FLEX DESTRUCTION */
    .directory-grid, .process-grid, .grid,
    [style*="grid-template-columns: repeat(3"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important; 
        width: 100% !important;
    }

    /* 5. Z-PATTERN & DETAIL ROW FIXES */
    .detail-row.mobile-reverse, [style*="flex-wrap: wrap"] {
        display: flex !important;
        flex-direction: column !important; 
        gap: 20px !important;
    }
    
    .detail-media, .detail-content, [style*="flex: 1"] {
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
    }

    /* 6. CARD & DIRECTORY BOX OPTIMIZATIONS */
    .directory-card, .process-step, .faq-item {
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 20px !important; 
        margin: 0 0 15px 0 !important;
        box-sizing: border-box !important;
        transform: none !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }

    /* 7. UNIVERSAL IMAGE FIX */
    img:not(.logo img) {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }

    .card-photo, .directory-card img {
        height: 200px !important;
        border-radius: 8px !important;
    }

    /* Standardizes the homepage showcase images layout */
    .showcase-grid img, .image-gallery img {
        height: 220px !important;
        margin: 0 auto !important; 
    }

    /* 8. TYPOGRAPHY HARMONY */
    h2 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    p, li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* 9. TOUCH-TARGET BUTTON FIXES */
    .btn, .btn-directory, button, input, select, textarea {
        width: 100% !important;
        max-width: 280px !important; 
        padding: 12px 20px !important;
        font-size: 16px !important; 
        box-sizing: border-box !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    /* 10. FOOTER RESET */
    footer {
        padding: 40px 20px !important;
        text-align: center !important;
    }

    /* 2. HERO & HERO BANNER OPTIMIZATION */
    .hero {
        padding: 50px 5% 35px 5% !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .hero h1, .page-banner h1 {
        font-size: 26px !important; 
        line-height: 1.3 !important; 
        margin-bottom: 12px !important;
    }

    .hero p, .page-banner p {
        font-size: 14px !important; 
        line-height: 1.5 !important;
        margin-bottom: 40px !important;
        padding: 0 10px !important;
    }
 
/* --- HERO BUTTONS SIDE-BY-SIDE FIX --- */
    .hero .hero-buttons, 
    .page-banner .banner-buttons,
    div[class*="buttons"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Strictly forces them onto a single horizontal line */
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important; /* Perfect uniform space between them */
        width: 100% !important;
        margin-top: 28px !important;
        clear: both !important;
    }

    .hero .btn, 
    .hero .btn-secondary,
    .page-banner .btn,
    div[class*="buttons"] a {
        display: inline-flex !important; /* Centers the text perfectly inside the button */
        justify-content: center !important;
        align-items: center !important;
        flex: 1 1 50% !important; /* Tells both buttons to take up exactly equal space */
        max-width: 160px !important; /* Caps the width so they don't stretch too far */
        margin: 0 !important; /* Instantly kills the diagonal overlapping bug */
        padding: 0 10px !important; 
        font-size: 13.5px !important; 
        font-weight: 600 !important;
        white-space: nowrap !important;
        height: 44px !important; /* Locks them to the exact same vertical height */
        box-sizing: border-box !important;
    }
    
    /* Makes the inner page sub-banners (like Our Purpose) compact and short */
    .page-banner,
    section[class*="banner"],
    div[class*="banner"] {
        padding: 35px 5% !important; /* Heavily slashes vertical height on mobile */
        min-height: auto !important;
        height: auto !important;
    }

    .hero h1, .page-banner h1 {
        font-size: 26px !important; /* Slightly smaller to fit short banners perfectly */
        line-height: 1.2 !important; 
        margin-bottom: 10px !important;
        letter-spacing: -0.5px !important;
    }

    .hero p, .page-banner p {
        font-size: 14px !important; 
        line-height: 1.5 !important;
        max-width: 100% !important;
        margin-bottom: 0px !important; /* Removes bottom spacing block lag */
        padding: 0 10px !important; 
    }

    .hero .hero-buttons, .page-banner .banner-buttons {
        display: flex !important;
        flex-direction: column !important; 
        gap: 12px !important; 
        align-items: center !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
}

/* =========================================================================
   RESPONSIVE OVERHAUL: MOBILE BANNER & RIBBON OPTIMIZATION
   ========================================================================= */
@media (max-width: 768px) {
    
    /* Tightens the subpage banner padding so it doesn't drop down too long */
    .page-banner {
        padding: 45px 5% !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Sets the subpage banner header text size perfectly proportional */
    .page-banner h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    /* Sets the subpage description text balance */
    .page-banner p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
    }

    /* OVERHAUL: Converts the broken horizontal ribbon into a crisp 2x2 grid */
    .trust-bar,
    .features-ribbon,
    .hero-features,
    div[style*="display: flex;"][style*="justify-content: space-between;"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Forces 2 columns side-by-side */
        gap: 15px 10px !important; /* Perfect uniform spatial gaps */
        padding: 20px 10px !important; /* Prevents viewport clipping edge leakage */
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        width: 100% !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    }

    /* Formats the individual badge text blocks inside the new grid */
    .trust-bar div,
    .features-ribbon div,
    .hero-features div,
    div[style*="display: flex;"][style*="justify-content: space-between;"] > div {
        font-size: 13px !important; /* Extremely readable font height for small viewports */
        font-weight: 600 !important;
        color: var(--primary-blue) !important;
        white-space: normal !important; /* Allows text to drop cleanly to a second line instead of clipping */
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px !important;
    }
}

/* --- SURGICAL FIX FOR HERO BUTTONS ONLY --- */
.hero-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px; /* This creates the breathing room below the paragraph */
}

@media (max-width: 768px) {
    .hero-button-wrapper {
        flex-direction: row !important; /* Forces side-by-side on mobile */
        gap: 10px !important; /* Small gap between buttons */
    }
    
    .hero-button-wrapper .btn,
    .hero-button-wrapper .btn-secondary {
        flex: 1 1 50% !important; /* Splits the space perfectly in half */
        width: 100% !important;
        max-width: 160px !important; /* Keeps them from getting too wide */
        padding: 12px 5px !important;
        font-size: 13px !important; /* Shrinks text to fit */
        margin: 0 !important;
        white-space: nowrap !important; /* Stops text from dropping to a second line */
        box-sizing: border-box !important;
    }
}

/* --- SURGICAL FIX FOR TESTIMONIAL ARROWS ON MOBILE --- */
@media (max-width: 768px) {
    
    /* Rescues the arrows from the global button stretch rule */
    .testi-btn {
        display: flex !important;
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        padding: 0 !important;
        border-radius: 50% !important; /* Forces them back into perfect circles */
        top: auto !important; /* Removes them from the vertical center */
        bottom: -10px !important; /* Drops them neatly below the text */
        transform: none !important;
        background: rgba(10, 77, 204, 0.1) !important;
        margin: 0 !important;
    }
    
    /* Positions them nicely next to each other at the bottom */
    .prev-btn {
        left: 30% !important;
    }
    
    .next-btn {
        right: 30% !important;
    }

    /* Adds extra padding so the text has breathing room above the buttons */
    .testimonial-container {
        padding: 0 10px 60px 10px !important; 
    }
}

/* --- UNIVERSAL MOBILE ROW FLIPPER --- */
@media (max-width: 768px) {
    .flip-on-mobile {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Grabs the top item (the image) and forces it to the bottom */
    .flip-on-mobile > :first-child {
        order: 2 !important; 
    }
    
    /* Grabs the bottom item (the text) and pulls it to the top */
    .flip-on-mobile > :last-child {
        order: 1 !important; 
    }
}

/* --- MOBILE DROPDOWN MENU FIX --- */
@media (max-width: 850px) {
    .dropdown-menu {
        position: static !important; 
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important; 
        padding: 5px 0 10px 20px !important; 
        background-color: transparent !important; 
        border: none !important; /* Kills any weird borders */
        border-left: 3px solid var(--primary-blue) !important; 
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .dropdown-menu li {
        border-bottom: none !important; /* Removes the thick lines between sub-links */
        padding: 0 !important;
    }

    .dropdown-menu li a {
        padding: 10px 15px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-muted) !important;
        border-bottom: none !important;
    }
}

/* --- GLOBAL MOBILE ACCORDION DROPDOWN MENU --- */
@media (max-width: 850px) {
    nav ul.dropdown-menu {
        max-height: 1000px !important; 
        overflow: visible !important;
        display: none !important; /* Hidden by default */
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 10px 20px !important;
        border-left: 3px solid var(--primary-blue) !important;
        margin-top: 10px !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    /* The class that JavaScript adds to pop it open */
    nav ul.dropdown-menu.show-mobile {
        display: block !important; 
    }
    
    nav ul.dropdown-menu li {
        border-bottom: none !important;
        padding: 0 !important;
    }
    
    nav ul.dropdown-menu li a {
        padding: 12px 15px !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-muted) !important;
        border: none !important;
    }
}