/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;700&family=Open+Sans:wght@400;600&display=swap');

/* CSS Variables */
:root {
    --blue-primary: #1B3F7A;
    --blue-dark: #0f2550;
    --blue-light: #2d5fa8;
    --green-accent: #6BBF4E;
    --green-dark: #4a9e30;
    --white: #ffffff;
    --gray-light: #f4f7fc;
    --gray-mid: #e8edf5;
    --text-dark: #1a1a2e;
    --text-gray: #5a6a7a;
    --shadow: 0 10px 30px rgba(27, 63, 122, 0.08);
    --shadow-hover: 0 20px 40px rgba(27, 63, 122, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --container-width: 1200px;
    --header-height: 110px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--blue-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-blue {
    color: var(--blue-primary);
}

.text-green {
    color: var(--green-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--green-accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--blue-primary);
}

.btn-secondary {
    background-color: var(--blue-primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--blue-dark);
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    position: relative;
    display: inline-block;
    z-index: 1001;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 20px;
    right: 20px;
    height: 116px;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: -1;
    transition: var(--transition);
}

.logo:hover::before {
    box-shadow: 0 12px 30px rgba(107, 191, 78, 0.25);
}

.logo img {
    height: 156px;
    width: auto;
    position: relative;
    top: 22px;
    padding: 0;
    transition: var(--transition);
}

.site-nav>ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav li {
    position: relative;
    list-style: none;
}

.site-nav a {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--blue-dark);
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.site-nav li:hover .caret {
    transform: rotate(180deg);
}

/* Dropdown Menu - Explicitly Vertical */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid var(--green-accent);
    display: flex;
    flex-direction: column;
    /* Force vertical */
    gap: 0;
}

.site-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    display: block;
    width: 100%;
    padding: 0 15px;
}

.dropdown a {
    padding: 12px 15px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--gray-mid);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown a::after {
    display: none !important;
}

.dropdown a:hover {
    background: var(--gray-light);
    color: var(--blue-primary);
    padding-left: 20px;
}

.site-nav a:not(.cta-btn):not(.dropdown-link)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-accent);
    transition: var(--transition);
}

.site-nav a:not(.cta-btn):not(.dropdown-link):hover::after,
.site-nav a.active:not(.dropdown-link)::after {
    width: 100%;
}

.site-nav .cta-btn {
    background-color: var(--green-accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
}

.site-nav .cta-btn:hover {
    background-color: var(--green-dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Push content to bottom */
    color: var(--white);
    margin-top: var(--header-height);
    padding-bottom: 80px;
    /* Space from bottom */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 10px;
    max-width: 600px;
    /* Constrain width to not cover full image */
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
}

.hero-title {
    font-size: 2.5rem;
    /* Reduced font size */
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--white);
    background-color: rgba(27, 63, 122, 0.7);
    /* Lighter Blue */
    padding: 8px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    text-shadow: none;
    animation: fadeInUp 1s forwards 0.5s;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 700;
    display: inline;
}

.hero-subtitle {
    font-size: 1.1rem;
    /* Reduced font size */
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 600px;
    color: var(--white);
    background-color: rgba(107, 191, 78, 0.7);
    /* Lighter Green */
    padding: 8px 15px;
    border-radius: var(--radius);
    text-shadow: none;
    animation: fadeInUp 1s forwards 0.7s;
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    animation: fadeInUp 1s forwards 0.9s;
    opacity: 0;
    transform: translateY(30px);
    justify-content: flex-start;
}

/* Hero Centered Layout */
.hero-content-center {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title-center {
    display: inline-block;
    border-radius: var(--radius);
    text-align: center;
    max-width: 700px;
}

.hero-buttons-center {
    justify-content: center;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.control-dot.active {
    background: var(--green-accent);
    transform: scale(1.2);
}

.stat-counters {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--green-accent);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Standard Sections */
.section {
    padding: 80px 0;
}

.section-bg-gray {
    background-color: var(--gray-light);
}

.section-bg-blue {
    background-color: var(--blue-primary);
    color: var(--white);
}

.section-bg-blue h2 {
    color: var(--white);
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-highlights {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.highlight-item::before {
    content: '✓';
    color: var(--green-accent);
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--green-accent);
}

.service-icon {
    font-size: 40px;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.service-link {
    margin-top: auto;
    color: var(--green-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Features / Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-mid);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-box-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.feature-box h3 {
    color: var(--green-accent);
    margin-bottom: 15px;
}

/* Featured Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    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: 20px;
}

.project-badge {
    display: inline-block;
    background: var(--gray-light);
    color: var(--blue-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Clients Scroller */
.clients-scroller {
    overflow: hidden;
    padding: 20px 0;
}

.clients-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.client-logo {
    height: 60px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(1);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Certifications */
.cert-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.cert-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 200px;
}

.cert-item img {
    height: 80px;
    margin: 0 auto 10px;
}

/* Directors Section */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.director-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.director-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--green-accent);
}

.director-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.director-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.director-card:hover .director-img-wrapper img {
    transform: scale(1.05);
}

.director-img-center {
    object-position: center center !important;
}

.director-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 37, 80, 0.85) 0%, transparent 100%);
    padding: 40px 20px 15px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.director-badge {
    background: var(--green-accent);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.director-info {
    padding: 25px;
}

.director-info h3 {
    font-size: 1.35rem;
    color: var(--blue-primary);
    margin-bottom: 5px;
}

.director-designation {
    color: var(--green-accent);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.director-bio {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .directors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .directors-grid {
        grid-template-columns: 1fr;
    }

    .director-img-wrapper {
        height: 280px;
    }
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--green-accent) 0%, var(--green-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--blue-dark);
    color: #b0c4de;
    padding-top: 60px;
    border-top: 4px solid var(--green-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 174px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col strong {
    color: var(--white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--white);
    margin: 0 10px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.social-icon:hover {
    background: var(--green-accent);
}

/* Back to Top & WhatsApp */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

/* Page Hero (Internal Pages) */
.page-hero {
    padding: 120px 0 80px;
    background: var(--blue-primary);
    color: var(--white);
    text-align: center;
    margin-top: var(--header-height);
    position: relative;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Blog Hero (Blog Post Pages) */
.blog-hero h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-hero h2 {
    color: var(--white);
}


/* Solar Calculator */
.calculator-section {
    background: var(--white);
    padding: 80px 0;
}

.calculator-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-hover);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--gray-mid);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calc-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--blue-primary);
    font-size: 1.1rem;
}

.range-wrap {
    position: relative;
    padding: 0 10px;
}

input[type=range] {
    width: 100%;
    margin: 10px 0;
    cursor: pointer;
    accent-color: var(--green-accent);
}

.range-value {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 1.2rem;
    float: right;
}

.calc-outputs {
    background: var(--blue-primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.output-item {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.output-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.output-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-accent);
    font-family: 'Montserrat', sans-serif;
}

.calc-note {
    font-size: 0.8rem;
    margin-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.office-card {
    background: var(--gray-light);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 5px solid var(--green-accent);
    transition: var(--transition);
}

.office-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.office-card h4 {
    color: var(--green-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.office-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.contact-details {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-mid);
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-details a {
    color: var(--blue-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-details a:hover {
    color: var(--green-accent);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
}

.form-control:focus {
    border-color: var(--green-accent);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(107, 191, 78, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue-dark);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        padding: 20px;
        transition: var(--transition);
        overflow-y: auto;
    }

    .site-nav.open {
        left: 0;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: block;
        background: transparent;
        min-width: unset;
    }

    .dropdown a {
        padding: 10px 0;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stat-counters {
        flex-wrap: wrap;
        justify-content: start;
        gap: 20px;
    }

    :root {
        --header-height: 70px;
    }
}

/* Blog Specifics */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-mid);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-img {
    height: 240px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(107, 191, 78, 0.1);
    color: var(--green-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--blue-primary);
}

.blog-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--blue-primary);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--green-accent);
    transform: translateX(5px);
}

/* Lead Generation Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--green-accent);
    color: var(--white);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.popup-left {
    background: var(--blue-primary);
    color: var(--white);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(rgba(27, 63, 122, 0.8), rgba(27, 63, 122, 0.8)), url('../assets/service_rooftop.webp');
    background-size: cover;
    background-position: center;
}

.popup-left .hot-deal {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #FFD700;
    color: #000;
    padding: 5px 40px;
    font-weight: 700;
    font-size: 0.8rem;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.popup-left h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.zero-investment-tag {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.zero-investment-tag::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}

.zero-investment-tag span.zero {
    display: block;
    color: #d32f2f;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.zero-investment-tag span.inv {
    display: block;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.popup-bullets {
    margin-bottom: 30px;
}

.popup-bullets p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-bullets p::before {
    content: '✓';
    color: var(--green-accent);
    font-weight: 800;
}

.popup-left-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.popup-left-footer h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.popup-left-footer p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.popup-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-right h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--blue-primary);
}

.popup-right p.subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.popup-form .form-group {
    margin-bottom: 15px;
}

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
}

.popup-form input:focus,
.popup-form select:focus {
    border-color: var(--green-accent);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(107, 191, 78, 0.1);
}

.popup-submit {
    width: 100%;
    padding: 16px;
    background: var(--blue-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-grid {
        grid-template-columns: 1fr;
    }

    .popup-left {
        padding: 40px 30px;
        text-align: left;
    }

    .popup-left .hot-deal {
        display: none;
    }

    .popup-right {
        padding: 30px;
    }

    .popup-content {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .popup-close {
        color: var(--white);
        background: rgba(0, 0, 0, 0.3);
        top: 10px;
        right: 10px;
    }
}