/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Colors - Premium Blue/Teal scheme for cleaning/trust */
    --color-primary: #0F375A; /* Deep trust blue */
    --color-primary-light: #2A5A85; 
    --color-accent: #05A5D1; /* Fresh water teal/cyan */
    --color-accent-hover: #038cb3;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;
    
    --color-text-dark: #1A202C;
    --color-text-muted: #4A5568;
    --color-bg-light: #F7FAFC;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --section-padding: 100px 0;
    
    /* Effects */
    --shadow-soft: 0 10px 40px rgba(15, 55, 90, 0.08);
    --shadow-hover: 0 15px 50px rgba(5, 165, 209, 0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   RESET & BASICS
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }

/* =========================================================================
   UTILITIES & COMPONENTS
   ========================================================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline-block { display: inline-block; }
.relative-img { position: relative; }

.opacity-80 { opacity: 0.8; }

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(5, 165, 209, 0.1);
    color: var(--color-accent);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(5, 165, 209, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 165, 209, 0.4);
    color: white;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
    border-radius: 50px;
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Images & Effects */
.rounded-img { border-radius: var(--radius-lg); overflow: hidden; }
.shadow-lg { box-shadow: var(--shadow-soft); }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    padding: 80px 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active { right: 0; }

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(247,250,252,1) 0%, rgba(235,244,255,1) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    margin-left: -15px;
    object-fit: cover;
    background-color: #ddd;
}
.avatar:first-child { margin-left: 0; }

.trust-indicator p {
    margin: 0;
    font-size: 0.875rem;
}

.floating-img {
    animation: float 6s ease-in-out infinite;
    width: 100%;
    height: 600px;
    object-fit: cover;
    background-color: #e2e8f0; /* Placeholder color before images are loaded */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-shape {
    position: absolute;
    bottom: -5px; /* Offset for rendering bug */
    left: 0;
    width: 100%;
    z-index: 1;
}

/* =========================================================================
   PROBLEM SECTION
   ========================================================================= */
.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-accent);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(15, 55, 90, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition);
}

.problem-card:hover .problem-icon {
    background: var(--color-accent);
    color: var(--color-white);
}

/* =========================================================================
   MECHANISM SECTION
   ========================================================================= */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--color-white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.mechanism-image-wrapper img {
    height: 600px;
    object-fit: cover;
    width: 100%;
    background-color: #cbd5e1;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    gap: 20px;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.5;
}

.step-info p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-img-wrap {
    position: relative;
    height: 200px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.service-icon {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(5, 165, 209, 0.4);
    border: 4px solid var(--color-white);
}

.service-content {
    padding: 40px 30px 30px;
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================================================
   SOCIAL PROOF
   ========================================================================= */
.stars i { color: #FBBF24; font-size: 1.5rem; margin: 0 2px; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--color-white);
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

.reviewer-info h4 {
    color: var(--color-white);
    margin-bottom: 0px;
    font-size: 1.1rem;
}

.reviewer-info span {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* =========================================================================
   CTA SECTION
   ========================================================================= */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: var(--color-white);
    box-shadow: 0 20px 40px rgba(15, 55, 90, 0.2);
}

.cta-box h2 {
    color: var(--color-white);
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: #0B253C;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: inherit;
    max-width: 300px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--color-accent);
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a:hover { color: var(--color-accent); }

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-container { gap: 30px; }
}

@media (max-width: 991px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-container, .grid-2-col, .problem-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero { padding: 120px 0 80px; text-align: center; }
    .hero-actions { align-items: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
    
    .mechanism-content { margin-top: 40px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    :root { --section-padding: 60px 0; }
    .hero-title { font-size: 2.5rem; }
    .cta-box { padding: 40px 20px; }
}
