/* --- Base Reset and Typography --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Light grey/off-white background */
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 500;
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

a {
    text-decoration: none;
    color: #001f3f; /* Deep Navy Blue */
    transition: color 0.3s;
}

a:hover {
    color: #a3a3a3; /* Light Grey Accent for text hover */
}

a, p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
   
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Color Variables --- */
:root {
    --navy-blue: #001f3f;
    --grey-accent: #c0c0c0; /* Subtle grey for accents/borders */
    --light-grey: #f4f7f9;
    --white: #ffffff;
    --medium-grey: #c0c0c0;
    --pink: #ec436d;
}

/* --- Header and Navigation --- */
header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

header {
    position: fixed;
    z-index: 999;
    width: 100%;

}

.logo {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--white);
}



/* Target the link inside the logo paragraph */
.logo a {
    /* Ensures the logo text is the primary color*/
    color: var(--white); 
    text-decoration: none; 
    /* Ensures the link text uses the font size/weight defined for the logo */
    font-weight: 700; 
    /* Ensures it displays block/inline-block to fill the logo area, if needed */
    display: inline-block;
}

/* Define a slight hover effect for the logo link */
.logo a:hover {
    color: var(--light-blue); /* Changes color on hover */
    opacity: 0.9;
}

.nav a {
    color: var(--white);
    margin-left: 25px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav a:hover {
    color: var(--light-blue);
}

.nav a:active {
   color: var(--pink) !important;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    color: var(--white);
    text-align: center;
    
    /* CRITICAL FIX 1: Use min-height (in vh) to establish a stable, full-screen-like height */
    min-height: 75vh; /* Sets the height to 75% of the viewport height (stable) */

    /* CRITICAL FIX 2: Push the content down below the header */
    /* This padding creates the necessary space for the header */
    padding-top: 100px; /* Adjust this value (e.g., 80px-120px) to clear your header */
    padding-bottom: 50px; /* Standard bottom padding */

    background-image: url('assets/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/* --- Hero Section --- */

/* WEB P OPTIMIZATION */
/* Test if the browser supports the WebP format. */
@supports (background-image: url('data:image/webp;base64,')) {
    /* If the browser supports WebP, this rule overrides the JPG fallback above. */
    .hero {
        background-image: url('assets/hero-bg.jpg'); 
    }
}

.hero-overlay {
    /* POSITIONING: Match the parent hero section exactly */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    
    /* STYLING */
    background-color: rgba(0, 31, 63, 0.4); 
    z-index: 1; /* Keep the overlay filter behind the content */
    
    /* CONTENT ALIGNMENT: Ensures the content inside is centered within the overlay */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text/CTA */
    align-items: center;
    
    /* Reset padding here as the space is now defined by the .hero block */
    padding: 0 0px; 
}

/* Ensure the content itself remains visible and centered */
.hero-overlay h1, .hero-overlay h2, .hero-overlay p, .hero-overlay a {
    position: relative;
    z-index: 2; /* Ensures text is always above the overlay color filter */
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--grey-accent); /* Monochrome accent */
    padding-bottom: 10px;
    display: inline-block;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-overlay-title h2
 {
 font-size: 2.8em;
 }

.btn-primary {
    background-color: var(--grey-accent); /* Button base color */
    color: var(--navy-blue);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
}

/* --- Feature Boxes --- */
.features {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.feature-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature-box {
    flex: 1;
    padding: 30px;
    background-color: var(--light-grey);
    border-top: 5px solid var(--navy-blue);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-box h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.feature-box .icon {
    font-size: 2.5em;
    color: var(--navy-blue); /* Monochrome icon color */
    margin-bottom: 15px;
}

/* --- Internal Page Layout Fixes --- */

/* 1. Fixes Header Overlap and Content Overflow on ALL Internal Pages */
/* Use this class for any static section immediately following the fixed header */
.pt-clearance {
    /* 🚀 INCREASED CLEARANCE: Ensuring header and title have enough breathing room */
    padding-top: 140px !important; 
    /* Prevent potential horizontal overflow from margin/padding interaction */
    box-sizing: border-box; 
    width: 100%;
}

/* 2. Desktop Two-Column Layout (Remaining the same) */
.split-content {
    display: flex;
    gap: 40px; 
}

/* 3. Responsive Stacking for Two-Column Layout (Remaining the same) */
@media (max-width: 768px) {
    
    /* Ensure no residual overflow from the container/body */
    body {
        overflow-x: hidden;
    }
    
    /* Stack the content columns vertically on smaller screens */
    .split-content {
        flex-direction: column;
        gap: 30px; 
    }
    
    /* Adjust internal page header text size for mobile readability */
    .page-header h1 {
        font-size: clamp(1.8em, 7vw, 2.5em); 
    }
    
    /* Ensure the clean-list is styled consistently */
    .clean-list {
        list-style: none;
        padding-left: 0;
    }
}

/* --- Services Page Layout Rules --- */

/* 1. Desktop Two-Column List Grid (Replacing columns: 2) */
.service-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px; /* Vertical gap 20px, horizontal gap 40px */
}

.service-list-grid ul {
    /* Ensures lists are clean and flow correctly in the grid */
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* 2. Desktop Anchor Nav Layout (Replacing display: flex) */
.anchor-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 3. Mobile Responsiveness for Services Page (768px and below) */
@media (max-width: 768px) {
    
    /* Force the list columns to stack vertically */
    .service-list-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap between stacked columns */
    }

    /* Ensure list items have visual separation on mobile */
    .service-list-grid ul {
        margin-bottom: 20px;
    }
    
    /* Force anchor navigation to stack or use fewer columns */
    .anchor-nav-grid {
        grid-template-columns: 1fr; /* Stack buttons vertically */
        gap: 15px;
        padding-bottom: 0 !important; /* Adjust padding when stacked */
    }
}

/* --- Apostille Process Grid --- */

.process-grid {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.process-grid .step {
    flex: 1; /* Ensures equal width distribution on desktop */
}

/* Mobile Responsiveness for Process Grid */
@media (max-width: 768px) {
    .process-grid {
        flex-direction: column; /* Stacks the steps vertically on mobile */
        gap: 30px;
    }
}

/* --- Contact Page Specific Styles --- */

/* Ensures both the contact details and the form container have the border/padding */
.contact-box {
    flex: 1; 
    padding: 20px; 
    /* ✅ CHANGE: Switched border color to NAVY BLUE for high contrast */
    border: 1px solid var(--medium-grey); 
    border-radius: 5px;
    height: fit-content; 
}

/* Styles for the contact form elements */
.contact-form {
    display: flex; 
    flex-direction: column; 
    gap: 15px; /* Spacing between form fields */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 10px; 
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    width: 100%; /* Ensure full width within the container */
    box-sizing: border-box; /* Crucial for padding/border not causing overflow */
}

.contact-form textarea {
    resize: vertical; /* Allow resizing only vertically */
}

/* Inherits mobile stacking from the general .split-content rule */

/* --- Content Section --- */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.about-snapshot {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--grey-accent);
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* --- Footer --- */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--grey-accent);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--white);
    opacity: 0.8;
}

.footer-col a:hover {
    color: var(--grey-accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background-color: #001224; 
    font-size: 0.9em;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .feature-grid, .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 2em;
    }
    .about-snapshot {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-image {
        margin-bottom: 20px;
    }
}

/* --- MOBILE RESPONSIVENESS (Max Width 768px) --- */

/* Base adjustment for a fluid look */
h1 {
    /* Using clamp for fluid typography */
    font-size: clamp(1.8rem, 6vw, 2.5rem); 
}

/* Adjust the main header content for small screens */
@media (max-width: 768px) {
    
    /* 1. Header Layout Adjustments */
    header .container {
        /* Allow content to wrap if absolutely necessary, but prioritize vertical stacking */
        flex-wrap: wrap; 
        /* Center content horizontally */
        justify-content: center !important; 
        /* Increase vertical padding slightly */
        padding: 80px 20px 10px 20px;
        
    }
    
    /* Center the logo/h1 */
    .logo {
        width: 100%; /* Take full width */
        text-align: center;
        margin-bottom: 10px !important;
    }
    
    /* 2. Hide Full Navigation and Show Only Contact CTA */
    nav.nav {
        /* Hide the regular links and only show the phone number/hamburger icon */
        flex-direction: column; 
        width: 100%;
        gap: 0;
        align-items: center;
    }

    /* Hide individual links (except the phone number CTA) */
    nav.nav a {
        display: none; 
    }

    /* Ensure the phone number CTA (the last child) is visible */
    nav.nav a:last-child {
        display: block; /* Make the call button visible */
        margin: 10px auto !important;
        font-size: 1.1em;
        width: 80%; /* Make the button tappable */
        text-align: center;
    }
    
    /* Targeted fix for the primary hero button */
    .hero .btn-primary {
        /* Ensure the button is treated as a block for centering */
        display: block; 
        
        /* Set a fixed maximum width suitable for content */
        max-width: 320px; 
        
        /* Centers the button horizontally under the text */
        margin: 20px auto; 
        
        /* Allow text to wrap cleanly onto multiple lines */
        white-space: normal !important; 
        line-height: 1.3;
        
        /* Use a slightly smaller, fixed font size to ensure fit */
        font-size: 1em; 
        
        /* Increase vertical padding slightly for easier tapping */
        padding: 15px 10px; 
    }
    
    /* --- Content Layout Adjustments (for the next step) --- */

    /* Ensure the main content container stacks items vertically */
    .content-section .container {
        flex-direction: column;
        gap: 20px !important; 
    }

    /* Feature Grids (e.g., home page services) stack into one column */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* About Snapshot Image Stacking */
    .about-snapshot {
        flex-direction: column;
    }
    .about-image {
        margin-top: 20px;
        order: -1; /* Place image above text on mobile for better visual hierarchy */
    }
    
    /* 1. Content Stacking (Contact & About Pages) */
    
    /* Ensure the main content container stacks items vertically */
    .content-section .container {
        /* Overrides the desktop's display: flex; for contact/about page */
        flex-direction: column;
        gap: 20px !important; 
    }

    /* 2. Feature Grid Adaptation (Homepage Services) */
    
    /* Feature Grids (e.g., home page services) stack into one column */
    .feature-grid {
        grid-template-columns: 1fr !important;
        /* Add more vertical space between stacked feature boxes */
        gap: 25px !important; 
    }

    /* 3. About Snapshot Adjustments */
    
    /* Force the image/text columns to stack */
    .about-snapshot {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 20px;
        /* Order the image BEFORE the text on mobile for better visual hierarchy */
        order: -1; 
    }

    /* Ensure image fills width and maintains aspect ratio */
    .about-image img {
        width: 100%; 
        height: auto;
    }

    /* 4. Fluid Padding with CLAMP */
    
    /* Use clamp for fluid vertical spacing in all sections */
    .content-section {
        /* Padding scales smoothly between 40px and 80px */
        padding: clamp(40px, 6vh, 80px) 0; 
    }
        
}

.faq-item { background-color: var(--white);border: 1px solid var(--grey-accent);border-radius: 8px;
margin-bottom: 10px;padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-blue);
    padding: 5px 0;
}
.faq-item p,
.faq-item ul {
    padding-top: 10px;
    padding-left: 16px !important;
    margin-bottom: 0;
    color: #555;
}
   
.faq-item[open] summary {
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 10px;
}

/* --- WhatsApp Floating Button Styles --- */

.whatsapp-float img {
    width: 50px;
    height: 50px;
    /* Ensure the image is a block element for consistent sizing */
    display: block; 
}

.whatsapp-float {
    /* 1. POSITIONING: Fixes the position relative to the viewport (the screen) */
    position: fixed !important;
    
    /* 2. PLACEMENT: Positions it near the bottom and right edges */
    bottom: 60px !important; 
    right: 20px !important; 
    
    /* 3. LAYERING: Ensures the button is always on top of all other content */
    z-index: 9999 !important; 
    
    /* 4. AESTHETICS: Smooth transition for hover effects */
    transition: transform 0.3s ease;

    /* This makes sure the left position doesn't interfere */
    left: auto !important; 
    
    /* Prevents the button from resizing based on content width */
    width: auto !important;
}

/* Optional: Add a subtle hover effect to make it feel responsive */
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Media query to adjust position/size on smaller screens if necessary */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 60px !important;
        right: 10px !important;
    }
    /* You already set the size inline, but you can override or fine-tune here: */
     .whatsapp-float img {
        width: 45px !important;
        height: 45px !important;
    } 
}

/* --- FA Social Icons --- */
.social-icons-wrapper {
    display: flex; /* Arranges icons in a row */
    gap: 10px;    /* Space between icons */
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* Size of the icon area */
    height: 35px;
    border-radius: 50%; /* Makes them circular */
    color: white; /* Icon color */
    text-decoration: none;
    font-size: 18px; /* Size of the actual icon font */
}

.fa-brands, .fab {
    font-weight: 400;
    padding: 0 16px !important;
}
.facebook {
    background-color: #3b5998; /* Facebook's brand color */
}

.linkedin {
    background-color: #0077b5; /* LinkedIn's brand color */
}

.instagram {
    /* Instagram often uses a gradient, but a simple color works too */
    background-color: #E1306C;
}

.screen-only {
    /* Hides the text label but keeps it for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}