/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Playfair Display';
    src: url('PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    --bg-primary: #f8fafc;
    /* Changed to Light Slate/White for body */
    --bg-dark: #0f172a;
    /* Preserved for Hero/Footer */
    --text-primary: #1e293b;
    /* Dark text for light bg */
    --text-on-dark: #ffffff;
    --accent-gold: #bfa15f;
    --text-secondary: #64748b;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

.italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.text-gold {
    color: var(--accent-gold);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #e5e7eb;
    border-bottom: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    /* Full width */
    max-width: none;
    /* No constraint */
    margin: 0;
    padding: 0 60px;
    /* Consistent padding */
}

.logo img {
    height: 38px;
    /* Slightly smaller for elegance */
    filter: none;
    margin-right: 0;
}

/* Nav links pushed to the right, grouped near CTA */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
    margin-left: auto;
    /* Push links to the right */
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    /* Thinner (was 700/Bold) */
    letter-spacing: 2px;
    /* Increased letter spacing for "premium" look */
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* CTA Button stays at the end */
.cta-button {
    background-color: transparent;
    color: #bfa15f;
    border: 1px solid #bfa15f;
    padding: 12px 36px;
    /* Wider button */
    border-radius: 0px;
    /* Perfectly square/sharp edges */
    text-decoration: none;
    font-weight: 500;
    /* Thinner */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 0;
    /* No explicit margin needed, gap handled by nav-links margin-right */
    display: inline-block;
}

.cta-button:hover {
    background-color: #bfa15f;
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 120px;
    /* Balanced padding as per reference */
    background-color: var(--bg-dark);
    /* Dark hero */
    color: var(--text-on-dark);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #334155;
    /* Placeholder */
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.5s; */
    /* Optional generic effect */
}

.badge-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.line-decor {
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.badge-text {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    /* Thinner than before */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    color: #475569;
    /* Slate 600 as requested */
}

.hero p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Base button style */
.btn-gold,
.btn-white {
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    /* Thin/Elegant */
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    background-color: transparent;
    /* Transparent background */
}

.btn-gold {
    border: 1px solid var(--accent-gold);
    color: #fff;
    /* White text for contrast on dark bg, or Gold? Reference usually has gold text or white text with gold border. */
    color: var(--accent-gold);
    /* Matching the outline typically */
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: #0f172a;
    /* Dark text on hover */
}

.btn-white {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-white:hover {
    border-color: #fff;
    background-color: #fff;
    color: #0f172a;
}

/* Pillars Section */
.pillars {
    padding: 120px 0;
    background-color: #ffffff;
    /* Explicit white as per screenshot mockup usually */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Smaller min-width to ensure 3 columns fit */
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border: none;
    padding: 50px 40px;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    /* Reduced space */
    max-width: 800px;
}

.section-header h2 {
    font-size: 3rem;
    /* Slightly smaller title */
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.line-decor-long {
    margin-top: 40px;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    /* Subtle separator line */
}

/* 3D Flip Cards */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 340px;
    cursor: pointer;
    /* Reset base .card styles to avoid double-boxing */
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smoother, faster 'natural' flip */
    transform-style: preserve-3d;
}

.flip-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 30px 30px 24px 30px;
    /* Adjusted padding */
    border-radius: 12px;
    /* Standard rounded */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align top */
}

.card-front {
    background-color: #ffffff;
    border: 1px solid transparent;
    /* No visible border "inner box" */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    /* Clean shadow instead */
    transition: box-shadow 0.3s, transform 0.3s;
}

.flip-card:hover .card-front {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    /* Lift effect */
}

.card-icon {
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.card-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 1.2px;
}

.card-front h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-front p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-text {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: auto;
    /* Pushes button to bottom */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Back Styling */
.card-back {
    background-color: #ffffff;
    color: var(--text-primary);
    transform: rotateY(180deg);
    /* justify-content: center; */
    border: 1px solid var(--accent-gold);
    /* Gold border only on back to signify active state */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-back h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    /* Changed from Playfair */
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Key-Value List Styling */
.card-details-list {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.card-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    /* Subtle separator */
    font-size: 0.9rem;
}

.card-details-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
    text-align: right;
}

/* Services Split Section */
/* ... existing services styles ... */

/* Investment Process (Pasos) Section */
.steps-section {
    background-color: var(--bg-dark);
    /* Dark Blue Background */
    color: #ffffff;
    padding: 120px 0;
    position: relative;
}

.steps-section .section-header h2 {
    color: #ffffff;
}

.gold-line {
    background-color: var(--accent-gold);
    width: 100%;
    margin-top: 40px;
}

.steps-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
    gap: 20px;
}

/* Horizontal Line Connector */
.timeline-line {
    position: absolute;
    top: 20px;
    /* Aligned with marker center roughly */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step-item {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-right: 20px;
}

.step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    /* Masks the line behind it */
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 30px;
}

.step-item h4 {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    min-height: 40px;
    /* Align text baselines */
}

.step-item p {
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.9rem;
    line-height: 1.7;
}

.step-item p strong {
    color: #ffffff;
    font-weight: 500;
}

/* Contract List (PPA Section) */
.contract-list {
    border-top: 1px solid #e2e8f0;
}

.contract-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0;
    /* Increased padding for elegance */
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top for multi-line text */
    gap: 40px;
}

.contract-header h3 {
    font-size: 1.1rem;
    /* Larger item title */
    color: #0f172a;
    /* Darker, stronger */
    font-weight: 700;
    width: 45%;
    margin: 0;
    line-height: 1.3;
}

.contract-content {
    flex: 1;
}

.contract-content p {
    font-size: 0.95rem;
    /* Readable description */
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contract-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contract-header h3 {
        width: 100%;
    }
}

/* Responsive Steps */
@media (max-width: 768px) {
    .steps-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-line {
        width: 1px;
        height: 100%;
        left: 20px;
        /* Vertical line alignment */
        top: 0;
    }

    .step-item {
        padding-left: 60px;
        padding-right: 0;
    }

    .step-marker {
        position: absolute;
        left: 0;
        top: 0;
    }
}

.split-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--bg-primary);
    /* Light */
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    height: 400px;
    background-color: var(--bg-card);
    /* Placeholder for image */
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-gold);
    transform: translate(15px, 15px);
    z-index: -1;
}

.list-check {
    list-style: none;
    margin-top: 24px;
}

.list-check li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.list-check li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* FAQ */
.faq {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    /* Light border */
    margin-bottom: 15px;
}

.accordion-button {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s;
}

.accordion-button.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 24px;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    /* Dark background */
}

.section-header.centered {
    text-align: center;
    margin-bottom: 60px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: #162032;
    /* Slightly lighter than main dark bg */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s;
}

.faq-item:hover {
    background-color: #1e293b;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    /* Poppins Font */
    transition: color 0.3s;
}

.faq-question .chevron {
    transition: transform 0.3s;
    color: var(--accent-gold);
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
    background-color: #162032;
    /* Same as item */
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    /* Collapse padding when closed */
}

.faq-answer p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    /* Poppins Font */
}

/* Footer */
footer {
    padding: 80px 0;
    background-color: var(--bg-dark);
    /* Keep Dark */
    color: #94a3b8;
    border-top: none;
    text-align: left;
    /* Changed from center to left */
    font-size: 0.9rem;
}

.footer {
    background-color: #ffffff;
    /* White background */
    padding: 80px 0 30px;
    color: var(--text-primary);
    border-top: 1px solid #f1f5f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 32px;
    margin-bottom: 20px;
    filter: none !important;
    /* Keep original black logo */
}

.footer-desc {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #0f172a;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-mail {
    text-decoration: none;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    nav {
        justify-content: space-between;
        /* Push logo and button apart */
        padding: 0 24px;
        /* Match container padding */
        /* Ensure button is far right */
    }

    .container {
        padding: 0 24px;
        /* Reduced from 20px or 40px for better edge spacing on mobile */
    }

    .hero .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 30px;
        /* Reduced gap */
    }

    .hero {
        padding: 100px 0 60px;
        /* Adjusted padding */
        min-height: auto;
    }

    .hero-content {
        margin-top: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* More manageable size */
        line-height: 1.2;
    }

    .hero p {
        margin: 0 auto 24px;
        font-size: 1rem;
        line-height: 1.6;
        /* Better readability */
        padding: 0 10px;
        /* Prevent text hitting edges too hard */
    }

    .badge-line {
        justify-content: center;
        margin-bottom: 20px;
    }

    .badge-text {
        font-size: 0.7rem;
        /* Slightly smaller badge */
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .cta-group .btn-gold,
    .cta-group .btn-white {
        width: 100%;
        display: block;
        text-align: center;
        padding: 16px 32px;
        /* Easier to tap */
    }

    .hero-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        /* Better landscape proportion for mobile */
        max-height: 300px;
    }

    .split-section {
        flex-direction: column;
        padding: 60px 0;
        gap: 40px;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .split-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        /* Widescreen look for split images */
        max-height: 250px;
    }

    .split-content h2 {
        font-size: 2rem;
        /* Consistent heading size */
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        background-color: #ffffff;
        height: calc(100vh - 90px);
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: right 0.3s ease-in-out;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        margin-right: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        /* Removing bottom margin on LI to use padding on A instead */
    }

    .nav-links a {
        display: block;
        padding: 20px 0;
        /* Big tap targets */
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-links .cta-button {
        margin-top: 20px;
        margin-left: 0;
        width: 80%;
        text-align: center;
        display: inline-block;
    }

    .mobile-menu-btn {
        display: block;
        padding: 10px;
        /* Easier to tap */
        margin-left: auto;
        /* Explicitly push to right if needed, though justify: space-between on nav helps too */
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        text-align: center;
    }

    .brand-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 20px;
        /* Bottom spacing */
    }

    /* Sections Padding */
    .pillars,
    .steps-section,
    .faq-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Cards */
    .card {
        padding: 30px 24px;
    }

    .flip-card {
        height: 400px;
        /* Increased height for longer content */
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}