/* ===== Custom Styles for Restoration 1 ===== */

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 69, 104, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 125, 184, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-triangle {
    top: 40%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(128, 0, 32, 0.06);
    transform: rotate(15deg);
}

.geo-dots {
    top: 60%;
    right: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 69, 104, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

/* --- Hero --- */
.hero-gradient {
    background: linear-gradient(135deg, #520015 0%, #800020 25%, #b8294d 50%, #d44568 75%, #e86d8e 100%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-geo {
    animation: float 8s ease-in-out infinite;
}

.hero-geo-1 { animation-delay: 0s; }
.hero-geo-2 { animation-delay: -2s; }
.hero-geo-3 { animation-delay: -4s; }
.hero-geo-4 { animation-delay: -6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

/* Hero entrance animations */
.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.4s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Navbar --- */
.nav-fixed {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-fixed.scrolled .nav-link {
    color: #800020;
}

.nav-fixed.scrolled .font-heading,
.nav-fixed.scrolled .font-extrabold {
    color: #800020;
}

.nav-fixed.scrolled .font-body,
.nav-fixed.scrolled .tracking-widest {
    color: #b8294d;
}

.nav-fixed.scrolled .w-10 {
    background-color: #800020;
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Process Steps --- */
.process-step:hover .bg-white {
    border-color: rgba(184, 41, 77, 0.3);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default visible state for reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

body.menu-open {
    overflow: hidden;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection --- */
::selection {
    background-color: rgba(184, 41, 77, 0.2);
    color: #520015;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #d44568;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8294d;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    .hero-geo-1 {
        width: 200px;
        height: 200px;
    }

    .hero-geo-2 {
        width: 120px;
        height: 120px;
    }

    .hero-geo-3,
    .hero-geo-4 {
        display: none;
    }
}
