/* ============================================
   Laperuta Risk Management — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(94, 234, 212, 0.3);
    color: #060e1a;
}

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

#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 14, 26, 0.06);
}

/* --- Hero --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.5), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(126, 232, 212, 0.3), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

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

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

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

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

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

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

/* Scroll indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 0.8; }
}

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.15);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-label-dark {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5eead4;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.15);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #060e1a;
    line-height: 1.15;
}

.section-title-light {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.1rem;
    color: #060e1a;
    opacity: 0.6;
    line-height: 1.7;
}

.section-desc-light {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.5;
    line-height: 1.7;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(6, 14, 26, 0.06);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5eead4, #14b8a6);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 14, 26, 0.08);
    border-color: rgba(94, 234, 212, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon-wrap {
    background: rgba(20, 184, 166, 0.12);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #060e1a;
}

.service-desc {
    font-size: 0.925rem;
    color: #060e1a;
    opacity: 0.6;
    line-height: 1.7;
}

/* --- About --- */
.about-image-wrapper {
    position: relative;
}

.about-floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

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

.process-step {
    position: relative;
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(94, 234, 212, 0.2);
}

.step-icon-wrap {
    transition: transform 0.35s ease;
}

.process-step:hover .step-icon-wrap {
    transform: scale(1.08);
}

.process-step-title {
    position: relative;
    z-index: 1;
}

.process-step-desc {
    position: relative;
    z-index: 1;
}

/* Process orbs */
.process-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.process-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.5), transparent 70%);
    top: -10%;
    left: 10%;
}

.process-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
    bottom: -5%;
    right: 5%;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(6, 14, 26, 0.06);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(6, 14, 26, 0.07);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    position: relative;
}

/* --- Contact Form --- */
.input-field {
    background: #ffffff;
    border: 1.5px solid rgba(6, 14, 26, 0.1);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #060e1a;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: rgba(6, 14, 26, 0.3);
}

.input-field:hover {
    border-color: rgba(20, 184, 166, 0.3);
}

.input-field:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

.form-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: #060e1a;
    color: #ffffff;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.form-submit-btn:hover {
    background: #0a1628;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(6, 14, 26, 0.2);
}

.form-submit-btn:active {
    transform: translateY(0);
}

/* --- CTA Buttons --- */
.cta-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(94, 234, 212, 0.35) !important;
}

.cta-secondary {
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .hero-orb {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}
