/* ===== 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 {
    min-height: 100vh;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0f2e11;
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* ===== Navigation ===== */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(8, 27, 10, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo-text {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo-text {
    color: rgba(255, 255, 255, 0.95);
}

.nav-logo-icon {
    color: #86efac;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #fff;
}

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

.mobile-menu-btn {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #fff;
}

.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #86efac;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
}

.btn-primary {
    background: #86efac;
    color: #0f2e11;
    border-radius: 2px;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(134, 239, 172, 0.3);
}

.btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: #1a5c2a;
    border: 1px solid #1a5c2a;
    border-radius: 2px;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
}

.btn-outline:hover {
    background: #1a5c2a;
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    font-size: 0.9375rem;
    padding: 1rem 2rem;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ===== Hero ===== */
.hero-badge {
    animation: fadeUp 0.8s ease both;
}

.hero-badge span {
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero content animations */
#hero > .relative > .max-w-2xl > * {
    animation: fadeUp 0.8s ease both;
}

#hero > .relative > .max-w-2xl > *:nth-child(1) { animation-delay: 0.1s; }
#hero > .relative > .max-w-2xl > *:nth-child(2) { animation-delay: 0.2s; }
#hero > .relative > .max-w-2xl > *:nth-child(3) { animation-delay: 0.3s; }
#hero > .relative > .max-w-2xl > *:nth-child(4) { animation-delay: 0.4s; }
#hero > .relative > .max-w-2xl > *:nth-child(5) { animation-delay: 0.5s; }
#hero > .relative > .max-w-2xl > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.4; height: 24px; }
}

/* ===== Section Styles ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a5c2a;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background: #1a5c2a;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1d1a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #6B6E68;
    line-height: 1.7;
    max-width: 540px;
}

/* ===== Service Cards ===== */
.service-card {
    background: #fff;
    border: 1px solid #e8efe8;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1a5c2a, #86efac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: #b7dbb7;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 92, 42, 0.08);
}

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

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7f0;
    color: #1a5c2a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #1a5c2a;
    color: #86efac;
}

/* ===== Gallery ===== */
.gallery-item {
    overflow: hidden;
    border-radius: 2px;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 27, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===== Step Numbers ===== */
.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d9ecd9;
    line-height: 1;
}

/* ===== FAQ ===== */
.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #86efac;
}

.faq-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ===== Form ===== */
.input {
    border: 1px solid #d4ddd4;
    background: #fff;
    color: #1a1d1a;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border-radius: 2px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.input:focus {
    outline: none;
    border-color: #1a5c2a;
    box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.1);
}

.input::placeholder {
    color: #a8aba6;
}

/* ===== Reveal Animations (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .nav {
        background: rgba(8, 27, 10, 0.98);
        backdrop-filter: blur(12px);
    }

    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .service-card {
        padding: 1.5rem;
    }

    .gallery-img-wrap {
        aspect-ratio: 1 / 1;
    }

    .gallery-img-wrap:nth-child(1) img,
    .gallery-img-wrap:nth-child(3) img,
    .gallery-img-wrap:nth-child(5) img {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 480px) {
    .max-w-7xl {
        px: 1.25rem;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
    }

    #hero > .relative > .max-w-2xl > *:nth-child(1) { animation-delay: 0s; }
    #hero > .relative > .max-w-2xl > *:nth-child(2) { animation-delay: 0.1s; }
    #hero > .relative > .max-w-2xl > *:nth-child(3) { animation-delay: 0.2s; }
    #hero > .relative > .max-w-2xl > *:nth-child(4) { animation-delay: 0.3s; }
    #hero > .relative > .max-w-2xl > *:nth-child(5) { animation-delay: 0.4s; }
    #hero > .relative > .max-w-2xl > *:nth-child(6) { animation-delay: 0.5s; }
}
