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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C4704B;
    color: #FDF9F5;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(135deg, #8F4532 0%, #C4704B 35%, #D49A5E 65%, #E0B07E 100%);
}

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

.nav.scrolled {
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

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

.nav-link {
    position: relative;
}

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

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

.nav.scrolled .nav-link {
    color: #6D472D;
}

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

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ─── Hero Animations ─── */
.hero-subtitle {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease 0.9s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeIn 0.8s ease 1.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ─── Buttons ─── */
.btn-primary {
    box-shadow: 0 4px 20px rgba(196, 112, 75, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(196, 112, 75, 0.35);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(24px);
}

/* ─── Contact Form ─── */
.contact-input {
    border-bottom-width: 1px;
}

.contact-input::placeholder {
    color: #C49A5E;
    opacity: 0.6;
}

.contact-input:focus {
    border-bottom-color: #C4704B;
}

.btn-submit {
    box-shadow: 0 4px 20px rgba(196, 112, 75, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    box-shadow: 0 8px 30px rgba(196, 112, 75, 0.4);
    transform: translateY(-2px);
}

/* ─── Image Hover ─── */
.group:hover .relative img {
    transform: scale(1.05);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
}

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

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