:root {
    /* Colors */
    --color-primary: #2D5A27;
    --color-primary-hover: #244820;
    --color-text-main: #131613;
    --color-text-light: #6b7280;
    --color-white: #ffffff;
    --color-bg-light: #ffffff;
    --color-bg-gray: #f6f7f6;
    --color-bg-dark: #161d15;
    
    /* Typography */
    --font-main: 'Lato', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing & Sizing */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem; /* For images */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem; /* Increased from default */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

.btn--large {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.header:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

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

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit; /* Ensure text color remains correct */
}

.header__logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.header__nav {
    display: none; /* Mobile first hidden */
}

.header__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    padding-bottom: 0.25rem;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header__link:hover {
    color: var(--color-primary);
}

.header__link:hover::after {
    width: 100%;
}

.header__cta-wrapper {
    display: none; /* Mobile first hidden */
}

.header__menu-toggle {
    display: block;
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero__content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
}

.hero__badge {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.hero__title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: #f3f4f6;
    max-width: 600px;
    font-weight: 500;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--color-bg-gray); /* Gray background to alternate */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(45, 90, 39, 0.95); /* Primary with opacity */
    backdrop-filter: blur(4px);
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    color: white;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #4ade80; /* Light green accent */
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Comparison Section */
.comparison-section {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel__track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel__slide {
    min-width: 100%;
    width: 100%;
    position: relative;
}

.comparison-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Removed border-radius and shadow here as container handles it */
    cursor: ew-resize; /* Indicates resizable/slider */
    overflow: hidden;
}

/* ... existing comparison styles ... */
.comparison__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison__image--after {
    z-index: 1;
}

.comparison__image--before {
    /* Simulating 50% slider */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    filter: grayscale(30%);
    z-index: 2;
}

.comparison__label {
    position: absolute;
    top: 1.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(22, 29, 21, 0.8);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.comparison__label--left {
    left: 1.5rem;
}

.comparison__label--right {
    right: 1.5rem;
    background-color: rgba(45, 90, 39, 0.9); /* Primary color */
}

.comparison__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    z-index: 30;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison__handle-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison__handle-icon span {
    transform: rotate(90deg); /* Rotate code icon to look like resize handle */
}

/* Carousel Controls */
.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 30;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.carousel__button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel__button--left {
    left: -1.5rem;
}

.carousel__button--right {
    right: -1.5rem;
}

.carousel__button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.carousel__nav {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    gap: 0.75rem;
}

.carousel__indicator {
    border: 0;
    border-radius: 50%;
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel__indicator.current-slide {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .carousel__button--left {
        left: -4rem;
    }
    
    .carousel__button--right {
        right: -4rem;
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--color-bg-gray);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-card__image-wrapper {
    height: 400px;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.service-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.service-card:hover .service-card__image {
    transform: scale(1.05);
}

.service-card__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(45, 90, 39, 0.1);
    color: var(--color-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

.service-card__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.service-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.service-card__list li span {
    color: var(--color-primary);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1rem;
    gap: 0.5rem;
}

.link-arrow:hover {
    text-decoration: none;
}

.link-arrow:hover .link-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.link-arrow span {
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

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

.contact-container {
    max-width: 800px;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
    background-color: white;
}

.form-textarea {
    resize: vertical;
}

.btn--full {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--border-radius-sm);
}

.footer__logo span:first-child {
    color: #4ade80; /* Brighter green for dark bg */
    font-size: 1.75rem;
}

.footer__desc {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer__links, .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: #4ade80;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer__contact span {
    color: #4ade80;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
}

.footer__legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__legal-links a:hover {
    color: #4ade80;
}

.footer__legal a:hover {
    color: white;
}

/* Media Queries (Desktop) */
@media (min-width: 768px) {
    /* Header */
    .header__nav {
        display: flex;
        gap: 2rem;
    }

    .header__cta-wrapper {
        display: block;
    }

    .header__menu-toggle {
        display: none;
    }

    /* Hero */
    .hero__title {
        font-size: 4rem;
    }
    
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }

    /* Comparison */
    .comparison-viewer {
        aspect-ratio: 21/9;
    }

    /* Services */
    .service-card {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .service-card--reversed .service-card__content {
        order: 2;
    }
    
    .service-card--reversed .service-card__image-wrapper {
        order: 1;
    }

    /* CTA Banner */
    .cta-banner__title {
        font-size: 3rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
