/* =========================================================================
   VARIABLES & DESIGN SYSTEM
========================================================================= */
:root {
    /* Colors */
    --primary-color: #0b1c3a; /* Deep Navy, Trust, Corporate */
    --primary-light: #163261;
    --secondary-color: #d4af37; /* Premium Gold */
    --secondary-hover: #c49d26;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #f8fafc;
    
    /* Utility colors */
    --whatsapp-color: #25d366;
    --whatsapp-hover: #1ebd5b;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
}

/* =========================================================================
   RESET & BASE STYLES
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

/* =========================================================================
   COMPONENTS
========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    border-color: var(--whatsapp-color);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-whatsapp-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-whatsapp-outline:hover {
    background-color: var(--whatsapp-color);
    color: white;
    border-color: var(--whatsapp-color);
    transform: translateY(-2px);
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.divider.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================================================
   LAYOUT MODULES
========================================================================= */

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    margin-right: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover,
.social-links a:hover {
    color: var(--secondary-color);
}

.social-links a {
    margin-left: 1rem;
    font-size: 1rem;
}

/* Header & Navigation */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: var(--primary-color);
    transform: skewX(-15deg);
    z-index: 0;
    border-radius: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    border: 8px solid rgba(255, 255, 255, 0.1);
}

.hero-blob {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
    filter: blur(20px);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    border-left: 4px solid var(--secondary-color);
    animation: float 3s ease-in-out infinite;
}

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

.experience-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.exp-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1;
}

.exp-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(11, 28, 58, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* Why Choose Us */
.why-us {
    background-color: var(--surface-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.why-us-content > p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.why-us-image-wrapper {
    position: relative;
    border-radius: 8px;
    z-index: 1;
}

.why-us-image {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.floating-stat {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.2rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-info strong {
    display: block;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d4af37" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    padding: var(--spacing-lg) 0;
    color: var(--text-light);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
}

.contact-info-panel h2 {
    font-size: 2.5rem;
}

.info-items {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.info-content p {
    margin-bottom: 0;
}

.info-content a:hover {
    color: var(--secondary-color);
}

.contact-form-panel {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background-color: #051024;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--spacing-lg);
}

.footer .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #030a17;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-wa i {
    font-size: 35px;
}

.float-wa:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    pointer-events: none;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.float-wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* =========================================================================
   RESPONSIVE DESIGN (Media Queries)
========================================================================= */

@media (max-width: 992px) {
    .hero::before {
        display: none;
    }
    
    .hero {
        background-color: var(--primary-color);
        color: var(--text-light);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        color: white;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
        color: rgba(255,255,255,0.8);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .btn-outline {
        border-color: rgba(255,255,255,0.5);
        color: white;
    }
    
    .btn-outline:hover {
        background-color: white;
        color: var(--primary-color);
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .why-us-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-stat {
        bottom: -15px;
        right: 10px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .contact-info {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .contact-info a { margin-right: 0; }
    
    .hide-mobile-text { display: none; }
    
    .social-links { display: none; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100%);
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-btn {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .experience-card {
        padding: 1rem;
        bottom: -15px;
        left: 0;
    }
    
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer ul {
        align-items: center;
    }
}
