:root {
    --primary-color: #0a1d37;
    --accent-color: #fbc02d;
    --text-color: #ffffff;
    --text-dim: #b0bec5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(251, 192, 45, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251, 192, 45, 0.05) 0%, transparent 40%);
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: #0a1d37;
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo-img {
    height: 55px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-phone {
    color: var(--accent-color) !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 5px;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    background: var(--accent-color);
    color: #0a1d37;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-small:hover {
    background: #ffffff;
    color: #0a1d37;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 29, 55, 0.8) 0%, rgba(10, 29, 55, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 850px;
    margin-top: 60px; /* Compensação visual para o menu fixo */
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    color: #fff;
    text-wrap: balance;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251, 192, 45, 0.3);
}

/* Sobre Moderno (Quem Somos) */
#quem-somos {
    background-color: rgba(255, 255, 255, 0.02);
    text-align: center;
    padding: 4rem 0; /* Padding reduzido */
}

.about-modern-content {
    max-width: 750px; /* Mais compacto horizontalmente */
    margin: 0 auto;
}

.about-description {
    margin-bottom: 2rem; /* Espaço reduzido */
}

.about-description p {
    font-size: 1rem; /* Fonte menor */
    color: var(--text-dim);
    line-height: 1.6; /* Altura de linha reduzida */
    margin-bottom: 1rem; /* Espaçamento entre parágrafos reduzido */
    text-wrap: balance;
}

.about-stats-modern {
    display: flex;
    justify-content: center;
    gap: 3rem; /* Gap menor */
    margin-top: 2rem;
    padding-top: 1.5rem; /* Padding reduzido */
    border-top: 1px solid var(--glass-border);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 2.2rem; /* Valor menor */
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-desc {
    font-size: 0.8rem; /* Descrição menor */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* Sections */
section {
    padding: 8rem 0;
}

#unidades, #servicos {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .about-stats-modern {
        flex-direction: column;
        gap: 2.5rem;
    }
    .stat-val { font-size: 2.5rem; }
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.unit-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.unit-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.unit-card:hover::before {
    opacity: 1;
}

.unit-name {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.unit-address {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.btn-maps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-maps:hover {
    text-decoration: underline;
}

/* Services */
.services-section {
    background: rgba(0, 0, 0, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Map Section */
#localizacao {
    padding: 0;
    width: 100%;
    margin-top: 4rem;
}

#mapa {
    height: 500px;
    width: 100%;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    background-color: #fff;
}

/* Leaflet Custom Styles */
.unit-card {
    cursor: default;
}

.unit-card:active {
    transform: scale(0.98);
}

/* Custom Map Marker Styling */
.custom-gas-marker {
    background: none !important;
    border: none !important;
}

.marker-pin {
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    background: var(--accent-color);
    position: absolute;
    transform: rotate(-45deg);
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid #fff;
}

.marker-pin i {
    transform: rotate(45deg);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.1);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .hero { min-height: 60vh; padding: 100px 0 50px; }
    
    .about-container { grid-template-columns: 1fr; gap: 3rem; }
    .about-stats { gap: 1.5rem; justify-content: space-around; flex-wrap: wrap; }
    .stat-item h4 { font-size: 2rem; }
}
