/* ============================================
   Perry Mossembekker Insurance Agency
   Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 61, 30, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(161, 98, 7, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.geo-rect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(244, 157, 122, 0.05);
    border-radius: 30px;
    transform: rotate(45deg);
    top: 40%;
    right: 5%;
    pointer-events: none;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 80px 140px 80px;
    border-color: transparent transparent rgba(201, 61, 30, 0.04) transparent;
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(201, 61, 30, 0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    top: 30%;
    left: 8%;
    pointer-events: none;
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-flex;
    align-items: center;
    background: #c93d1e;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(201, 61, 30, 0.35);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: #a82f1a;
    box-shadow: 0 12px 40px rgba(201, 61, 30, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #45382e;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 60px;
    border: 2px solid #d4c4b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: #c93d1e;
    color: #c93d1e;
    transform: translateY(-2px);
}

/* --- Nav Links --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c93d1e;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* --- Hero Animations --- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 1s ease forwards;
}

.hero-image-wrapper {
    opacity: 1;
    transform: translateY(0);
    animation: heroImageIn 1s ease 0.2s forwards;
}

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

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

.hero-float-card {
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Service Cards --- */
.service-card {
    cursor: pointer;
}

/* --- Why Cards --- */
.why-card {
    cursor: pointer;
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(250, 246, 241, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    border-radius: 12px;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* --- About Images --- */
.about-images {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-img-border {
        display: none;
    }

    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        max-width: 100%;
    }

    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }

    .geo-rect {
        width: 100px;
        height: 100px;
    }

    .geo-triangle {
        border-width: 0 50px 90px 50px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-img-border {
        display: none;
    }
}

/* --- Focus visible --- */
*:focus-visible {
    outline: 2px solid #c93d1e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: rgba(201, 61, 30, 0.15);
    color: #3e100a;
}
