/* EMPRESS GREEN POWER - CLEAN ECO-GREEN THEME */
:root {
    /* Updated to match the exact vibrant, slightly warmer green from the reference design */
    --brand-green: #43b049; 
    /* Deep navy/charcoal used for footers, text grounding, and heavy structure */
    --brand-dark: #121e25;  
    --bg-white: #ffffff;
    /* Soft light gray/off-white for contrasting sectional background blocks */
    --bg-light: #f5f7f6;    
    --text-main: #2b353a;
    --text-secondary: #6e7a82;
    /* Removed blue accent to keep the palette strictly matching the image's pure green/dark navy theme */
    --accent-green-light: #eef8ef; 
    --header-height: 90px;
    --shadow-soft: 0 15px 35px rgba(18, 30, 37, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Switched to 'Inter' or generic clean system sans-serif for that sharp, ultra-modern tech aesthetic */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
    /* Tightened font-weight to 800 to mirror the thick, impactful headings in the layout */
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-white);
    z-index: 1000;
    border-bottom: 1px solid #f0f2f1;
    box-shadow: var(--shadow-soft);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--brand-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    /* Shifted weight slightly for sleek elegance */
    font-weight: 500; 
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--brand-green);
}

/* BUTTONS */
.btn {
    padding: 14px 36px;
    /* Clean, rectangular profile with highly subtle 4px rounding directly matched from the reference layout */
    border-radius: 4px; 
    font-weight: 700;
    text-transform: none; /* Removed harsh full uppercase for a friendlier modern tech vibe */
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--brand-green);
    color: white;
}

.btn-primary:hover {
    background: #389a3e;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(67, 176, 73, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
}

.btn-outline:hover {
    background: var(--brand-green);
    color: white;
}

/* PAGE LAYOUT */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--brand-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 5rem;
    font-size: 1.05rem;
}

/* CARDS (Matching the Solar Energy Services blocks) */
.card, .glass-card {
    background: var(--bg-white);
    border: 1px solid #f0f2f1;
    border-radius: 0px; /* Sharp corners on outer blocks based on theme card styling */
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover, .glass-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(18, 30, 37, 0.06);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-info {
    padding: 2.5rem;
}

.product-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.property-list {
    list-style: none;
    margin: 1.5rem 0;
}

.property-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f7f6;
    font-size: 0.95rem;
}

.property-list li span {
    color: var(--text-secondary);
}

/* FOOTER (Deep Charcoal Grounded Theme) */
footer {
    background: var(--brand-dark);
    color: #cbd5e1;
    padding: 100px 0 40px;
}

footer h3 {
    color: white;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease;
}

footer ul li a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: #64748b;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
}

.stat-box .value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-green);
    display: block;
    letter-spacing: -0.03em;
}

.stat-box .label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

/* MISC */
.badge {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-success { 
    background: var(--accent-green-light); 
    color: var(--brand-green); 
}
.badge-info { 
    background: #eef4f8; 
    color: var(--brand-dark); 
}

.neon-text { color: var(--brand-green); }

/* FORMS */
input, select, textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: inherit;
    color: var(--brand-dark);
    background-color: var(--bg-white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(67, 176, 73, 0.15);
}

/* TABLES */
.table-container {
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-light);
    padding: 1.5rem;
    text-align: left;
    color: var(--brand-dark);
    font-weight: 700;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .section-title { font-size: 2.25rem; }
}

/* ADMIN LAYOUT */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--brand-dark);
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px 0;
}

.sidebar-nav a {
    display: block;
    padding: 16px 30px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border-left: 4px solid var(--brand-green);
}

.admin-content {
    flex: 1;
    padding: 50px;
    background: var(--bg-light);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 30, 37, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}
/* FOOTER LAYOUT extensions */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-col .logo-text {
    color: #ffffff;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

/* Removes default bullet points and underlines from your raw list */
footer ul {
    padding: 0;
    margin: 0;
}

footer ul li a {
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}