/* =========================================
   VARIABLES & GLOBALS
========================================= */
:root {
    --navy-blue: #1A237E;
    --navy-light: #283593;
    --slate-grey: #455A64;
    --slate-light: #CFD8DC;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --accent: #E8EAF6; /* very light blue */
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --font-primary: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--slate-grey);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--navy-blue);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--navy-blue);
    transition: var(--transition);
}

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

.text-center { text-align: center; }
.w-100 { width: 100%; }
.bg-navy { background-color: var(--navy-blue); color: var(--white); }
.bg-navy h2 { color: var(--white); }

/* =========================================
   BUTTONS
========================================= */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--navy-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--accent);
}

.btn-whatsapp {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    background-color: #25D366;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

/* =========================================
   NAVIGATION
========================================= */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.logo span {
    font-weight: 300;
    color: var(--slate-grey);
}

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

.main-menu a {
    font-weight: 600;
    font-size: 1rem;
}

.main-menu a:hover:not(.btn-primary-small) {
    color: var(--navy-light);
}

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

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-solar.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(69, 90, 100, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--slate-grey);
    margin-bottom: 2rem;
}

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

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   STATS BAR
========================================= */
.stats-bar {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--slate-light);
}

.stat-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-light);
    color: var(--slate-grey);
}

/* =========================================
   HIGHLIGHT: SOLAR PARKS
========================================= */
.highlight-service {
    padding: 6rem 0;
    background-color: var(--accent);
}

.feature-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-split.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background-color: var(--navy-blue);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.feature-split h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-split ul {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-split ul li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.image-content {
    flex: 1;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--slate-grey), var(--slate-light));
}

.bg-white { background-color: var(--white); }

/* =========================================
   SERVICES GRID
========================================= */
.services {
    padding: 6rem 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

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

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

.service-card {
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.9);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

/* =========================================
   REFERENCES
========================================= */
.references {
    padding: 4rem 0;
}

.references h2 {
    margin-bottom: 1rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0.8;
}

.ref-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 8px;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at top right, var(--accent) 0%, var(--bg-light) 60%);
}

.form-wrapper {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.form-container {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* =========================================
   FOOTER   
========================================= */
.footer {
    padding: 2rem 0;
}

.footer a {
    color: var(--slate-light);
    text-decoration: underline;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

/* =========================================
   MODALS
========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--slate-grey);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--navy-blue);
}

.modal-body {
    margin-top: 1.5rem;
}

.modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 900px) {
    .feature-split, .form-wrapper {
        flex-direction: column;
    }
    
    .feature-split.reverse {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .highlight-service, .services, .contact, .references {
        padding: 3rem 0;
    }
    
    .feature-split {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid var(--slate-light);
    }
    
    .main-menu.active {
        display: block;
        padding: 2rem;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-primary-small {
        display: inline-block;
        margin-top: 1rem;
    }
}
