/* Variables and Base Styles */
:root {
    --primary-color: #0a6847;
    --primary-light: #16a34a;
    --secondary-color: #0ea5e9;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    line-height: 1.2;
}

.text-white { color: var(--white) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.logo-bold {
    color: var(--primary-light);
    font-weight: 900;
}

.header.scrolled .logo-text {
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.header:not(.scrolled) .logo-img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
}

.header.scrolled .logo-img {
    height: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
    background-color: var(--dark-bg);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-light);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.text-left .section-title::after {
    left: 0;
    transform: none;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 104, 71, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(10, 104, 71, 0.1);
    border-color: rgba(22, 163, 74, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Importance */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.graph-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--text-muted);
    margin-bottom: 15px;
}

.graph-bar {
    width: 20%;
    background: linear-gradient(to top, var(--primary-color), var(--primary-light));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s ease;
}

.graph-bar span {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.graph-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 50px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-num {
    width: 24px;
    height: 24px;
    background-color: rgba(10, 104, 71, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.graph-caption {
    font-weight: 600;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Efficiency */
.energy-scale {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.energy-bar {
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
    border-radius: 0 4px 4px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.energy-bar::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.indicator {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.indicator.current {
    background: rgba(0,0,0,0.3);
}

.bar-a { background: #008850; width: 40%; border-left-color: #008850; }
.bar-a::after { border-left-color: #008850; }
.bar-b { background: #00a54e; width: 50%; }
.bar-b::after { border-left-color: #00a54e; }
.bar-c { background: #bccf00; width: 60%; }
.bar-c::after { border-left-color: #bccf00; }
.bar-d { background: #fff100; width: 70%; color: #333; }
.bar-d::after { border-left-color: #fff100; }
.bar-e { background: #fdb913; width: 80%; }
.bar-e::after { border-left-color: #fdb913; }
.bar-f { background: #ee7204; width: 90%; }
.bar-f::after { border-left-color: #ee7204; }
.bar-g { background: #e3001b; width: 100%; }
.bar-g::after { border-left-color: #e3001b; }

.check-list {
    list-style: none;
    margin-top: 25px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-light);
    font-weight: bold;
    width: 20px;
    height: 20px;
    background: rgba(22, 163, 74, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Methodology */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(10, 104, 71, 0.08);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: -1;
}

.step-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Bioclimatic Design */
.b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.b-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.b-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.b-card-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.viability-box {
    border-left: 4px solid var(--primary-light);
}

/* Contact Section */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.contact-info {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.c-icon {
    font-size: 1.5rem;
    min-width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.contact-item h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

.d-none { display: none !important; }

.form-alert {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.form-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background: #0b0f19;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 15px;
    transition: var(--transition);
}

.footer-logo .logo-img {
    height: 80px;
    object-fit: contain;
}

.footer-logo:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 3rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .hero-actions { flex-direction: column; }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-link {
        color: var(--dark-bg);
        font-size: 1.2rem;
    }
    
    .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--dark-bg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--dark-bg); }
    
    .reverse-mobile { flex-direction: column-reverse; display: flex; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
