/* ============================================
   No Worries Red Umbrella — Custom Styles
   ============================================ */

/* --- Coolvetica Font --- */
@font-face {
    font-family: 'Coolvetica';
    src: url('/assets/fonts/coolvetica-rg.woff2') format('woff2'),
         url('/assets/fonts/coolvetica-rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Hide reCAPTCHA v3 badge (attribution included near forms per Google's T&Cs) --- */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* --- CSS Custom Properties --- */
:root {
    --brand-red: #D42B2B;
    --brand-red-dark: #B91C1C;
    --brand-red-light: #FEE2E2;
    --brand-navy: #0F172A;
    --brand-charcoal: #1E293B;
    --nav-height: 80px;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-charcoal);
    overflow-x: hidden;
}

/* --- Hero Animations (CSS keyframes, not Intersection Observer) --- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
}
.hero-animate-delay-1 { animation-delay: 0.1s; }
.hero-animate-delay-2 { animation-delay: 0.3s; }
.hero-animate-delay-3 { animation-delay: 0.5s; }
.hero-animate-delay-4 { animation-delay: 0.7s; }

/* --- Hero Background --- */
.hero-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

/* --- Floating Gradient Blobs --- */
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, -25px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.05); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, 30px) scale(1.05); }
    50% { transform: translate(25px, 50px) scale(1.12); }
    75% { transform: translate(-15px, -20px) scale(0.97); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    33% { transform: translate(35px, 25px) scale(0.95); }
    66% { transform: translate(-25px, -35px) scale(1.1); }
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    will-change: transform;
}

.hero-blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 43, 43, 0.55) 0%, rgba(212, 43, 43, 0.2) 40%, rgba(212, 43, 43, 0) 70%);
    top: -15%;
    left: -10%;
    animation: blobFloat1 20s ease-in-out infinite;
}

.hero-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 43, 43, 0.45) 0%, rgba(212, 43, 43, 0.15) 40%, rgba(212, 43, 43, 0) 70%);
    top: 20%;
    right: -12%;
    animation: blobFloat2 25s ease-in-out infinite;
}

.hero-blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0.1) 40%, rgba(99, 102, 241, 0) 70%);
    bottom: -10%;
    left: 25%;
    animation: blobFloat3 22s ease-in-out infinite;
}

/* Mobile: smaller blobs */
@media (max-width: 767px) {
    .hero-blob-1 { width: 400px; height: 400px; }
    .hero-blob-2 { width: 350px; height: 350px; }
    .hero-blob-3 { width: 280px; height: 280px; }
}

/* --- Glassmorphism Hero Panel --- */
.hero-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Trust Bar Glass --- */
.trust-bar-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- CSS Umbrella Silhouette --- */
.umbrella-decoration {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    opacity: 0.06;
}

.umbrella-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--brand-red);
    border-radius: 250px 250px 0 0;
}

.umbrella-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 45%;
    background: var(--brand-red);
    border-radius: 0 0 3px 3px;
}

@media (max-width: 1023px) {
    .umbrella-decoration {
        width: 300px;
        height: 300px;
        right: -10%;
        opacity: 0.04;
    }
    .umbrella-decoration::before {
        border-radius: 150px 150px 0 0;
    }
}

/* --- Scroll-triggered Animations --- */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="scale-in"] {
    transform: scale(0.95);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Hamburger Menu --- */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.is-open {
    max-height: 600px;
}

/* --- Services Dropdown --- */
.services-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.services-trigger:hover .services-dropdown,
.services-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Sticky Nav Shadow --- */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Section Breaker Graphics --- */
.section-breaker {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    height: 0;
}

.section-breaker-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    background: white;
    flex-shrink: 0;
}

.section-breaker-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .section-breaker-circle {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

/* --- Vertical Timeline (New to Contracting) --- */
.timeline-step {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 2rem;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2.25rem;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand-red);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* --- Comparison Table --- */
.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.comparison-table th {
    font-weight: 600;
    background: #F8FAFC;
}

@media (max-width: 639px) {
    .comparison-table {
        font-size: 0.875rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* --- Section Dividers --- */
.section-divider-top {
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
    margin-top: -40px;
    padding-top: calc(40px + 4rem);
}

/* --- Dashboard Mockup --- */
.dashboard-mockup {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pulse-live {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Calculator Styles --- */
.calc-toggle-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.calc-toggle-btn.active {
    background-color: var(--brand-red);
    color: white;
}

/* --- Skim Detector Styles --- */
.skim-period-btn {
    background-color: white !important;
    border-color: #E2E8F0 !important;
    color: #64748B !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.skim-period-btn:hover {
    border-color: #CBD5E1 !important;
    color: #334155 !important;
}

.skim-period-btn.active {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}

.calc-result-number {
    font-variant-numeric: tabular-nums;
}

/* --- Feature Card Hover --- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* --- Trust Bar (legacy, replaced by .trust-bar-glass in hero) --- */

/* --- Focus Visible (Accessibility) --- */
*:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        animation: none;
        opacity: 1;
    }

    .hero-gradient {
        animation: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pulse-live {
        animation: none;
    }

    .hero-blob {
        animation: none !important;
    }

    .mobile-menu {
        transition: none;
    }

    .services-dropdown {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0F172A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}
