:root {
    --primary: #004a99;
    --secondary: #f8991d;
    --accent: #25d366;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 70px;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
    width: 100%; margin: 0; padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease;
}
.loader {
    width: 45px; height: 40px; border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.98);
    height: var(--header-h); display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
    font-size: 1.2rem; font-weight: 700; color: var(--primary);
    text-decoration: none; display: flex; align-items: center; gap: 8px; z-index: 1100;
}
.logo span { color: var(--secondary); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 1.2rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 0.85rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.burger { display: none; cursor: pointer; z-index: 1100; padding: 5px; }
.burger div { width: 25px; height: 3px; background: var(--primary); margin: 5px; transition: 0.3s; border-radius: 3px; }

/* Responsive Navigation */
@media (max-width: 1150px) {
    .burger { display: block; }
    .nav-links {
        position: fixed; right: 0; top: 0; height: 100vh; width: 280px;
        background: var(--white); flex-direction: column; justify-content: flex-start;
        padding-top: 90px; transform: translateX(100%); transition: transform 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1050; overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { margin: 0; width: 100%; border-bottom: 1px solid #f5f5f5; }
    .nav-links a { font-size: 1rem; padding: 1.2rem; display: block; width: 100%; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    color: var(--white); text-align: center;
    padding: clamp(3rem, 12vw, 6rem) 0;
}
.hero h1 { font-size: clamp(1.6rem, 7vw, 3rem); line-height: 1.2; margin-bottom: 1rem; padding: 0 10px; }
.hero p { font-size: clamp(0.9rem, 4vw, 1.1rem); opacity: 0.9; margin-bottom: 2rem; padding: 0 20px; max-width: 800px; margin-left: auto; margin-right: auto; }

.cta-buttons {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; padding: 0 20px;
}

/* Dynamic Grids */
.section-padding { padding: clamp(2rem, 8vw, 4rem) 0; }
.section-title { text-align: center; margin-bottom: clamp(2rem, 6vw, 3rem); padding: 0 20px; }
.section-title h2 { font-size: clamp(1.4rem, 6vw, 2.3rem); color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { font-size: 0.95rem; color: #666; }

.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}
.service-card {
    background: var(--white); padding: clamp(1.5rem, 5vw, 2.5rem) 1.5rem; border-radius: 20px;
    text-align: center; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: block; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }

/* Forms */
.contact-form-container {
    background: var(--white); padding: clamp(1.2rem, 5vw, 3rem);
    border-radius: 25px; box-shadow: var(--shadow-md); width: 100%;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid #ddd; border-radius: 12px;
    font-size: 1rem; background: #fafafa; -webkit-appearance: none; font-family: inherit;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.8rem 1.8rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.3s;
    text-align: center;
}
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: #e68a00; transform: translateY(-2px); }

.btn-whatsapp-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-whatsapp-outline:hover { background: var(--accent); color: white; }

.btn-link { color: var(--primary); padding: 0; font-weight: 700; margin-top: 1rem; }
.btn-link:hover { text-decoration: underline; }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; background: var(--accent); color: var(--white);
    padding: 12px 20px; border-radius: 50px; display: flex; justify-content: center; align-items: center;
    gap: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none; transition: 0.3s;
}
.whatsapp-float i { font-size: 1.5rem; }
.whatsapp-float span { font-weight: 600; font-size: 0.9rem; display: none; }
@media (min-width: 768px) {
    .whatsapp-float span { display: inline; }
}
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Tables */
.table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 15px; box-shadow: var(--shadow-sm); margin-top: 1rem; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
th { background: #f8f9fa; color: var(--primary); font-weight: 700; }

/* Trust Banner */
.trust-banner { background: #fff; padding: 1.5rem; border-radius: 15px; box-shadow: var(--shadow-sm); margin-top: -30px; position: relative; z-index: 10; border-left: 5px solid var(--secondary); }
.trust-content { display: flex; align-items: center; gap: 15px; }
.trust-content i { color: #2ecc71; font-size: 1.5rem; }
.trust-content p { font-size: 0.95rem; font-weight: 500; }

/* Footer */
.main-footer { background: #0d1b2a; color: var(--white); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer-info h3 { margin-bottom: 1.2rem; color: var(--secondary); }
.footer-info p { opacity: 0.8; font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: white; text-decoration: none; opacity: 0.8; transition: 0.3s; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; color: var(--secondary); padding-left: 5px; }
.footer-contact p { margin-bottom: 0.8rem; font-size: 0.9rem; opacity: 0.8; display: flex; align-items: center; gap: 10px; }

.social-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.social-icons a { color: white; font-size: 1.2rem; transition: 0.3s; }
.social-icons a:hover { color: var(--secondary); }

.footer-bottom { text-align: center; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: #888; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .section-padding { padding: 2.5rem 0; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 320px; }
    .trust-banner { margin-top: 20px; }
}

/* Menu Toggle Animations */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
