/* ============================================
   TAYLOR-HAMILTON INSURANCE AGENCY
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(176, 115, 82, 0.2);
    color: inherit;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4cfc8;
    border-radius: 3px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

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

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

/* Transparent nav on hero, solid on scroll */
#navbar {
    background: transparent;
    color: #FAF9F7;
}

#navbar.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 207, 200, 0.5);
    color: #1f1a16;
}

.nav-shield-stroke {
    stroke: currentColor;
}

.nav-shield-fill {
    fill: currentColor;
}

/* Mobile Menu */
#mobile-menu {
    background: #FAF9F7;
    color: #1f1a16;
}

.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
    position: relative;
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   SERVICE ICONS
   ============================================ */

.service-icon-path {
    stroke: #b07352;
    transition: stroke 0.3s ease;
}

.service-icon-fill {
    fill: #b07352;
    transition: fill 0.3s ease;
}

/* ============================================
   WHY-US ICONS
   ============================================ */

.why-icon-stroke {
    stroke: #b07352;
    transition: stroke 0.3s ease;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    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; }

/* ============================================
   FORM STYLES
   ============================================ */

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%239a8f82'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select:focus {
    border-color: #b07352;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
