/* ============================================
   TEHACHAPI CLEANING PROZ — CUSTOM STYLES
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #d15036;
    color: #fefef8;
}

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

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

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

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

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
}

.hero-cta-primary {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-cta-secondary {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-stats {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-image-wrapper {
    animation: scaleIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   SCROLL REVEAL (below the fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.96);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-eyebrow {
    letter-spacing: 0.25em;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.section-desc {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: rgba(254, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(244, 181, 166, 0.3);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(116, 45, 34, 0.06);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #d15036;
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ============================================
   PROCESS CARDS
   ============================================ */
.process-card {
    padding: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1.5rem;
        width: 2rem;
        height: 2px;
        background: #f9d5cc;
        transform: translateY(-50%);
    }
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #e06c50 !important;
}

input::placeholder,
textarea::placeholder {
    color: #d4c4a8;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d15036' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
#mobile-menu-btn span:nth-child(1) {
    transform-origin: center;
}

#mobile-menu-btn span:nth-child(2) {
    transform-origin: center;
}

#mobile-menu-btn span:nth-child(3) {
    transform-origin: center;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   UTILITY
   ============================================ */
.text-balance {
    text-wrap: balance;
}

/* Thin line accents */
.line-accent {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #e06c50, transparent);
}
