/* Global Styles */
:root {
    /* Palette inspired by the business card: clean monochrome with dark charcoal and soft gray accents */
    --primary-color: #2b2b2b;      /* Charcoal (buttons, accents) */
    --secondary-color: #444444;    /* Dark gray (hover/alt) */
    --dark-color: #1f1f1f;         /* Headlines/logo */
    --light-color: #f5f5f5;        /* Section backgrounds */
    --text-color: #2a2a2a;         /* Body text */
    --gray-color: #9aa0a6;         /* Subtle UI lines */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

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

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

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

section {
    padding: 80px 0;
}

/* Typography tweaks to match card */
h1, h2, .section-title, .logo-text, .logo-sub {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Header Styles */
header {
    background-color: #fff;
    border-top: 4px solid var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
}

.logo h1 {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo-text {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--dark-color);
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-left: 6px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
    border-radius: 4px;
}

.logo-mark i { color: #fff; }

nav .menu {
    display: flex;
}

nav .menu li {
    margin-left: 30px;
}

nav .menu li a {
    font-weight: 600;
    position: relative;
}

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

nav .menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav .menu li a:hover::after {
    width: 100%;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section — restyled to match the business card (light, clean, subtle watermark) */
.hero {
    position: relative;
    background: #ffffff;
    min-height: 78vh;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--dark-color);
    margin-top: 80px;
    overflow: hidden;
}

/* Subtle gray ribbon shape in bottom-right like the card */
.hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -80px;
    width: 520px;
    height: 320px;
    background: radial-gradient(80% 120% at 50% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0.02) 70%, rgba(0,0,0,0) 71%);
    transform: rotate(-8deg);
}

/* Hero background image aligned to services (solar panels), subtle to keep light aesthetic */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/solar-energy-862602_1920.jpg') center/cover no-repeat;
    opacity: 0.6;
    filter: none;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 26px;
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

/* New services list layout to match the business card */
.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.services-list ul {
    list-style: disc inside;
    background: #fff;
    padding: 24px 28px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.services-list li {
    margin: 8px 0;
}

/* Legacy card styles kept for possible future items but not used now */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.values {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.value {
    text-align: center;
}

.value i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Projects Section */
.projects {
    background-color: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.client h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

/* Contact card restyled to match the business card (light card, dark icons) */
.contact-info {
    background-color: #fff;
    color: var(--text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid #ececec;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.info-item i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: var(--dark-color);
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.social-media a {
    color: var(--dark-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    position: relative;
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    overflow: hidden;
}

/* Curved ribbon echoing the card's bottom-right shape */
footer::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 520px;
    height: 320px;
    background: radial-gradient(80% 120% at 50% 50%, rgba(255,255,255,0.18), rgba(255,255,255,0.05) 70%, rgba(255,255,255,0) 71%);
    transform: rotate(-8deg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h4,
.footer-services h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .values {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    nav .menu {
        position: absolute;
        top: 80px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    nav .menu li {
        margin: 15px 0;
    }
    
    #menu-toggle:checked ~ .menu {
        transform: translateY(0);
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .service-card,
    .project-card,
    .testimonial {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Responsive tweak for services list to stack on small screens */
@media (max-width: 768px) {
    .services-list { grid-template-columns: 1fr; }
}
