/* Custom properties */
:root {
    --primary: #0a192f; /* Dark navy */
    --secondary: #112240; /* Charcoal / lighter navy */
    --accent: #007bff; /* Electric blue */
    --accent-hover: #0056b3;
    --green: #28a745; /* Energy efficiency / insulation */
    --text-main: #333333;
    --text-light: #8892b0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 70px; /* Space for fixed header */
}

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

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

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

/* Typography Classes */
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}
.text-left .section-title::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.text-left .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

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

section {
    padding: 5rem 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 123, 255, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.click-to-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.click-to-call:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
    color: white;
}

/* Header */
header {
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.nav-menu .btn-primary {
    color: white;
    padding: 0.6rem 1.2rem;
}
.nav-menu .btn-primary:hover {
    color: white;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    color: var(--white);
    align-items: center;
    font-weight: 600;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 1rem;
}

.lang-switch a {
    color: var(--text-light);
    transition: var(--transition);
}

.lang-switch a:hover {
    color: var(--white);
}

.lang-switch span.active {
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(17, 34, 64, 0.95)), url('../img/hero.png') center/cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Abstract pattern background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,123,255,0.05) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.badge svg {
    stroke: var(--accent);
}

/* Cards & Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid transparent;
    height: 100%;
}

a.card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--accent);
}

.card-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    color: var(--accent);
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.card.green-hover:hover {
    border-top-color: var(--green);
}
.card.green-hover .card-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--green);
}

/* Flex layout for image + text sections */
.flex-split {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}
.flex-split > div {
    flex: 1;
}

/* Process */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.step:hover {
    transform: translateX(5px);
    border-left-color: var(--accent);
}

.step-num {
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step h4 {
    margin-bottom: 0.25rem;
    margin-top: 0.2rem;
}
.step p {
    margin-bottom: 0;
    color: #555;
}

/* Projects */
.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: var(--white);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.project-card:hover .learn-more {
    transform: translateX(5px);
}

a.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    background-color: var(--white);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.honeypot {
    display: none !important;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-services {
    margin: 1.5rem 0;
    color: var(--white);
    font-weight: 500;
}

.footer-contact {
    margin-bottom: 2rem;
}
.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    font-size: 0.9rem;
}

/* =========================================
   Service Inner Pages
   ========================================= */
.service-header {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95));
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.breadcrumbs {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.service-content {
    padding: 5rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-text h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.service-text li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.service-text li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Utility to clear floats if needed */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex-split {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
    
    .grid-3, .grid-2, .service-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-in-out;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        clip-path: circle(150% at top right);
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }
    .hamburger svg {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
