:root {
    /* Light Theme — Premium Navy & Gold */
    --bg-color: #f6f7fb;
    --text-color: #0f1f3d;
    --text-muted: #4a5a73;
    --surface-color: #ffffff;
    --surface-alt: #eef1f7;
    --primary-color: #0f2c59;       /* deep navy */
    --primary-hover: #163a73;
    --secondary-color: #e6ebf3;
    --accent-color: #d89f3c;        /* signature gold */
    --accent-hover: #c08820;
    --header-bg: #0f1c30;
    --border-color: #d8dfea;
    --glass-bg: rgba(18, 33, 64, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 14px -2px rgba(15, 44, 89, 0.08), 0 2px 4px -1px rgba(15, 44, 89, 0.05);
    --shadow-lg: 0 18px 40px -12px rgba(15, 44, 89, 0.18), 0 6px 14px -4px rgba(15, 44, 89, 0.08);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0a1426;
    --text-color: #f1f5fb;
    --text-muted: #9fb0c8;
    --surface-color: #122140;
    --surface-alt: #0f1c36;
    --primary-color: #d89f3c;       /* swap: gold becomes primary on dark */
    --primary-hover: #f0bb5a;
    --secondary-color: #1c2c4d;
    --accent-color: #f0bb5a;
    --accent-hover: #ffd07a;
    --header-bg: rgba(10, 20, 38, 0.85);
    --border-color: #233456;
    --glass-bg: rgba(18, 33, 64, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #ffffff;
    box-shadow: 0 6px 18px -4px rgba(216, 159, 60, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(216, 159, 60, 0.65);
    color: #fff;
    filter: brightness(1.05);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 18px -4px rgba(15, 44, 89, 0.4);
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-call-btn {
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
    box-shadow: 0 6px 16px -6px rgba(216, 159, 60, 0.45);
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at top left, rgba(15, 44, 89, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(216, 159, 60, 0.12) 0%, transparent 55%),
        var(--bg-color);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(216, 159, 60, 0.06) 0%, transparent 50%);
    animation: rotate 80s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 72%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hero-stats {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 3;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] .hero-stats {
    background: rgba(18, 33, 64, 0.48);
    border-color: rgba(255, 255, 255, 0.06);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-box p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Services Preview */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--surface-color);
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 18px;
    box-shadow: 0 10px 24px -8px rgba(15, 44, 89, 0.45);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 2px solid var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.7;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f2c59 0%, #163a73 60%, #1a4a93 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-content .btn-outline {
    border-color: white;
    color: white;
}

.cta-content .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.cta-content .btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 6px 20px -4px rgba(0,0,0,0.25);
}

.cta-content .btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 24px -4px rgba(216, 159, 60, 0.55);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links a:focus-visible,
.footer-links a:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible,
.mobile-menu-btn:focus-visible,
.fab-whatsapp:focus-visible,
.scroll-top:focus-visible {
    outline: 3px solid rgba(240, 187, 90, 0.55);
    outline-offset: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        position: relative;
        bottom: 0;
        left: 0;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-call-btn {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Headers (About, Services, Contact) */
.page-header {
    padding: 120px 0 60px;
    background: var(--surface-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--surface-color);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(216, 159, 60, 0.22);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 0;
}

.logo-mark {
    width: 220px;
    height: 54px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    filter: none;
    transition: transform 0.4s ease;
}

.brand:hover .logo-mark {
    transform: scale(1.02);
}

/* Floating action buttons */
.fab-whatsapp,
.scroll-top {
    position: fixed;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px -6px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.fab-whatsapp {
    bottom: 24px;
    background: #25d366;
    animation: pulseWa 2.4s ease-in-out infinite;
}

.fab-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

@keyframes pulseWa {
    0%, 100% { box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50%      { box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.scroll-top {
    bottom: 88px;
    background: var(--primary-color);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

[data-theme="dark"] .scroll-top {
    background: var(--accent-color);
    color: #0a1426;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* Page header refinement */
.page-header {
    padding: 140px 0 70px;
    background:
        radial-gradient(ellipse at top, rgba(216, 159, 60, 0.08), transparent 60%),
        var(--surface-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--surface-alt);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .quote {
    color: var(--accent-color);
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.testimonial-card .stars {
    color: var(--accent-color);
    margin-bottom: 0.85rem;
    letter-spacing: 2px;
}

.testimonial-card p.body {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-card .author small {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    font-size: 0.85rem;
    font-style: normal;
}

.faq-section {
    background-color: var(--surface-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.faq-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Trust strip */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-item i {
    font-size: 1.75rem;
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 159, 60, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
}

.trust-item h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.trust-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
    background-color: var(--accent-color);
}

/* Misc */
::selection {
    background: var(--accent-color);
    color: #0a1426;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .logo-mark { width: 165px; height: 40px; }
    .hero-text h1 { font-size: 2rem; }
    .fab-whatsapp, .scroll-top { width: 48px; height: 48px; right: 14px; }
    .scroll-top { bottom: 78px; }
}
