/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --forest-green: #2D5016;
    --forest-green-light: #3D6B1F;
    --forest-green-dark: #1E3A0F;
    --off-white: #FAF9F6;
    --cream: #F5F4F0;
    --warm-gray: #6B6560;
    --dark: #1A1A1A;
    --light-gray: #E8E6E1;
    --white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--light-gray);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--forest-green);
    letter-spacing: 0.02em;
    line-height: 1;
}

.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest-green);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 28px;
    background: var(--forest-green);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--forest-green-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--off-white);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(45, 80, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 80, 22, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.badge-line {
    width: 40px;
    height: 1px;
    background: var(--forest-green);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-green);
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--dark);
}

.title-line {
    display: block;
}

.title-accent {
    font-style: italic;
    color: var(--forest-green);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary {
    background: var(--forest-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--forest-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-image-main {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: var(--white);
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.stat-card-1 {
    top: 10%;
    left: -40px;
}

.stat-card-2 {
    bottom: 25%;
    left: -20px;
}

.stat-card-3 {
    bottom: 5%;
    right: -30px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--forest-green);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--warm-gray);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--forest-green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-green);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 520px;
    margin: 0 auto;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--forest-green);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--forest-green);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-description {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link::after {
    content: '→';
    transition: var(--transition);
}

.service-link:hover::after {
    transform: translateX(4px);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--forest-green);
    z-index: -1;
}

.about-text {
    max-width: 520px;
}

.about-description {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--forest-green);
    line-height: 1;
    min-width: 36px;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.value-desc {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:nth-child(1) img { height: 500px; }
.gallery-item:nth-child(2) img { height: 430px; }
.gallery-item:nth-child(3) img { height: 480px; }
.gallery-item:nth-child(4) img { height: 380px; }
.gallery-item:nth-child(5) img { height: 500px; }
.gallery-item:nth-child(6) img { height: 430px; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 80, 22, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: 120px 0;
    background: var(--forest-green);
}

.testimonials .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-quote {
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
}

.author-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 120px 0 80px;
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
}

.contact-info {
    max-width: 480px;
}

.contact-description {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--forest-green);
    transform: translateX(8px);
}

.contact-item a:hover {
    color: var(--forest-green);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-green);
    border: 1px solid var(--forest-green);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.contact-value {
    font-size: 0.95rem;
    color: var(--dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--light-gray);
    padding: 48px;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-bottom-color: var(--forest-green);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--forest-green);
}

.success-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.success-text {
    font-size: 0.95rem;
    color: var(--warm-gray);
}

/* Map */
.map-wrapper {
    border: 1px solid var(--light-gray);
    overflow: hidden;
}

.map-wrapper iframe {
    filter: grayscale(0.5) contrast(1.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
}

.footer-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-phone, .footer-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-phone:hover, .footer-email:hover {
    color: var(--white);
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Animations
   =================================== */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for scroll reveals - visible by default */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply hidden state when JS adds the class */
.reveal-on-scroll.animated {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll.animated.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        height: 500px;
        max-width: 500px;
    }
    
    .stat-card-1 { left: 0; }
    .stat-card-2 { left: 10px; }
    .stat-card-3 { right: 0; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image img {
        height: 500px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--off-white);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--light-gray);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .stat-card {
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1) img { height: 350px; }
    .gallery-item:nth-child(2) img { height: 300px; }
    .gallery-item:nth-child(3) img { height: 320px; }
    .gallery-item:nth-child(4) img { height: 260px; }
    .gallery-item:nth-child(5) img { height: 350px; }
    .gallery-item:nth-child(6) img { height: 300px; }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 400px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
