/* ==================== BASE & RESET ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a2e0e;
}
::-webkit-scrollbar-thumb {
    background: #d4941e;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8a832;
}

/* ==================== NAVIGATION ==================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 46, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== ARCH CLIP ==================== */
.arch-clip {
    border-radius: 999px 999px 20px 20px;
}

/* ==================== HERO BACKGROUND ==================== */
.hero-bg-texture {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 148, 30, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(107, 65, 135, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 148, 30, 0.05) 0%, transparent 40%);
}

/* ==================== ANIMATIONS ==================== */

/* Fade-up on scroll */
.fade-up {
    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);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-100 { transition-delay: 0.1s; }
.fade-up.delay-200 { transition-delay: 0.2s; }
.fade-up.delay-300 { transition-delay: 0.3s; }

/* Logo bloom on hover */
.logo-bloom {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-bloom:hover,
.group:hover .logo-bloom {
    transform: scale(1.1) rotate(5deg);
}

/* Scroll line */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* Service card hover lift */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* Insurance logo subtle float */
.insurance-logo {
    transition: transform 0.4s ease;
}
.insurance-logo:hover {
    transform: scale(1.05);
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
.menu-open .hamburger-lines span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}
.menu-open .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.menu-open .hamburger-lines span:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -6px);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(232, 168, 50, 0.3);
    color: #0a2e0e;
}

/* ==================== CONTACT FORM ==================== */
.contact-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230a2e0e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.error-border {
    border-color: #f87171 !important;
}
.error-border:focus {
    ring-color: rgba(248, 113, 113, 0.5) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-bg-texture {
        opacity: 0.15;
    }
}

/* Smooth anchor links for all sections */
section[id] {
    scroll-margin-top: 6rem;
}