/* Define main colors */
:root {
    --primary-color: #55801E;
    /* Green tone - Darkened for WCAG AA (4.5:1) */
    /* Green tone - Darkened for A11y (4.5:1) */
    --secondary-color: #192e3f;
    /* Dark blue-gray tone */
    --accent-color: #1e6b47;
    /* Rich green for accents */
    --light-background-color: #f0f4f8;
    /* Light gray-blue */
    --dark-text-color: #333;
    /* Dark gray text */
    --light-text-color: #666;
    /* Lighter gray text */
    --white: #ffffff;
    --black: #000000;
}

html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 0;
    /* Removed padding-top since navbar is now transparent/overlay */
    background-color: var(--light-background-color);
    color: var(--dark-text-color);
    line-height: 1.7;
    /* Improved readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Button Overrides */
body .btn-primary,
body .btn-success,
body .btn-submit {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

body .btn-primary:hover,
body .btn-success:hover,
body .btn-submit:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white);
}


/* Accessibility Improvements */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Navbar Focus */
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

/* Button Focus Overrides */
.btn-primary:focus,
.btn-success:focus,
.btn-submit:focus {
    box-shadow: 0 0 0 3px rgba(85, 128, 30, 0.5);
    /* Matching new primary color */
}


/* Navbar */
.navbar {
    background-color: transparent;
    /* Transparent initially */
    width: 100%;
    min-height: 76px;
    /* Reduced by ~15% from 90px */
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 10px 0;
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    /* Use consistent dark color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    height: 60px;
    /* Adjusted for smaller navbar */
    width: auto;
    /* Removed background-color, border-radius, and padding to show transparent logo */
}

.navbar-nav .nav-link {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    /* Added margin to separate background boxes */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    /* Highlight for active and hover states */
    color: var(--primary-color);
    /* font-weight: 600; Removed to prevent layout shift/text moving */
    background-color: rgba(255, 255, 255, 0.1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.lang-switcher a {
    display: inline-block;
    margin: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-switcher img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* <<< CHANGED from center */
    color: var(--white);
    background-image: url('/img/hero.webp');
    background-color: var(--secondary-color);
    /* Fallback background color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Ensure hero content is visible under transparent navbar */
    padding-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker overlay for readability */
    z-index: 1;
}

.hero-section:not(:has(>img)) {
    background-color: var(--secondary-color);
    /* Fallback if image fails */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* <<< ADDED */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
    /* Ensure no auto margin */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    /* color: var(--white); Removed color as we use image now */
}

/* Why Choose Us Section - Floating Box Style */
.why-choose-us-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Pull up to overlap hero */
    background-color: transparent;
    /* Transparent container background */
    padding-bottom: 3rem;

    /* Initial hidden state for scroll animation */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    /* Prevent clicking when hidden */
}

/* Specificity override to ensure it hides initially */
body .why-choose-us-section:not(.visible) {
    opacity: 0 !important;
    transform: translateY(50px) !important;
}

.why-choose-us-section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.why-choose-us-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    /* Add border to separate from hero if needed, or rely on shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-choose-us-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.why-choose-us-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.icon-box {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-background-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Custom SVG Icon Styling */
.custom-icon {
    display: inline-block;
    background-color: var(--primary-color);
    /* This will be the color of the icon */
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex-shrink: 0;
    /* Prevent icon from shrinking in flex containers */
}

.custom-icon.icon-lg {
    width: 64px;
    height: 64px;
}

.custom-icon.icon-md {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.custom-icon.icon-sm {
    width: 16px;
    height: 16px;
}

/* Services Section */
.services-section {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.service-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item .service-icon {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-top: 1rem;
    width: 100%;
}

.service-description li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.service-description li .custom-icon {
    margin-top: 6px;
    margin-right: 10px;
}

/* Testimonials Section */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-style: italic;
    color: var(--light-text-color);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author .author-name {
    font-weight: 700;
}

.testimonial-author .author-title {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

#testimonials-slider .splide__arrow {
    background: var(--primary-color);
    opacity: 0.8;
}

#testimonials-slider .splide__arrow:hover {
    opacity: 1;
}

#testimonials-slider .splide__arrow--prev {
    left: -3rem;
}

#testimonials-slider .splide__arrow--next {
    right: -3rem;
}

#testimonials-slider .splide__arrow svg {
    fill: var(--white);
}


/* Card Carousel Styles */
.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    min-width: 400px;
}

.carousel-card {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    border: 4px solid white;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-button {
    border-radius: 9999px;
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: rgb(243 244 246);
    border: 1px solid rgb(229 231 235);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-button:hover {
    background-color: rgb(229 231 235);
}

/* Package Template Specific Styles */
.package-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.package-details-section {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    /* Increased overlap */
    background-color: transparent;
    padding-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    scroll-margin-top: 180px;
    /* Added scroll margin to account for navbar and offset */
}

.package-details-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.package-details-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.package-details-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.package-details-container .list-group-item {
    background-color: transparent;
    border-color: #eee;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    /* Updated to match navbar */
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

footer .custom-icon {
    background-color: var(--primary-color);
    /* Ensure footer icons use primary color */
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
    /* Updated social icons color */
}

.social-links a:hover {
    color: var(--white);
    /* Hover effect for social icons */
}

/* Responsive */
@media screen and (max-width: 768px) {
    .package-details-section {
        margin-top: -50px;
        scroll-margin-top: 100px;
        /* Adjusted for mobile */
    }
}

/* Redesigned Contact Section */
.contact-section-redesigned {
    background: var(--light-background-color);
}

.contact-section-redesigned .container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    /* Remove padding to fix gutter issue */
}

.contact-info-redesigned {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-redesigned a,
.contact-info-redesigned p {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-redesigned a:hover {
    color: var(--white);
}

.info-item-redesigned {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon-redesigned .custom-icon {
    background-color: var(--white);
}

.info-title-redesigned {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-redesigned {
    padding: 3rem;
}

.contact-form-redesigned .form-control {
    background-color: var(--light-background-color);
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.contact-form-redesigned .form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-form-redesigned .btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form-redesigned .btn-submit:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .contact-info-redesigned {
        border-radius: 15px 15px 0 0;
    }

    .contact-form-redesigned {
        border-radius: 0 0 15px 15px;
    }
}

@media (min-width: 992px) {
    .contact-info-redesigned {
        border-radius: 15px 0 0 15px;
    }

    .contact-form-redesigned {
        border-radius: 0 15px 15px 0;
    }
}

/* Project Card Styles */
.project-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-gallery-slider .splide__slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.project-description {
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
}

/* Animations */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for children cards/items in common grids */
.animated-section.in-view .row>div {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animated-section.in-view .row>div:nth-child(1) {
    animation-delay: 0.1s;
}

.animated-section.in-view .row>div:nth-child(2) {
    animation-delay: 0.2s;
}

.animated-section.in-view .row>div:nth-child(3) {
    animation-delay: 0.3s;
}

.animated-section.in-view .row>div:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini Hero Section (Privacy Policy) */
.mini-hero {
    position: relative;
    height: 35vh;
    /* Initial height, adjust as needed */
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: center;
    /* Center horizontally */
    color: var(--white);
    background-image: url('/img/hero.webp');
    /* Default, can be overridden inline */
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 2rem;
    /* Spacing from bottom */
    padding-top: 76px;
    /* Offset for navbar */
    margin-bottom: 3rem;
}

.mini-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.mini-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mini-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .mini-hero {
        height: 30vh;
        min-height: 200px;
    }

    .mini-hero h1 {
        font-size: 2rem;
    }
}


/* Fix for Testimonials Arrows on Mobile */
@media (max-width: 768px) {
    #testimonials-slider .splide__arrow--prev {
        left: 0;
    }

    #testimonials-slider .splide__arrow--next {
        right: 0;
    }
}

/* Fix for Mobile Menu Background Transparency */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}