/* Mexel Energy Sustain - Company Profile Styles */

:root {
    --primary: #10B981;
    /* Emerald Green */
    --primary-dark: #059669;
    --primary-light: #F0FDF4;
    --text-main: #0F172A;
    /* Slate 900 */
    --text-body: #334155;
    /* Slate 700 */
    --bg-light: #F1F5F9;
    /* Slate 100 */
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 0.5rem;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

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

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

.text-emerald {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

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

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

.bg-dark {
    background-color: var(--text-main);
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.large-text {
    font-size: 1.25rem;
    font-weight: 500;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-body);
    opacity: 0.8;
}

.section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

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

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

/* Navbar */
.navbar {
    background-color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 1.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.nav-links a:hover {
    color: var(--primary);
}

.back-link {
    color: #94a3b8 !important;
    font-size: 0.8125rem !important;
}

.download-btn {
    margin-left: 1.75rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/power-station-clean.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary);
}

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

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card .number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.white-check li::before {
    color: var(--white);
    content: '✓';
}

/* Tagline Box */
.tagline-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-style: italic;
}

.highlight-box {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    font-weight: 500;
    text-align: center;
}

/* Image Styles */
.rounded-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Stats */
.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Economics Box */
.economics-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--white);
}

.economics-box h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.stat-row:last-child {
    border-bottom: none;
}

/* Sector Grid (Revised for 4-sector focused approach) */
.sector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sector-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    position: relative;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sector-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.sector-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sector-label {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.sector-metric {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Legacy industry grid (kept for compatibility) */
.industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.industry-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: #94a3b8;
    padding: 2rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        flex-direction: column;
    }

    .timeline::before {
        left: 24px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
    }

    .timeline-step {
        display: flex;
        text-align: left;
        margin-bottom: 2rem;
        padding-left: 0;
    }

    .step-number {
        margin: 0 1.5rem 0 0;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .sector-grid {
        grid-template-columns: 1fr;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .nav-links a {
        display: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .download-btn {
        margin-left: 0;
    }

    .hero-section {
        padding: 5rem 0;
    }

    .sector-number {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Print Styles for PDF Export */
@media print {
    /* Remove interactive elements */
    .navbar,
    .cta-button,
    .download-btn,
    .back-link,
    script {
        display: none !important;
    }

    /* Reset page margins */
    @page {
        margin: 1cm;
        size: A4;
    }

    body {
        background: white;
        font-size: 11pt;
        line-height: 1.4;
    }

    /* Remove shadows and transitions for clean print */
    .card,
    .sector-card,
    .stat-box,
    .rounded-img {
        box-shadow: none !important;
        border: 1px solid #e2e8f0;
    }

    /* Prevent page breaks inside cards */
    .card,
    .sector-card,
    .timeline-step,
    .cta-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Reduce section padding for print */
    .section {
        padding: 2rem 0;
    }

    .hero-section {
        padding: 3rem 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        page-break-after: always;
    }

    /* Ensure colors print correctly */
    .bg-emerald,
    .highlight-box,
    .sector-number,
    .step-number,
    .card .number {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* Force page breaks between major sections */
    #problem,
    #technology,
    #results,
    #industries {
        page-break-before: always;
    }

    /* Footer styling for print */
    footer {
        page-break-before: always;
        padding: 1rem 0;
        border-top: 2px solid var(--primary);
        margin-top: 2rem;
    }

    /* Ensure grids print correctly */
    .grid-2,
    .grid-3,
    .grid-4,
    .sector-grid {
        display: grid;
        gap: 1rem;
    }

    /* Remove animations */
    * {
        animation: none !important;
        transition: none !important;
    }

    /* Ensure links show URLs in print */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]:after {
        content: "";
    }
}