/* ============================================
   Woodland Farm LLC — Custom Styles
   Clean minimalist · Emerald + Cream
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

/* ---- Scroll Reveal (progressive enhancement) ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state for reduced motion or no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---- Navigation ---- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.nav-logo-wrap {
    color: #047857;
    transition: color 0.3s ease;
}

.nav-fixed.scrolled .nav-logo-wrap {
    color: #047857;
}

.nav-logo-icon {
    color: #047857;
}

/* ---- Mobile Menu ---- */
.hamburger-line {
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 24px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 249, 243, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu-link:hover {
    color: #10B981;
    padding-left: 8px;
}

/* ---- Buttons ---- */
.btn-emerald {
    background: #047857;
    color: #FDF9F3;
    padding: 14px 28px;
    border-radius: 0;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid #047857;
}

.btn-emerald:hover {
    background: #065F46;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.2);
}

.btn-outline {
    background: transparent;
    color: #047857;
    padding: 14px 28px;
    border-radius: 0;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    border: 1px solid rgba(4, 120, 87, 0.3);
}

.btn-outline:hover {
    background: rgba(4, 120, 87, 0.06);
    border-color: #047857;
    transform: translateY(-2px);
}

/* ---- Hero Section ---- */
.hero-split {
    background: #FDF9F3;
    position: relative;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.04) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.hero-deco-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    top: 30%;
    left: 15%;
}

.hero-label {
    max-height: 28px;
    overflow: hidden;
}

.hero-label-inner {
    display: inline-block;
    transform: translateY(100%);
    animation: heroLabelIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

@keyframes heroLabelIn {
    to { transform: translateY(0); }
}

.hero-text h1 {
    animation: heroTitleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(30px);
    opacity: 0;
    animation-delay: 0.5s;
}

@keyframes heroTitleIn {
    to { transform: translateY(0); opacity: 1; }
}

.hero-text p {
    animation: heroTextIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(20px);
    opacity: 0;
    animation-delay: 0.7s;
}

@keyframes heroTextIn {
    to { transform: translateY(0); opacity: 1; }
}

.hero-buttons {
    animation: heroBtnsIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(20px);
    opacity: 0;
    animation-delay: 0.9s;
}

@keyframes heroBtnsIn {
    to { transform: translateY(0); opacity: 1; }
}

.hero-trust {
    animation: heroTrustIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(20px);
    opacity: 0;
    animation-delay: 1.1s;
}

@keyframes heroTrustIn {
    to { transform: translateY(0); opacity: 1; }
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
}

.hero-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-frame:hover .hero-image {
    transform: scale(1.02);
}

.hero-image-accent {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(5, 150, 105, 0.15);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    animation: heroBadgeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 1.3s;
}

@keyframes heroBadgeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
    animation: heroTrustIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    animation-delay: 1.5s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(5, 150, 105, 0.4), transparent);
    animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---- Divider ---- */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(5, 150, 105, 0.15), transparent);
}

/* ---- Section Headers ---- */
.section-label {
    max-height: 20px;
    overflow: hidden;
}

.section-label-inner {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #10B981;
    font-weight: 500;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.service-card {
    background: #FDF9F3;
    padding: 40px 32px;
    transition: background 0.4s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #047857, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.06);
}

.service-card-icon {
    color: #047857;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
}

.service-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #022C22;
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #047857;
    opacity: 0.7;
    font-weight: 300;
}

.service-card-line {
    height: 1px;
    background: linear-gradient(to right, rgba(5, 150, 105, 0.2), transparent);
    margin-top: 20px;
    transition: width 0.4s ease;
}

.service-card:hover .service-card-line {
    width: 60%;
}

/* ---- About Grid ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-frame {
    overflow: hidden;
    position: relative;
}

.about-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.about-stat {
    text-align: center;
}

.about-stat p:first-child {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 5/4;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: #FDF9F3;
    font-style: italic;
}

/* ---- Visit Section ---- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-detail-icon {
    color: #10B981;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-map-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.visit-map-overlay {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
    pointer-events: none;
}

/* ---- Footer ---- */
.footer-link {
    color: rgba(220, 240, 230, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    color: #6EE7B7;
    padding-left: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-split {
        padding-top: 100px;
    }

    .hero-image-wrapper {
        max-width: 500px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-image-wrapper {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        order: 2;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image-frame {
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-col {
        order: 1;
    }

    .about-text-col {
        order: 2;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-map-col {
        order: 2;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-emerald, .btn-outline {
        justify-content: center;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
