/* CSS Variables for consistent theming */
:root {
    /* Luxury Deep Navy (Primary) */
    --primary-blue: #081526;

    /* Secondary Premium Navy */
    --primary-blue-dark: #0A1A2F;

    /* Backwards-compatible primary */
    --primary-dark: var(--primary-blue-dark);

    /* Metallic Gold Accent (High-End Look) */
    --accent-orange: #d23b20;

    /* Highlight Gold for subtle glow/shines */
    --accent-gold: #e2ca2f;
    --accent-gold-light: var(--accent-gold);

    /* Deep Shadow for 3D depth */
    --primary-shadow: #000814;

    /* Optional: Text Colors */
    --text-light: #F8F9FA;
    --text-muted: #C7C9CC;

    /* Map legacy names to new text colors */
    --neutral-white: var(--text-light);
    --neutral-gray: var(--text-muted);

    /* Optional: Background tones */
    --bg-dark: #050B14;
    --bg-card: #0D1826;

    /* Typography (kept) */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (kept) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Border Radius (kept) */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows (kept; --primary-shadow available for new uses) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);

    /* Transitions (kept) */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--neutral-white);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-md);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.bg-light {
    background-color: var(--neutral-light);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--neutral-white);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--neutral-white);
}

.btn-primary:hover {
    background-color: #C1121F;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-white);
    border: 2px solid var(--neutral-white);
}

.btn-secondary:hover {
    background-color: var(--neutral-white);
    color: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-md);
    background: var(--accent-orange);
    color: white;
    padding: var(--space-sm);
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--neutral-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo strong {
    color: var(--accent-orange);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--neutral-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--neutral-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--neutral-white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.company-name {
    margin-bottom: var(--space-lg);
    text-align: left;
}

.legal-entity {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neutral-gray);
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.company-name h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--neutral-white);
    margin-bottom: 0;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--accent-gold);
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-gray);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-orange);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-orange);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}


.image-logo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image img {
    width: 100%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--neutral-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

/* Solar Division */
.solar-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature {
    text-align: center;
    padding: var(--space-lg);
}

.feature h4 {
    color: var(--accent-orange);
    margin-bottom: var(--space-sm);
}

.structure-tags {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-dark);
    color: var(--neutral-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-lg);
}

.project-location {
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.project-specs {
    list-style: none;
    margin-top: var(--space-md);
}

.project-specs li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--neutral-light);
}

/* Capabilities Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.product-item {
    background: var(--neutral-light);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}

.projects-table {
    background: var(--neutral-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    border-bottom: 1px solid var(--neutral-light);
}

.table-row:last-child {
    border-bottom: none;
}

.table-header {
    background: var(--primary-dark);
    color: var(--neutral-white);
    font-weight: 600;
}

.table-cell {
    padding: var(--space-md);
    display: flex;
    align-items: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-item {
    margin-bottom: var(--space-lg);
}

.contact-item h4 {
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
}

.locations {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-sm);
    border: 1px solid var(--neutral-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--neutral-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.footer-logo strong {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--neutral-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-gray);
    padding-top: var(--space-md);
    text-align: center;
    color: var(--neutral-gray);
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--neutral-gray);
    border-top: 5px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--neutral-white);
        position: relative;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--neutral-white);
        left: 0;
        transition: var(--transition-normal);
    }
    
    .hamburger::before {
        top: -8px;
    }
    
    .hamburger::after {
        bottom: -8px;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section-padding {
        padding: var(--space-xl) 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* CONSOLIDATED: Hero & Logo styles (replace duplicate hero-content, hero-tagline, hero-description, hero-stats, stat*, hero-actions, logo a/strong) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--neutral-white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.company-name {
    margin-bottom: var(--space-lg);
    text-align: left;
}

.legal-entity {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neutral-gray);
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.company-name h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--neutral-white);
    margin-bottom: 0;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--accent-gold);
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-gray);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Navigation logo (consolidated) */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--neutral-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo strong {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Keep responsive overrides in media queries (no change) */