/* ============================================
   Life Insurance Maui — Custom Styles
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #d44a3e;
    color: #fff;
}

/* ---- Hero Pattern ---- */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 74, 62, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(228, 160, 74, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 39, 68, 0.02) 0%, transparent 60%);
}

/* ---- Navbar ---- */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.06);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.06);
}

.nav-scrolled .nav-link {
    position: relative;
}

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

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

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

.hamburger-line {
    display: block;
    transition: all 0.3s ease;
}

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

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

#mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Animations ---- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d44a3e, #e4a04a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(212, 74, 62, 0.06);
    pointer-events: none;
}

/* ---- Process Steps ---- */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 767px) {
    .process-step::after {
        display: none;
    }
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ---- Button Hover Glow ---- */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* ---- Input Focus ---- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d44a3e;
    border-radius: 4px;
}

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

/* ---- Utility ---- */
.text-gradient {
    background: linear-gradient(135deg, #d44a3e, #e4a04a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
