/* =========================================
   SOLAR SYSTEM - MAIN STYLESHEET
   Solar System Renewable Energy Pvt. Ltd.
========================================= */

/* ---------- ROOT VARIABLES ---------- */

:root {
    --primary: #0b4938;
    --primary-dark: #062e25;
    --primary-light: #167454;

    --green: #27c66b;
    --green-light: #e9f8ef;

    --orange: #ff8500;
    --yellow: #ffc928;

    --dark: #142d27;
    --text: #596b66;
    --white: #ffffff;

    --background: #f3f8f4;
    --border: #dcebe1;

    --shadow: 0 12px 35px rgba(8, 55, 39, 0.09);

    --radius: 22px;
    --transition: all 0.3s ease;
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif;
    background: var(--background);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.section-padding {
    padding: 100px 0;
}


/* ---------- HEADER ---------- */

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
}

.header-container {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 230px;
}

.brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand strong {
    font-size: 21px;
    color: var(--primary);
    font-weight: 800;
}

.brand small {
    font-size: 10px;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 0.8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 23px;
}

.main-nav a {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;

    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--orange);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--orange);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-call {
    padding: 13px 25px;

    color: var(--white);
    background: linear-gradient(135deg, var(--orange), #ff5100);

    font-weight: 800;
    border-radius: 50px;

    white-space: nowrap;

    box-shadow: 0 7px 20px rgba(255, 115, 0, 0.2);

    transition: var(--transition);
}

.header-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 115, 0, 0.3);
}

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--primary);

    margin: 5px auto;
    border-radius: 5px;
}


/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 30px;

    border-radius: 50px;

    font-size: 16px;
    font-weight: 800;

    border: 2px solid transparent;

    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #ff5700);
    color: var(--white);

    box-shadow: 0 10px 25px rgba(255, 115, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(255, 115, 0, 0.35);
}

.btn-outline {
    border-color: var(--green);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}

.btn-whatsapp {
    background: #10b95c;
    color: var(--white);

    padding: 17px 35px;
}

.btn-whatsapp:hover {
    background: #079b49;
}


/* ---------- HERO SECTION ---------- */

.hero-section {
    min-height: 680px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3, 37, 29, 0.92),
            rgba(4, 46, 34, 0.72),
            rgba(4, 37, 30, 0.25)
        ),
        url("../assets/images/solar-hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(3, 35, 27, 0.3),
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 70px;
    padding-bottom: 70px;

    animation: heroFade 1s ease both;
}

.hero-tag {
    display: inline-block;

    padding: 9px 20px;

    color: #b5ff9e;
    background: rgba(45, 190, 105, 0.17);

    border: 1px solid rgba(100, 255, 145, 0.3);
    border-radius: 50px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-welcome {
    margin-top: 25px;
    margin-bottom: 10px;

    color: #a5ff75;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content h1 {
    max-width: 850px;

    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;

    line-height: 1.15;
    letter-spacing: -2px;
}

.hero-content h1 span {
    display: block;
    color: #86ed55;
}

.hero-description {
    max-width: 690px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 19px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 35px;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 35px;

    font-weight: 700;
    color: #caffb9;
}

.hero-highlight span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    background: var(--green);
    color: white;

    border-radius: 50%;
}


/* ---------- QUICK FEATURES ---------- */

.quick-features {
    padding: 35px 0;

    background: var(--white);

    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    text-align: center;
    padding: 15px 10px;

    border-right: 1px solid var(--border);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item > span {
    font-size: 34px;
}

.feature-item h3 {
    margin-top: 8px;

    font-size: 17px;
    color: var(--primary);
}

.feature-item p {
    font-size: 13px;
    color: var(--text);
}


/* ---------- SECTION HEADING ---------- */

.section-heading {
    max-width: 750px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-tag {
    display: inline-block;

    padding: 8px 20px;

    background: #e5f9ed;
    color: var(--primary-light);

    border-radius: 50px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin-top: 18px;

    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.25;

    color: var(--primary);
    font-weight: 800;
}

.section-heading p {
    margin-top: 15px;

    font-size: 17px;
    color: var(--text);
}


/* ---------- ABOUT SECTION ---------- */

.about-section {
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 65px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 480px;

    object-fit: cover;

    border-radius: 30px;
    box-shadow: var(--shadow);
}

.about-image-label {
    position: absolute;

    bottom: 20px;
    left: 20px;

    padding: 13px 20px;

    background: var(--white);
    color: var(--primary);

    border-radius: 12px;
    font-weight: 800;
}

.about-content h2 {
    margin: 18px 0;

    color: var(--primary);

    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.3;
}

.about-content p {
    margin-bottom: 17px;

    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
}

.about-content .btn {
    margin-top: 15px;
}


/* ---------- PRODUCTS SECTION ---------- */

.products-section {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);

    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-9px);
    box-shadow: var(--shadow);
    border-color: #9bd8af;
}

.product-card img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-info {
    padding: 23px;
}

.product-info h3 {
    color: var(--primary);
    font-size: 20px;
}

.product-info p {
    margin-top: 10px;

    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}


/* ---------- SERVICES SECTION ---------- */

.services-section {
    background: #edf7f0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 30px;

    background: var(--white);

    border: 1px solid #e3efe6;
    border-radius: 30px;

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--green);
    box-shadow: var(--shadow);
}

.service-icon {
    display: inline-flex;

    width: 65px;
    height: 65px;

    align-items: center;
    justify-content: center;

    background: #edfaf1;

    border-radius: 18px;
    font-size: 32px;
}

.service-card h3 {
    margin-top: 23px;

    color: var(--primary);
    font-size: 22px;
}

.service-card p {
    margin-top: 12px;

    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
}


/* ---------- SCHEME SECTION ---------- */

.scheme-section {
    background: var(--white);
}

.scheme-content {
    padding: 60px;

    background: linear-gradient(
        135deg,
        #f2fff5,
        #e5f6e9
    );

    border: 1px solid var(--border);
    border-radius: 35px;

    text-align: center;
}

.scheme-content h2 {
    margin-top: 20px;

    font-size: clamp(30px, 4vw, 46px);
    color: var(--primary);
    line-height: 1.3;
}

.scheme-content > p {
    max-width: 800px;

    margin: 20px auto;

    color: var(--text);
    font-size: 18px;
}

.scheme-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
    margin: 40px 0;
}

.benefit-card {
    padding: 28px 20px;

    background: var(--white);

    border-radius: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.benefit-card span {
    font-size: 32px;
}

.benefit-card h3 {
    margin-top: 12px;
    color: var(--primary);
}

.benefit-card p {
    margin-top: 8px;
    color: var(--text);
    font-size: 14px;
}

.scheme-note {
    margin-top: 25px !important;

    font-size: 13px !important;
    color: #667a70 !important;
}


/* ---------- INSTALLATION PROCESS ---------- */

.process-section {
    background: var(--background);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.process-card {
    padding: 35px 25px;

    background: var(--white);
    border-radius: 25px;

    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);

    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-7px);
    border-color: var(--orange);
}

.process-number {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--white);
    background: var(--orange);

    font-size: 23px;
    font-weight: 800;
}

.process-card h3 {
    margin-top: 25px;

    font-size: 22px;
    color: var(--primary);
}

.process-card p {
    margin-top: 12px;

    color: var(--text);
    font-size: 15px;
}


/* ---------- FREE SITE VISIT ---------- */

.free-survey-section {
    padding: 100px 0;

    color: var(--white);

    background:
        linear-gradient(
            120deg,
            rgba(255, 132, 0, 0.95),
            rgba(12, 120, 58, 0.96)
        ),
        url("../assets/images/solar-survey.jpg");

    background-size: cover;
    background-position: center;
}

.survey-content {
    max-width: 900px;
    text-align: center;
}

.survey-tag {
    display: inline-block;

    padding: 8px 20px;

    background: rgba(255, 255, 255, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.survey-content h2 {
    margin-top: 25px;

    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.3;
}

.survey-content > p {
    max-width: 750px;

    margin: 22px auto 30px;

    font-size: 18px;
    line-height: 1.9;

    color: rgba(255, 255, 255, 0.95);
}

.survey-content .btn {
    background: var(--white);
    color: var(--primary);
}

.survey-content .btn:hover {
    background: var(--yellow);
}

.survey-content .survey-note {
    margin-top: 25px;
    font-size: 14px;
}


/* ---------- PROJECTS SECTION ---------- */

.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    overflow: hidden;

    background: var(--white);

    border-radius: 24px;
    border: 1px solid var(--border);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 260px;

    object-fit: cover;
}

.project-card h3 {
    padding: 20px;

    color: var(--primary);
    font-size: 20px;
}


/* ---------- GALLERY SECTION ---------- */

.gallery-section {
    background: #edf7f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 20px;

    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow);
}


/* ---------- CONTACT SECTION ---------- */

.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;

    align-items: start;
}

.contact-info {
    padding: 40px;

    background: linear-gradient(
        145deg,
        var(--primary-dark),
        var(--primary)
    );

    color: var(--white);

    border-radius: 28px;
}

.contact-info h3 {
    font-size: 30px;
}

.contact-info h4 {
    color: #a5edb4;
    font-size: 15px;
    margin-top: 5px;
}

.contact-item {
    display: flex;
    gap: 17px;

    margin-top: 35px;
}

.contact-item > span {
    font-size: 26px;
}

.contact-item strong {
    font-size: 16px;
}

.contact-item p {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.contact-info .btn {
    margin-top: 35px;
}

.contact-form-box {
    padding: 40px;

    background: #f8fbf8;

    border: 1px solid var(--border);
    border-radius: 28px;
}

.contact-form-box h3 {
    color: var(--primary);
    font-size: 27px;
}

.contact-form-box > p {
    margin-top: 7px;
    margin-bottom: 25px;

    color: var(--text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 15px 17px;

    background: var(--white);

    border: 1px solid #d7e6db;
    border-radius: 12px;

    outline: none;

    color: var(--dark);
    font-size: 15px;

    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);

    box-shadow: 0 0 0 3px rgba(39, 198, 107, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    border: none;
}


/* ---------- FOOTER ---------- */

.site-footer {
    background: #052e25;
    color: var(--white);

    padding-top: 75px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 55px;
}

.footer-brand h2 {
    font-size: 27px;
}

.footer-brand > p:first-of-type {
    color: #9cf0ae;
    font-weight: 800;
    font-size: 13px;
}

.footer-brand span {
    display: block;
    margin-top: 12px;

    color: var(--yellow);
    font-style: italic;
}

.footer-brand > p:last-child {
    margin-top: 17px;

    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 10px;
    color: #a8f1b6;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.75);

    font-size: 14px;

    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 22px 15px;

    text-align: center;

    background: rgba(0, 0, 0, 0.18);

    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}


/* ---------- FLOATING WHATSAPP ---------- */

.floating-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    color: var(--white);
    background: #10b95c;

    border-radius: 50px;

    font-size: 15px;
    font-weight: 800;

    box-shadow: 0 8px 25px rgba(16, 185, 92, 0.35);

    transition: var(--transition);
}

.floating-whatsapp::before {
    content: "◉";
    margin-right: 9px;
    font-size: 19px;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    background: #079b49;
}


/* ---------- ANIMATIONS ---------- */

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- SELECTION ---------- */

::selection {
    background: var(--green);
    color: var(--white);
}


/* ---------- ACCESSIBILITY ---------- */

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}


/* ---------- END OF MAIN CSS ---------- */

/* HEADER SCROLL STATE */

.site-header.scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

/* ACTIVE NAVIGATION */

.main-nav a.active-link {
    color: var(--orange);
    font-weight: 800;
}

/* IMAGE ERROR STATE */

img.image-error {
    opacity: 0.65;
}

/* HEADER SOCIAL ICONS */

.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.instagram-icon {
    color: #ffffff;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.location-icon {
    color: #4285f4;
    background: #e8f0fe;
}

/* Owner Photo Display Fix */
.about-image {
    width: 100%;
    overflow: hidden;
    border-radius: 35px;
}

.about-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 35%;
}

/* Owner Photo Box Size Fix */
.about-image {
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 3 / 4;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 25px;
}

.about-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
}
