/* ========== BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #14422a;
    color: #faf9f6;
}

/* ========== NAVIGATION ========== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #14422a;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 66, 42, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #0a2e1a;
}

.nav-scrolled .nav-logo-sub {
    color: #1f5c3b;
}

.nav-scrolled .nav-link {
    color: #14422a;
}

.nav-scrolled .menu-line {
    background-color: #14422a;
}

/* ========== MOBILE MENU ========== */
.menu-line {
    transition: all 0.3s ease;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-open {
    transform: translateX(0) !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: #14422a;
    color: #faf9f6;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 2px solid #14422a;
}

.btn-primary:hover {
    background-color: #1f5c3b;
    border-color: #1f5c3b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 66, 42, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #14422a;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 2px solid #14422a;
}

.btn-secondary:hover {
    background-color: #14422a;
    color: #faf9f6;
    transform: translateY(-2px);
}

/* ========== SECTION STYLES ========== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1f5c3b;
    background-color: #e8f0ec;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

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

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4a6b5a;
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ========== GALLERY ========== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FORM STYLES ========== */
.input-field {
    background-color: #faf9f6;
    border: 1.5px solid #d4cfc5;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #0a2e1a;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    outline: none;
}

.input-field::placeholder {
    color: #a0a89f;
}

.input-field:focus {
    border-color: #14422a;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 66, 42, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: #4aad6e;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314422a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.input-field {
    resize: vertical;
    min-height: 120px;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* ========== 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 {
        opacity: 1;
        transform: none;
    }
}
