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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #93b9a3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7c62;
}

/* ===== SELECTION ===== */
::selection {
    background: #1B4332;
    color: #FDFBF7;
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default state: visible — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

    .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; }
}

/* ===== NAVBAR SCROLLED STATE ===== */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.navbar-scrolled .navbar-link {
    color: #1B4332;
}

.navbar-scrolled .navbar-link:hover {
    color: #4a7c62;
}

.navbar-scrolled .logo-text {
    color: #1B4332;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== GALLERY HOVER ===== */
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

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

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===== SERVICE CARD HOVER ===== */
.service-card:hover .service-icon {
    background: #1B4332;
}

.service-card:hover .service-icon svg {
    color: #D4A843;
}

/* ===== BUTTON MICRO-INTERACTIONS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== FORM INPUTS ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 124, 98, 0.15);
}

/* ===== LOADING STATE ===== */
.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A843, transparent);
    margin: 0 auto;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    /* Tablet adjustments if needed */
}
