html {
    scroll-behavior: smooth;
}


.hero-section .slide-content h1,
.hero-section .slide-content p {
  color: white !important;
}


.btn-h:hover{
    color: #fbfbfb !important;
}

.btn-p:hover{
    color: white !important;
    background-color: #1A4D8F !important;
}
/* Map CSS */
#map {
            height: 550px; /* Full screen height */
            width: 100%;  /* Full screen width */
}

/* === HERO SLIDER STYLES === */

/* Hero Section Container (replaces your old hero-section style) */
.hero-section {
    position: relative; /* Crucial for positioning arrows and dots */
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Hides slides that are not active */
    background-color: #222; /* Fallback color while images load */
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Hide all slides by default */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
    z-index: 1;
}

/* Add a dark overlay to slides for better text readability */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.slide.active {
    opacity: 1; /* Show the active slide */
    z-index: 2; /* Bring active slide to the front */
}

/* Content on top of the slide */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 3; /* Ensure content is above the slide and overlay */
    text-shadow: 2px 2px 8px rgba(35, 35, 35, 0.7);
    width: 90%;
    max-width: 900px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/*
  NOTE: The button .btn-hero-premium should already be styled in your CSS.
  If it doesn't look right on the slider, you may need to adjust its
  color or add a border to make it stand out against the dark images.
*/

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 30px;
}

.next-arrow {
    right: 30px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.2rem;
    }
    .slide-content p {
        font-size: 1.1rem;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .prev-arrow { left: 15px; }
    .next-arrow { right: 15px; }
}

.map-container {
            /* REQUIREMENT: Adds 20px of space around itself */
            margin: 20px; 
            /* REQUIREMENT: Creates the 20px rounded corners */
            border-radius: 20px; 
            /* This is crucial: it prevents the map from spilling out of the rounded corners */
            overflow: hidden;
            /* Optional: Adds a subtle shadow for a modern look */
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            /* Optional: A subtle border */
            border: 1px solid #ddd;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 30px;
        }

        .container-2 {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Map CSS */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #3A7BD5; /* Calmer Blue / Light Blue */
    --secondary-color: #00B09B; /* Tealish Green */
    --accent-color: #f7b733; /* Soft Gold/Yellow */
    --text-color: #2c3e50; /* Dark Slate Blue */
    --light-text-color: #ffffff;
    --background-color: #ffffff;
    --light-gray-background: #f8f9fa;
    --dark-section-background: #222831;
    /* Premium Hero Background - Blue Gradient */
    --hero-premium-bg: linear-gradient(135deg, #1D2B64 0%, #3A7BD5 100%); /* Deep Indigo/Navy to Primary Blue */

    --border-color: #e0e5ec;
    --font-family: 'Poppins', 'Arial', sans-serif;

    --darker-blue-for-gradient: #1A4D8F;
    --heading-gradient: linear-gradient(135deg, var(--darker-blue-for-gradient) 0%, var(--primary-color) 100%);

    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #63a4ff 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #56c2b3 100%);
    --gradient-blue-light: linear-gradient(135deg, #e0f2f7 0%, #cce7ff 100%);

    --primary-color-rgb: 58, 123, 213;
    --secondary-color-rgb: 0, 176, 155;
    --accent-color-rgb: 247, 183, 51;

    --shadow-sm: 0 3px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.85em;
    font-weight: 600;
}

h1 { font-size: 2.8em; font-weight: 700; line-height: 1.2; color: var(--text-color); }
h2 {
    font-size: 2.3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--darker-blue-for-gradient);
    background-image: var(--heading-gradient);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}
h2::after {
    content: ''; display: block; width: 70px; height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px; margin: 15px auto 0;
}

.section-colored-bg h2, .section-gradient-bg h2, .bg-dark h2 {
    color: var(--light-text-color);
    background-image: none;
    -webkit-background-clip: initial; background-clip: initial;
    -webkit-text-fill-color: currentColor; -moz-text-fill-color: currentColor;
}
.section-colored-bg h2::after, .section-gradient-bg h2::after, .bg-dark h2::after { background: var(--light-text-color); }

.section-colored-bg p, .section-colored-bg li, .section-gradient-bg p, .section-gradient-bg li { color: rgba(255,255,255,0.85); }
.section-colored-bg h3, .section-colored-bg h4, .section-gradient-bg h3, .section-gradient-bg h4 { color: var(--light-text-color); }
.section-colored-bg a, .section-gradient-bg a { color: var(--accent-color); }
.section-colored-bg a:hover, .section-gradient-bg a:hover { color: var(--light-text-color); }


h3 { font-size: 1.7em; font-weight: 600; color: var(--text-color); }
h4 { font-size: 1.25em; font-weight: 500; color: var(--text-color); }

p { margin-bottom: 1.3em; color: #555e68; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; border-radius: var(--border-radius); }

.section { padding: 80px 0; position: relative; overflow: hidden; }
.bg-light { background-color: var(--light-gray-background); }
.bg-dark { background-color: var(--dark-section-background); color: var(--light-text-color); }
.bg-dark h1, .bg-dark h3, .bg-dark p, .bg-dark a { color: var(--light-text-color); }
.bg-dark a:hover { color: var(--accent-color); }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 40px !important; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: var(--border-radius);
    font-size: 1em; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px;
    transition: all var(--transition-speed) ease; border: none; cursor: pointer;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden; z-index: 1;
}
.btn::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: rgba(255, 255, 255, 0.2); border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-speed) ease, height var(--transition-speed) ease;
    z-index: -1;
}
.btn:hover::before { width: 250px; height: 250px; }
.btn:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.btn-primary { background: var(--gradient-primary); color: var(--light-text-color); }
/* Note: You had another .btn-primary rule below, this one is more comprehensive */
/* .btn-primary:hover { color: var(--light-text-color); } */ /* This is covered by the above */
.btn-secondary { background: var(--gradient-secondary); color: var(--light-text-color); }
.btn-secondary:hover { color: var(--light-text-color); }
.btn-outline-light {
    background: transparent; color: var(--light-text-color); border: 2px solid var(--light-text-color);
}
.btn-outline-light:hover { background: var(--light-text-color); color: var(--primary-color); }
.btn-outline-primary {
    background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color);
}
.btn-outline-primary:hover { background: var(--primary-color); color: var(--light-text-color); }

/* --- Header & Main Navigation --- MODIFIED FOR RESPONSIVENESS & LOGO --- */
#main-header { /* MODIFIED: Changed 'header' selector to '#main-header' */
    background: var(--background-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; /* Was 18px, adjust as preferred */
}

#main-header .container { /* MODIFIED: Changed 'header .container' */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ADDED/MODIFIED: Logo Styles */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 50px; /* Adjust to your logo's desired height */
    width: auto;
    display: none; /* Shown by JS if src is present, or by a body class */
    /* margin-right: 10px; */ /* Optional: if showing both image and text */
}

.logo-text { /* Replaces old .logo style */
    font-size: 1.4em; /* Old .logo was 1.6em, adjust as needed */
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Optional: If using a body class to control logo visibility */
/*
body.has-image-logo .logo-image { display: block; }
body.has-image-logo .logo-text { display: none; }
*/

.main-nav { /* This is #main-navigation in HTML */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Default for desktop */
}

.main-nav li {
    margin-left: 25px;
}

.main-nav li a {
    font-size: 1.0em; /* MODIFIED: Was 1.05em */
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0; /* MODIFIED: Was padding-bottom: 10px */
    border-bottom: 2px solid transparent; /* MODIFIED: Was 3px */
    transition: color var(--transition-speed) ease, border-bottom-color var(--transition-speed) ease;
    position: relative;
    text-transform: uppercase; /* ADDED */
    letter-spacing: 0.5px; /* ADDED */
}

.main-nav li a::after {
    content: ''; position: absolute; width: 0;
    height: 2px; /* MODIFIED: Was 3px */
    display: block;
    /* margin-top: -3px; */ /* May need adjustment if padding changed significantly */
    bottom: -2px; /* ADDED: Align with border */
    right: 0; background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav li a:hover::after, .main-nav li a.active::after {
    width: 100%; left: 0; background: var(--primary-color);
}
.main-nav li a:hover, .main-nav li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color); /* ADDED: Ensure border color changes */
}

/* MODIFIED/ADDED: Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.8em; /* Adjust hamburger icon size */
    cursor: pointer;
    padding: 5px; /* Better tap area */
    z-index: 1001; /* Above slide-in menu */
}

.mobile-nav-toggle .fa-times { /* ADDED: For the close (X) icon */
    display: none; /* Initially hidden, JS will toggle */
}


/* --- New Premium Hero Section --- */
.hero-section {
    background: var(--hero-premium-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}
.hero-section .container {
    margin: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.hero-content h1 {
    font-size: 3.6em;
    font-weight: 700;
    color: var(--light-text-color);
    margin-bottom: 0.4em;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.35em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.2em;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.btn-hero-premium {
    background: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
    padding: 15px 38px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}
.btn-hero-premium:hover {
    background: var(--light-text-color);
    color: var(--darker-blue-for-gradient);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- Contact Snippet Bar --- */
.contact-snippet-bar {
    background: var(--gradient-secondary); color: var(--light-text-color); padding: 18px 0;
    text-align: center; font-size: 1.15em; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.contact-snippet-bar span { margin: 0 20px; }
.contact-snippet-bar a { color: var(--light-text-color); text-decoration: underline; }
.contact-snippet-bar a:hover { color: #f0f0f0; }
.contact-snippet-bar i { margin-right: 8px; }

/* --- About Us Section --- */
#about-home .about-content { align-items: flex-start; }
#about-home .company-description ul { list-style: disc; padding-left: 20px; margin-bottom: 1.3em; }
#about-home .company-description ul li { margin-bottom: 0.5em; color: #555e68; }

/* --- Our Key Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.feature-item {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
}
.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.feature-item .feature-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 70px; height: 70px;
    line-height: 70px;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-radius: 50%;
    transition: color var(--transition-speed) ease, background var(--transition-speed) ease;
}
.feature-item:hover .feature-icon {
    color: var(--light-text-color);
    background: var(--gradient-secondary);
}
.feature-item h4 { margin-bottom: 12px; font-size: 1.3em; color: var(--text-color); }
.feature-item p { color: #555e68; }


/* --- Why Us & Our Goals Section (Text List) --- */
#why-us-home {
    background-color: var(--background-color);
}
#our-goals-home {
    background: var(--gradient-secondary);
}
.text-list-section ul { list-style: none; padding-left: 0; }
.text-list-section ul li {
    padding-left: 35px; position: relative; margin-bottom: 15px; font-size: 1.05em;
}
.text-list-section ul li i {
    color: var(--secondary-color); position: absolute; left: 0; top: 4px; font-size: 1.3em;
}
#our-goals-home ul li i { color: var(--accent-color); }


/* --- Types of Valuations Section --- */
#valuation-types-home {
    background: var(--gradient-blue-light);
}
#valuation-types-home .valuation-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px;
}
.valuation-type-card {
    background: var(--background-color); border-radius: var(--border-radius);
    box-shadow: var(--shadow-md); text-align: center; padding: 25px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: center;
}
.valuation-type-card:hover {
    transform: translateY(-8px) perspective(800px) rotateX(5deg);
    box-shadow: var(--shadow-lg); border-color: var(--primary-color);
}
.valuation-type-card .valuation-icon {
    font-size: 2.5em; margin: 0 auto 20px auto; width: 65px; height: 65px; line-height: 65px;
    background: var(--gradient-primary); color: var(--light-text-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.valuation-type-card:hover .valuation-icon { transform: scale(1.1) rotate(-10deg); }
.valuation-type-card h4 { font-size: 1.15em; margin-bottom: 0; color: var(--text-color); }

/* --- Our Clients Section --- */
#clients-home {
    background-color: var(--background-color);
}
#clients-home .client-logos-grid {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 35px;
}
.client-logo-item { flex-basis: calc(16.666% - 35px); min-width: 120px; text-align: center; }
.client-logo-item img {
    max-height: 65px; filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-speed) ease;
}
.client-logo-item img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.15); }

/* --- Contact Us Section --- */
#contact-home {
     background: var(--hero-premium-bg);
}
#contact-home.section-colored-bg .contact-wrapper {
    background: var(--background-color);
    padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-lg);
}
#contact-home .contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: flex-start;
}
#contact-home.section-colored-bg .contact-details-block h3 { color: var(--primary-color); }
#contact-home.section-colored-bg .contact-details-block p { color: #555e68; }
#contact-home.section-colored-bg .contact-details-block p a { color: var(--primary-color); }
#contact-home.section-colored-bg .contact-details-block p a:hover { color: var(--secondary-color); }
#contact-home.section-colored-bg .contact-details-block p i { color: var(--secondary-color); }
#contact-home.section-colored-bg .contact-details-block .social-icons-contact a { color: var(--text-color); }
#contact-home.section-colored-bg .contact-details-block .social-icons-contact a:hover { color: var(--primary-color); }
#contact-home.section-colored-bg .contact-form-block label { color: var(--text-color); }


.contact-details-block h3 { margin-bottom: 20px; font-size: 1.5em; }
.contact-details-block p { margin-bottom: 18px; line-height: 1.8; }
.contact-details-block p i { margin-right: 10px; width: 20px; text-align: center; }
.contact-details-block .social-icons-contact a {
    margin-right: 12px; font-size: 1.6em; transition: color var(--transition-speed) ease;
}

.contact-form-block .form-group { margin-bottom: 22px; }
.contact-form-block label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 1em; }
.contact-form-block input[type="text"],
.contact-form-block input[type="tel"],
.contact-form-block input[type="email"],
.contact-form-block textarea {
    width: 100%; padding: 14px; border: 1px solid var(--border-color);
    border-radius: var(--border-radius); font-size: 1em; box-sizing: border-box;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: #fdfdfd;
}
.contact-form-block input[type="text"]:focus,
.contact-form-block input[type="tel"]:focus,
.contact-form-block input[type="email"]:focus,
.contact-form-block textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25); outline: none;
}
.contact-form-block textarea { min-height: 130px; resize: vertical; }

/* --- Footer --- */
footer {
    background: var(--dark-section-background); color: rgba(255,255,255,0.75); padding: 70px 0 30px 0;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 50px;
}
.footer-column h4 {
    color: var(--light-text-color); margin-bottom: 25px; font-size: 1.3em;
    position: relative; padding-bottom: 10px;
}
.footer-column h4::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px;
    background: var(--accent-color); border-radius: 1px;
}
.footer-column p, .footer-column ul, .footer-column li { font-size: 0.95em; line-height: 1.8; color: rgba(255,255,255,0.75); }
.footer-column ul { list-style: none; padding-left: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: rgba(255,255,255,0.75); transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease; }
.footer-column ul li a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-column ul li a i { margin-right: 8px; }
.footer-social-icons a {
    display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center;
    border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--light-text-color);
    margin-right: 10px; font-size: 1.1em;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.footer-social-icons a:hover { background: var(--accent-color); color: var(--dark-section-background); transform: translateY(-3px); }
.footer-logo { font-size: 1.5em; font-weight: 700; color: var(--light-text-color); margin-bottom: 15px; display: block; }
.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.9em;
}
.footer-bottom p { margin: 5px 0; color: rgba(255,255,255,0.6); }
.footer-bottom a { color: var(--accent-color); }
.footer-bottom a:hover { text-decoration: underline; }

/* --- Scroll Animations --- */
/* Your existing .animate-on-scroll.is-visible is good */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Your specific grid item animations are also good */
.features-grid .feature-item, .valuation-grid .valuation-type-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.features-grid.is-visible .feature-item,
.valuation-grid.is-visible .valuation-type-card {
    opacity: 1;
    transform: translateY(0);
}
.features-grid.is-visible .feature-item:nth-child(1) { transition-delay: 0.1s; }
.features-grid.is-visible .feature-item:nth-child(2) { transition-delay: 0.2s; }
.features-grid.is-visible .feature-item:nth-child(3) { transition-delay: 0.3s; }
.features-grid.is-visible .feature-item:nth-child(4) { transition-delay: 0.4s; }
.features-grid.is-visible .feature-item:nth-child(5) { transition-delay: 0.5s; }
.features-grid.is-visible .feature-item:nth-child(6) { transition-delay: 0.6s; }

.valuation-grid.is-visible .valuation-type-card:nth-child(1) { transition-delay: 0.1s; }
.valuation-grid.is-visible .valuation-type-card:nth-child(2) { transition-delay: 0.2s; }
.valuation-grid.is-visible .valuation-type-card:nth-child(3) { transition-delay: 0.3s; }
.valuation-grid.is-visible .valuation-type-card:nth-child(4) { transition-delay: 0.4s; }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.3em; }
    h2 { font-size: 2em; }
    .hero-content h1 { font-size: 3em; }
    .hero-content p { font-size: 1.25em; }

    /* --- MODIFIED/ADDED: Mobile Navigation Styles --- */
    .main-nav { /* This is #main-navigation in HTML */
        position: fixed;
        top: 0; /* JS may override this with header.offsetHeight + 'px' */
        right: 0;
        bottom: 0;
        width: min(70vw, 300px); /* Takes 70% of viewport width, but max 300px */

        background-color: var(--background-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);

        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px 30px; /* Top padding to clear header */

        transform: translateX(100%); /* Initially off-screen to the right */
        transition: transform 0.35s ease-in-out;
        z-index: 999; /* Below toggle, above content */
        display: flex; /* Ensures it's a flex container for mobile */
    }

    .main-nav[data-visible="true"] {
        transform: translateX(0%); /* Slides in from the right */
    }

    .main-nav li {
        margin-left: 0; /* Override desktop margin */
        margin-bottom: 20px;
        width: 100%;
    }

    .main-nav li a {
        font-size: 1.2em; /* Larger for tap targets */
        display: block; /* Make whole area clickable */
        padding: 10px 0;
        border-bottom: none; /* Remove desktop underline */
    }
    .main-nav li a::after {
        display: none; /* Hide desktop ::after underline */
    }
    .main-nav li a:hover, .main-nav li a.active {
        color: var(--secondary-color); /* Different hover/active for mobile */
        border-bottom-color: transparent; /* No border for mobile */
    }

    .mobile-nav-toggle { /* Your existing rule for display:block is fine */
        display: block;
        /* Other .mobile-nav-toggle styles are defined above globally */
    }

    /* ADDED: Body overlay for when mobile nav is open */
    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background-color: rgba(0,0,0,0.3);
        z-index: 998; /* Below nav menu */
        display: block;
    }
    /* --- End of Mobile Navigation Styles --- */


    #about-home .about-content { grid-template-columns: 1fr; }
    #contact-home .contact-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .contact-details-block { margin-bottom: 35px; text-align: center;}
    .contact-details-block .social-icons-contact { justify-content: center;}
}

@media (max-width: 768px) {
    .logo-text { font-size: 1.2em; } /* MODIFIED: Was .logo, adjusted size */
    /* .main-nav li { margin-left: 15px; } */ /* This is overridden by mobile nav styles now */

    .hero-section { min-height: 75vh; padding: 60px 0; }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.15em; }
    /* .btn, .btn-hero-premium { padding: 12px 28px; font-size: 0.95em; } */ /* Already have .btn defined, .btn-hero-premium specific */
    .btn-hero-premium { padding: 12px 28px; font-size: 0.95em; }


    .client-logo-item { flex-basis: calc(33.333% - 30px); }
    .valuation-type-card {padding: 20px;}
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
}

@media (max-width: 576px) {
    .container { width: 95%; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; margin-bottom: 40px; }
    h2::after { width: 60px; height: 3px; }
    .logo-text { font-size: 1.1em; } /* MODIFIED: Was .logo, adjusted size */
    #main-header .container { flex-wrap: wrap; justify-content: space-between; } /* Keep space-between for logo and toggle */

    .contact-snippet-bar { font-size: 1em; }
    .contact-snippet-bar span { display: block; margin: 8px 0; }

    #key-features-home .features-grid,
    #valuation-types-home .valuation-grid { grid-template-columns: 1fr; }

    .client-logo-item { flex-basis: calc(50% - 25px); }
    .client-logo-item img { max-height: 50px; }
    .footer-grid {text-align: center;}
    .footer-column h4::after {left: 50%; transform: translateX(-50%);}
    .footer-social-icons {text-align: center;}
    .hero-content h1 { font-size: 2.2em; }
    .hero-content p { font-size: 1.05em; }
}

/* --- Optional Toastify Customizations --- */
/* (These were already provided and look fine) */
.toastify {
    font-family: var(--font-family);
    padding: 12px 20px;
    border-radius: var(--border-radius);
}

.toastify .toast-close {}
.toastify .toast-close:hover {}