:root {
    --color-primary: #2d5a27;
    --color-primary-light: #4a7c59;
    --color-secondary: #3b82a6;
    --color-secondary-light: #5fa8d3;
    --color-accent: #6b9080;
    --color-neutral-light: #f8faf9;
    --color-neutral: #e8f2e8;
    --color-text-dark: #1a1a1a;
    --color-text-light: #555555;
    --color-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1100;
    transition: top 0.3s;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.sticky {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.main-header.sticky .logo-text {
    color: var(--color-white);
}

/* This rule applies text shadow and ensures white color for elements within the header when over the hero section */
.hero .main-header .logo-text,
.hero .main-header .nav-link {
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero .main-header.sticky .logo-text,
.hero .main-header.sticky .nav-link,
.hero .main-header.sticky .nav-toggle {
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: var(--color-white);
}

.main-header.sticky .nav-link {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.nav-link:hover::after, .nav-link:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    color: var(--color-white);
}

.icon-close {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background-color: var(--color-neutral-light);
}

.problem-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.problem-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem; /* Spacing below the entire heading block */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Space between icons and h2 */
}

.problem-heading-container h2 {
    margin: 0; /* Remove default h2 margins to allow flex gap to control spacing */
}

.problem-heading-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0; /* Prevent icons from shrinking */
}

.problem-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--color-text-dark);
}

.illustration {
    margin-top: 2rem;
}

.problem-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Offer Section */
.offer-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--color-neutral-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-light);
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background-color: var(--color-neutral);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-card p {
    color: var(--color-text-dark);
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--color-neutral-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-primary);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-quote {
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--color-neutral);
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
    color: var(--color-primary);
}

.contact-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.2);
}

textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
}

#form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    text-align: center;
}

.footer-content p {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.no-scroll {
        overflow: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-text {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(248, 250, 249, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--color-white) !important;
        text-shadow: none !important;
    }

    .nav-toggle {
        display: block;
        transition: color 0.3s ease;
    }
    
    .main-nav.active ~ .nav-toggle .icon-menu {
        display: none;
    }
    
    .main-nav.active ~ .nav-toggle .icon-close {
        display: block;
        color: var(--color-primary);
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .hero-slogan {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
    }
    
    h2 {
        font-size: 2rem;
    }

    /* Adjustments for responsiveness of the problem heading */
    .problem-heading-container {
        flex-direction: column; /* Stack icons and h2 vertically */
        gap: 0.5rem; /* Smaller gap when stacked */
    }
    
    p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
    }
    
    .main-header {
        --header-height: 60px;
    }

    .logo {
        height: 40px;
    }
    
    .hero-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
    
    .info-card,
    .contact-item,
    .testimonial-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.contact-link:focus,
.nav-link:focus,
.logo-link:focus,
a:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1a4d1a;
        --color-secondary: #2563a6;
        --color-text-light: #333333;
    }
}