/* ============================================
   RISK & INSPECTION — Professional Design
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red:         #e02033;
    --red-light:   #ff3f52;
    --red-glow:    rgba(224, 32, 51, 0.25);
    --dark:        #0a0f1e;
    --dark-card:   rgba(255, 255, 255, 0.04);
    --dark-border: rgba(255, 255, 255, 0.10);
    --text-primary: #f0f4ff;
    --text-muted:   #8b9ab8;
    --green-wa:    #25d366;
    --radius-lg:   20px;
    --radius-md:   12px;
    --shadow-red:  0 0 60px rgba(224, 32, 51, 0.15);
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Animated Background ---- */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--dark);
    overflow: hidden;
}

.background::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(224, 32, 51, 0.18) 0%, transparent 70%);
    animation: driftA 12s ease-in-out infinite alternate;
}

.background::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
    animation: driftB 14s ease-in-out infinite alternate;
}

@keyframes driftA {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(5%, 8%) scale(1.1); }
}
@keyframes driftB {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-5%, -6%) scale(1.08); }
}

/* ---- Noise Texture overlay ---- */
.background-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 24px 70px;
}

.logo {
    width: 160px;
    margin-bottom: 36px;
    filter: drop-shadow(0 4px 24px rgba(224, 32, 51, 0.35));
    animation: float 6s ease-in-out infinite;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 32, 51, 0.15);
    border: 1px solid rgba(224, 32, 51, 0.40);
    color: #ff6b7a;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    animation: fadeDown 0.6s ease both;
}

.badge i {
    font-size: 12px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #c8d0e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.7s ease 0.1s both;
}

.description {
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.8;
    max-width: 580px;
    animation: fadeUp 0.7s ease 0.2s both;
}

/* ---- CTA Buttons ---- */
.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 44px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::after {
    opacity: 0.08;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn-primary:hover {
    background: var(--red-light);
    box-shadow: 0 6px 30px rgba(224, 32, 51, 0.45);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: var(--green-wa);
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateY(-3px);
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.divider-icon {
    color: var(--red);
    font-size: 18px;
    opacity: 0.7;
}

/* ============================================
   SERVICES CARD
   ============================================ */
.services-section {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 24px 80px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 52px 56px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), var(--shadow-red);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.6;
}

.card-header {
    text-align: center;
    margin-bottom: 36px;
}

.card-header .section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.card-header h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-intro {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ---- Services List ---- */
.list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: var(--transition);
    cursor: default;
}

.list-item:hover {
    background: rgba(224, 32, 51, 0.08);
    border-color: rgba(224, 32, 51, 0.25);
    transform: translateY(-2px);
}

.list-item i {
    color: var(--red);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.list-item span {
    font-size: 14px;
    color: #c8d0e8;
    line-height: 1.5;
}

/* ---- Card Note / Footer ---- */
.card-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(224, 32, 51, 0.07);
    border: 1px solid rgba(224, 32, 51, 0.20);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}

.card-note i {
    color: #ff8a94;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.card-note p {
    font-size: 13.5px;
    color: #c8d0e8;
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--dark-border);
    padding: 36px 24px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-brand strong {
    color: var(--text-primary);
}

.footer-contacts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact-item:hover {
    color: var(--text-primary);
}

.footer-contact-item i {
    color: var(--red);
    font-size: 14px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeUp 0.6s ease both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 50px;
    }

    .list {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 36px 28px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contacts {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}