/* ============================================
   LARGO CABINETS — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Hero Gradient --- */
.hero-gradient {
    background: linear-gradient(135deg, #0f2610 0%, #1a3c1a 30%, #2a5c2a 60%, #1a3c1a 85%, #081508 100%);
}

/* --- Hero Animations --- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-ctas {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

/* --- Scroll Reveal Animations (below fold only) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.visible {
        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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

.nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

.nav.scrolled .nav-link {
    color: #1a3c1a;
}

.nav.scrolled .nav-link:hover {
    color: #3d7a3d;
}

.nav.scrolled .mobile-link {
    color: #1a3c1a;
}

.nav.scrolled .mobile-link:hover {
    color: #3d7a3d;
}

.nav.scrolled #bar1,
.nav.scrolled #bar2,
.nav.scrolled #bar3 {
    background: #1a3c1a;
}

/* --- Section Labels & Titles --- */
.section-label {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.01em;
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

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

/* --- Gallery --- */
.gallery-item {
    position: relative;
}

/* --- Buttons --- */
.cta-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* --- Form Inputs --- */
.form-input {
    font-size: 0.9375rem;
}

.form-input:focus {
    border-color: #3d7a3d;
}

.form-input option {
    color: #1a3c1a;
    background: #faf8f5;
}

.form-submit {
    letter-spacing: 0.15em;
}

.form-submit:hover {
    transform: translateY(-1px);
}

/* --- Contact Items --- */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

/* --- About Image --- */
.about-img-wrapper {
    box-shadow: 0 25px 60px -20px rgba(15, 38, 16, 0.2);
}

/* --- Mobile Menu --- */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

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

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- 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;
    }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #dce8df;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b9d1bb;
}
