/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/* CSS Variables */

:root {
    --color-bg: #f4f7f5; /* soft off‑white */
    --color-primary: #6baa75; /* gentle leaf green */
    --color-secondary: #a3c9a8; /* muted sage */
    --color-accent: #3e6b48; /* deep forest green */
    --color-text: #2e2e2e; /* charcoal */
    --font-heading: "Raleway", sans-serif;
    --font-body: "Nunito", sans-serif;
}

/* Global Styles */

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* space for fixed navbar */
}

section {
    scroll-margin-top: 60px; /* offset for fixed navbar */
}

footer {
    margin-top: auto;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-transform: uppercase;
}

p {
    font-family: var(--font-body);
    color: var(--color-text);
}

/* Navbar Styles */

.custom-navbar {
    background-color: #f5f8f4;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dce5dd; /* subtle divider */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}
.custom-navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #2f4f3e; /* deep green for branding */
}
.custom-navbar .navbar-brand img {
    width: 32px;
    height: 32px;
}
.custom-navbar .nav-link {
    color: #3d5f4a;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.2s ease;
    font-family: var(--font-heading);
}
.custom-navbar .nav-link:hover {
    color: #1f3a2c; /* darker green on hover */
}
.custom-navbar .nav-link.active {
    color: #1f3a2c;
    font-weight: 600;
}

.custom-navbar span {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.navbar-brand {
    display: inline-flex; /* shrink to content */
    width: auto; /* prevent stretching */
    max-width: max-content; /* ensures no flex expansion */
    padding: 0;
}

/* Header/Hero Section Styles */

.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Ensure video doesn't overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh; /* Doesn't get compressed from other content */
}
/* Background video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1; /* Behind the text */
}
/* Content on top */
.hero-content {
    position: relative;
    z-index: 2; /* In front of the video */
    color: white;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.hero-section::before {
    /* Overlay */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Buttons */

.btn-primary {
    background-color: #6c9a8b; /* calming green */
    border-color: #6c9a8b;
    color: white;
}
.btn-primary:hover {
    background-color: #5a8578;
    border-color: #5a8578;
}

/* What We Do Section */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.what-we-do-list {
    list-style: none;
    padding-left: 0;
}
.what-we-do-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
}
.what-we-do-list li::before {
    content: "•";
    color: #6c9a8b; /* calming green */
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

#whatWeDoCarousel .carousel-item img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

/* Simple Support Section */

.simple-support-section {
    background-color: #f4f7f5; /* soft calming background */
}
.support-item {
    padding: 1rem;
}
.support-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #6c9a8b;
}
.support-item p {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #555;
}

/* Success Stories Section */

.success-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.story-img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 220px;
    object-fit: cover;
}
#success-stories {
    background-color: #ffffff; /* keep this clean before the footer */
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Footer Section */

.footer-section {
    background-color: #1f2a28; /* darker, high-contrast green-grey */
    color: #f2f7f5; /* soft but accessible light text */
}
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff; /* pure white for headings */
}
.footer-subtitle {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #e9f5f0; /* gentle highlight */
}
.footer-hours .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-hours .hours-row:last-child {
    border-bottom: none;
}
.footer-section p,
.footer-section span {
    font-size: 0.95rem;
    color: #f2f7f5; /* ensure all body text is readable */
}

.footer-social .social-link {
    font-size: 1.5rem;
    color: #f2f7f5; /* same accessible light text */
    transition: color 0.3s ease;
    margin: 0 1rem; /* increase spacing left and right */
}

.footer-social .social-link:hover {
    color: #6c9a8b;
}

.footer-social {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

/* ----------------------------------------- MOBILE FALLBACK (IMAGE INSTEAD OF VIDEO) ----------------------------------------- */
@media (max-width: 767px) {
    .hero-video {
        display: none; /* Hide video on mobile */
    }
    .hero-section {
        background-image: url("../images/hero-image.png");
        background-size: cover;
        background-position: center;
    }
}

/* ----------------------------------------- Media Queries ----------------------------------------- */

@media (min-width: 768px) {
    .footer-section .row {
        display: flex;
        justify-content: space-around;
    }
}
