/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ── Navbar ── */
.nav-logo-text { transition: color 0.4s; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C67B5C;
    border-radius: 1px;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Scrolled state */
.nav-scrolled #navbar {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-scrolled .nav-logo-text { color: #562E22; }
.nav-scrolled .nav-link { color: #4B5563; }
.nav-scrolled .nav-link:hover { color: #C67B5C; }
.nav-scrolled .menu-line { background: #374151; }

/* ── Mobile Menu ── */
.mobile-menu-open { overflow: hidden; }
.mobile-menu-open #mobileMenu { opacity: 1; pointer-events: auto; }
.mobile-menu-open .menu-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-open .menu-line:nth-child(2) { opacity: 0; }
.mobile-menu-open .menu-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 20px; }
.mobile-link { transition: color 0.3s; }

/* ── Hero ── */
.hero-title { opacity: 0; transform: translateY(30px); animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.hero-subtitle { opacity: 0; transform: translateY(20px); animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards; }
.hero-cta { opacity: 0; transform: translateY(20px); animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards; }
.hero-badge { opacity: 0; animation: fadeDown 0.7s ease 0.1s forwards; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator { animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Cards ── */
.card-group {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.card-group:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(198, 123, 92, 0.12);
}

/* ── Form ── */
#contactForm input:focus,
#contactForm textarea:focus {
    box-shadow: 0 0 0 3px rgba(198, 123, 92, 0.15);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title br { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title { font-size: 3.5rem; }
}
