/* ===== GEOMASTER SOLUTIONS - LAYOUT (Dark Tech) ===== */

/* ===== LOADER ===== */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 50px; height: 50px;
    border: 3px solid var(--border-accent);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    box-shadow: var(--accent-glow);
}

.loaded .loader-container { opacity: 0; visibility: hidden; }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: var(--space-4) 0;
}

#header .container { display: flex; align-items: center; justify-content: space-between; }

#header:not(.scrolled) { background-color: transparent; }

#header.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-accent);
    padding: var(--space-2) 0;
}

/* Logo */
.logo a { display: flex; align-items: center; }
.logo img { height: 45px; transition: height var(--transition-fast); }
#header.scrolled .logo img { height: 38px; }

/* Nav */
.nav-menu { display: flex; align-items: center; gap: var(--space-1); }
.nav-menu li { position: relative; }

.nav-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Nav CTA */
.nav-menu .nav-cta a {
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.5px;
}

.nav-menu .nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--cta-glow);
    color: var(--bg-primary);
    text-shadow: none;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(20px);
}

.nav-menu li:hover > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown a {
    color: var(--text-primary) !important;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    display: flex; align-items: center; gap: var(--space-3);
    border-radius: 0;
}

.nav-dropdown a:hover {
    background-color: var(--accent-light);
    color: var(--accent) !important;
    text-shadow: none;
}

.nav-dropdown a i { width: 20px; color: var(--accent); }

.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: var(--space-1);
    font-size: 0.7em;
    transition: transform var(--transition-fast);
}

.has-dropdown:hover > a::after { transform: rotate(180deg); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-2);
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px; height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    transition: all var(--transition-fast);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

body.menu-open { overflow: hidden; }

/* ===== FOOTER ===== */
.footer {
    background-color: #050510;
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-16) 0 0;
    border-top: 1px solid var(--border-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand img { height: 40px; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-6); }

.footer-social { display: flex; gap: var(--space-3); }

.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
}

.footer-col h4 {
    color: var(--text-heading);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    display: flex; align-items: center; gap: var(--space-2);
    transition: all var(--transition-fast);
}

.footer-links a:hover { color: var(--accent); transform: translateX(5px); text-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
.footer-links a i { font-size: 0.6em; color: var(--accent); }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-contact-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.footer-contact-item i { color: var(--accent); margin-top: 3px; width: 16px; text-align: center; }
.footer-contact-item span, .footer-contact-item a { color: var(--text-muted); font-size: var(--text-sm); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom { padding: var(--space-6) 0; text-align: center; }
.footer-bottom p { color: var(--text-subtle); font-size: var(--text-sm); }

/* ===== WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 60px; height: 60px;
    border-radius: var(--radius-full);
    background-color: #25d366;
    color: #fff;
    font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover { color: #fff; transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

/* ===== PAGE HERO ===== */
.page-hero {
    padding-top: calc(var(--space-32) + var(--space-8));
    padding-bottom: var(--space-16);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: #fff;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-hero h1 { color: #fff; font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.page-hero p { color: var(--text-muted); font-size: var(--text-lg); max-width: 600px; margin: 0 auto; }
