/* Base Styles & Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0A3D62; /* Dark Blue for branding */
    --secondary-green: #28a745; /* Green for accents/success */
    --light-blue: #e0f2f7; /* Light blue background */
    --dark-gray: #333;
    --medium-gray: #555;
    --light-gray: #f8f8f8;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #ffffff; /* Default background */
}

*, *::before, *::after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-green);
}

/* Utility Classes (Mimicking Tailwind for common spacing/layout) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.leading-relaxed { line-height: 1.75; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-800 { color: var(--primary-blue); }
.text-green-700 { color: var(--secondary-green); }
.text-pink-600 { color: #db2777; } /* For Instagram icon */
.text-pink-800 { color: #9d174d; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.bg-blue-50 { background-color: var(--light-blue); }
.bg-gray-50 { background-color: var(--light-gray); }
.bg-white { background-color: #fff; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-md { box-shadow: 0 4px 6px -1px var(--shadow-light), 0 2px 4px -1px var(--shadow-light); }
.shadow-lg { box-shadow: 0 10px 15px -3px var(--shadow-medium), 0 4px 6px -2px var(--shadow-medium); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px var(--shadow-medium), 0 10px 10px -5px var(--shadow-medium); }
.transition { transition-property: all; transition-duration: 0.3s; transition-timing-function: ease-out; }
.transform { transform: scale(1); }
.group-hover\:scale-105:hover { transform: scale(1.05); }
.duration-300 { transition-duration: 0.3s; }
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.h-40 { height: 10rem; }
.w-full { width: 100%; }
.object-cover { object-fit: cover; }
.flex { display: flex; }
.items-start { align-items: flex-start; }
.space-x-4 > *:not(:first-child) { margin-left: 1rem; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.cursor-pointer { cursor: pointer; }
.hidden { display: none; }
.border-t { border-top-width: 1px; border-top-color: var(--border-color); }
.space-y-4 > *:not(:first-child) { margin-top: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.space-x-4 > *:not(:first-child) { margin-left: 1rem; }
.hover\:underline:hover { text-decoration: underline; }

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) { /* md breakpoint */
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:space-x-8 > *:not(:first-child) { margin-left: 2rem; }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) { /* xl breakpoint */
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Services Grid Section */
.services-grid-section {
    background-color: #fff;
    padding: 3rem 0;
}

.service-card {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center content horizontally within the card */
    text-align: center; /* Center text content within the card */
    padding: 1.5rem; /* Standard padding */
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensures all cards in a row have equal height */
    border: 1px solid var(--border-color); /* Keep subtle border */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .icon-wrapper {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem; /* Increased margin below icon */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* align-self: center; */ /* Not needed if parent aligns items to center */
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-blue);
    color: white;
}

/* Image container */
.service-card .relative.h-40.w-full.mb-4.overflow-hidden.rounded-xl {
    align-self: center; /* Center the image container within the card */
    width: 100%; /* Still take full width for the image */
    margin-bottom: 1rem; /* Space between image and title */
    border: none; /* Remove border from image container */
}

.service-card img {
    border-radius: 0.75rem;
    /* h-full w-full object-cover transform group-hover:scale-105 transition duration-300 */
}

/* Container for title and arrow */
.service-card .flex.justify-between.items-center {
    width: 100%; /* Ensure this flex container spans the full width of the card */
    margin-top: auto; /* Push this to the bottom if content above is shorter */
    padding-top: 0.5rem; /* Add some padding above for visual separation */
    /* text-align: center; */ /* This class is on the parent service-card, but flex will override */
}

.service-card h3 {
    font-size: 1.25rem;
    margin-top: 0; /* Reset margin-top */
    margin-bottom: 0; /* Reset margin-bottom */
    color: var(--primary-blue);
    transition: color 0.3s ease;
    text-align: left; /* Keep text-align left for the h3 itself */
    flex-grow: 1; /* Allow h3 to take available space before the arrow */
}

.service-card:hover h3 {
    color: var(--secondary-green);
}

.service-card .fas.fa-arrow-right {
    font-size: 1.2rem;
    color: var(--medium-gray);
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: 0.5rem; /* Space between title and arrow */
}

.service-card:hover .fas.fa-arrow-right {
    color: var(--secondary-green);
    transform: translateX(5px);
}

/* --- IMPORTANT: Remove this rule if you want to match the image format --- */
/* The image format does NOT show paragraph text. */
/* If you keep the <p> tags in your HTML, they will still appear. */
/* To match the image, you should remove the <p> tags from your HTML. */
/* If you MUST keep the <p> tags but hide them, use: */
/*
.service-card p {
    display: none;
}
*/
/* Otherwise, if you remove the <p> tags from HTML, this rule is no longer needed. */
.service-card p {
    /* flex-grow: 1; */ /* Remove flex-grow if no paragraph or if it's hidden */
    /* align-self: flex-start; */
    /* margin-bottom: 0; */
    /* text-align: left; */
    /* font-size: 0.95rem; */
    /* line-height: 1.6; */
    /* color: var(--dark-gray); */
}

/* Testimonials Section */
.testimonials-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px; /* Limit width for better readability */
    margin: 0 auto;
    padding: 2rem;
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width of container */
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    margin: 0 1rem; /* Space between items */
    box-sizing: border-box; /* Include padding in width */
    min-height: 200px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-nav-arrow-left {
    left: 0.5rem;
}

.carousel-nav-arrow-right {
    right: 0.5rem;
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.carousel-dots-container .slider-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots-container .slider-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    background-color: #fff;
}

.faq-dropdown-toggle {
    background-color: var(--light-blue);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--primary-blue);
}

.faq-dropdown-toggle:hover {
    background-color: #d0e9f0;
}

.faq-dropdown-toggle .fas {
    transition: transform 0.3s ease;
}

.faq-dropdown-toggle .fas.rotate-180 {
    transform: rotate(180deg);
}

.faq-dropdown-content {
    background-color: #fefefe;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Call to Action Form Section */
.quote-form {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.quote-form h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quote-form p {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}

.quote-form .max-w-xl {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

.quote-form form {
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.quote-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--dark-gray);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.quote-form button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px; /* Shorter height for tablets */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .slider-arrow {
        padding: 0.7rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .service-card {
        padding: 1rem;
    }
    .service-card .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .testimonial-item {
        margin: 0 0.5rem;
    }
    .quote-form h2 {
        font-size: 2rem;
    }
    .quote-form .max-w-xl {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px; /* Even shorter for mobile */
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .slider-arrow {
        display: none; /* Hide arrows on very small screens if space is tight */
    }
    .slider-dots-container {
        bottom: 0.5rem;
    }
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    .quote-form h2 {
        font-size: 1.8rem;
    }
}

/* Hero Section - IMPROVED */
/* Note: These styles seem to be for a different hero section structure than the one currently in your HTML.
   The HTML uses .hero-slider and related classes, while these use .hero-section and .hero-grid.
   If you intend to switch to this hero structure, the HTML would need significant changes.
   For now, these are commented out to avoid conflicts with the active .hero-slider styles. */
/*
.hero-section {
    background-color: #fff;
    color: var(--text-color);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 1;
    color: var(--dark-gray);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow-medium);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
*/

/* Buttons (Duplicate, already defined above) */
/*
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}
*/

/* Breadcrumb (Duplicate, if already in _header.css or general style.css) */
/*
.breadcrumb {
    background-color: var(--light-gray);
    padding: 15px 0;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: var(--dark-gray);
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 8px;
    color: var(--dark-gray);
}

.breadcrumb li a {
    color: var(--secondary-color);
}
*/

/* AOS specific adjustments (ensure it works well with other styles) */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
}
/* You might want to adjust specific AOS transitions if they conflict with your custom transitions */

/* Lazy Loading Image Placeholder */
img.lazy-img {
    background-color: #f0f0f0; /* Light gray placeholder */
    filter: blur(5px); /* Optional: add a blur effect */
    transition: filter 0.5s ease-in-out;
}

img.lazy-img.loaded {
    filter: blur(0);
}
