/*
================================================
TABLE OF CONTENTS
================================================
1.  Setup & Variables
2.  Base & Typography
3.  Header & Navigation
4.  Buttons & Utility Classes
5.  Hero Section & Shape Divider
6.  Services Section (Pods)
7.  Journey Section (Timeline)
8.  Impact Section (Stats)
9.  Testimonials Section (Slider)
10. Footer
11. Contact Page
12. Legal Pages
13. Animations & Scroll Effects
14. Responsive Design
================================================
*/

/* 1. Setup & Variables
------------------------------------------------ */
:root {
    --primary-green: #E63946;
    --dark-green-bg: #2B1B1D;
    --light-bg: #FDEDEC;
    --dark-text: #2E1114;
    --light-text: #FCEEEE;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --transition: 0.4s ease;
    --border-radius: 8px;
    --shadow: 0 10px 25px rgba(230, 57, 70, 0.2);
}


/* 2. Base & Typography
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-green-bg);
    color: var(--light-text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 3. Header & Navigation
------------------------------------------------ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: rgba(26, 43, 45, 0.9);
}

#main-header.scrolled {
    background-color: rgba(26, 43, 45, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    transition: var(--transition);
}

/* 4. Buttons & Utility Classes
------------------------------------------------ */
.section-padding {
    padding: 100px 0;
}

#services,
#journey,
#impact {
    background-color: var(--dark-green-bg);
}

#testimonials,
#contact-page,
#legal-page {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-green);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    opacity: 0.9;
}

.text-center .section-title p {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-green);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-green-bg);
}

/* 5. Hero Section & Shape Divider
------------------------------------------------ */
#hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1497215842964-222b430dc094?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 45, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
}

.hero-text p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
}

.shape-divider .shape-fill {
    fill: var(--dark-green-bg);
}

/* 6. Services Section (Pods)
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-pod {
    background-color: #23393b;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #3e5355;
    transition: var(--transition);
}

.service-pod:hover {
    transform: translateY(-10px);
    background-color: #2a4346;
}

.pod-icon {
    width: 60px;
    height: 60px;
    background-color: var(--dark-green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.pod-icon svg {
    width: 28px;
    height: 28px;
}

.service-pod h3 {
    color: #fff;
    margin-bottom: 1rem;
}

/* 7. Journey Section (Timeline)
------------------------------------------------ */
.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35px;
    height: 100%;
    width: 2px;
    background: #3e5355;
}

.journey-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-green);
    background-color: var(--dark-green-bg);
}

.step-content {
    padding-top: 1.2rem;
}

.step-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* 8. Impact Section (Stats)
------------------------------------------------ */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stat-card {
    background-color: #23393b;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stat-value {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--primary-green);
    font-weight: 900;
}

.stat-label {
    font-size: 1rem;
}

/* 9. Testimonials Section (Slider)
------------------------------------------------ */
#testimonials h2,
#testimonials .section-title p {
    color: var(--dark-text);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.quote {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-name {
    display: block;
    font-weight: 700;
}

.author-title {
    display: block;
    color: #777;
    font-size: 0.9rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    color: var(--dark-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.prev-btn {
    left: -22px;
}

.next-btn {
    right: -22px;
}

/* 10. Footer
------------------------------------------------ */
#main-footer {
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a,
.footer-col p {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid #3e5355;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* 11. Contact Page
------------------------------------------------ */
#contact-page h2,
#contact-page .section-title p {
    color: var(--dark-text);
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-form-panel {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.contact-info-panel h3 {
    color: var(--dark-text);
}

.contact-details {
    list-style: none;
    margin: 1.5rem 0;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-details li strong {
    display: block;
    color: var(--dark-text);
}

.business-hours h4 {
    margin-top: 2rem;
}

/* 12. Legal Pages
------------------------------------------------ */
#legal-page h1 {
    color: var(--dark-text);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    color: #111;
}

/* 13. Animations & Scroll Effects
------------------------------------------------ */
.animate-on-load {
    animation: 0.8s ease-out both;
}

.fade-in-up {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 14. Responsive Design
------------------------------------------------ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark-green-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .impact-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .testimonial-slider-container {
        padding: 40px 20px;
    }
}