/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(27, 67, 50, 0.15); }

/* ─── Custom Properties ─── */
:root {
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Input Fields ─── */
.input-field {
    border: none;
    border-bottom: 1px solid rgba(27, 67, 50, 0.2);
    padding: 0.75rem 0;
    background: transparent;
    color: #1B4332;
    outline: none;
    transition: border-color 0.3s var(--transition-smooth);
    width: 100%;
    font-weight: 300;
}
.input-field::placeholder { color: rgba(27, 67, 50, 0.3); }
.input-field:focus { border-bottom-color: #1B4332; }
.input-field option { background: #FDFCFA; color: #1B4332; }
textarea.input-field { resize: none; }

/* ─── Buttons ─── */
.btn-primary { border-radius: 0; }
.btn-secondary { border-radius: 0; }

/* ─── Navigation ─── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1B4332;
    transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover::after { width: 100%; }

/* ─── Navbar Scroll State ─── */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}
#navbar.scrolled .nav-link { color: #1B4332; }

/* ─── Card Float Animations ─── */
.card-float {
    animation: float 6s ease-in-out infinite;
}
.card-float:nth-child(2) { animation-delay: -1.5s; }
.card-float:nth-child(4) { animation-delay: -3s; }
.card-float:nth-child(5) { animation-delay: -4.5s; }

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

/* ─── Service Cards ─── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
    transform: scaleX(0);
    transition: transform 0.5s var(--transition-smooth);
}
.service-card:hover::before { transform: scaleX(1); }

/* ─── Scroll Reveal ─── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.open .mobile-link {
    animation: fadeUp 0.5s var(--transition-smooth) forwards;
    opacity: 0;
    transform: translateY(16px);
}
#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; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

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

/* ─── Menu Toggle Animation ─── */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 5px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FBF8F4; }
::-webkit-scrollbar-thumb { background: #B3D4B5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7DB982; }
