/* =========================================================
   BASE RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #ffffff;
    color: #1f1f1f;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    width: 60px;
    height: auto;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-text p {
    margin-top: 3px;
    color: #ff6a2b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-clarion {
    color: #00246b;
}

.logo-solar {
    color: #0066cc;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
}

nav a {
    color: #3a3a3a;
    font-size: 1rem;
    font-weight: 600;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: #0066cc;
    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 80px 24px;
    background:
        linear-gradient(
            rgba(0, 36, 107, 0.55),
            rgba(0, 36, 107, 0.55)
        ),
        url("images/hero-solar-panels.jpg")
        center / cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero-content p {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 8px;
    background: #ff6a2b;
    box-shadow: 0 8px 20px rgba(255, 106, 43, 0.25);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    background: #e95d1f;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

section {
    width: 100%;
    padding: 72px 0;
    background: #ffffff;
    scroll-margin-top: 110px;
}

#services,
#testimonials,
#process,
#service-area {
    background: #ffffff;
}

#about,
#contact {
    background: #f4f7fb;
}

section > h2 {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 30px;
    color: #005fc1;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
}

section h3 {
    color: #00246b;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.service-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    padding: 28px 24px;
    border-left: 4px solid #ff6a2b;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.service-card h3 {
    margin: 0 0 14px;
    color: #005fc1;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.service-card p {
    margin: 0;
    color: #555555;
    font-size: 0.98rem;
    line-height: 1.5;
}


/* =========================================================
   MISSION AND VALUES
========================================================= */

#about {
    text-align: center;
}

.mission-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 32px;
    border-radius: 16px;
    background: #f4f7fb;
    text-align: center;
}

.mission-section > h3 {
    width: 100%;
    margin: 0 auto 16px;
    color: #005fc1;
    font-size: 1.6rem;
    line-height: 1.25;
}

.mission-section > p {
    max-width: 900px;
    margin: 0 auto 18px;
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.values-heading {
    width: 100%;
    margin: 30px auto 18px;
    color: #005fc1;
    font-size: 1.6rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 18px auto 0;
}

.value-item {
    display: flex;
    min-width: 0;
    min-height: 190px;
    flex-direction: column;
    padding: 22px 15px;
    overflow-wrap: break-word;
    border-top: 4px solid #ff6a2b;
    border-left: 4px solid #005fc1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-item h4 {
    margin: 0 0 10px;
    color: #0a2f66;
    font-size: 1.15rem;
    line-height: 1.25;
}

.value-item p {
    margin: 0;
    color: #444444;
    font-size: 0.98rem;
    line-height: 1.5;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.testimonial-card {
    overflow: hidden;
    padding-bottom: 18px;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.testimonial-card .stars {
    padding: 14px 18px 6px;
    color: #ffb400;
    font-size: 1.1rem;
}

.testimonial-card p {
    padding: 0 18px;
    color: #333333;
    font-style: italic;
}

.testimonial-author {
    padding: 14px 18px 0;
    color: #00246b;
    font-weight: 600;
}


/* =========================================================
   PROCESS
========================================================= */

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.process-step {
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    border: 2px solid #1b74e4;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ff6a2b;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.process-step h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    margin: 0 0 10px;
    color: #005fc1;
    font-size: 1.15rem;
    line-height: 1.3;
}

.process-step p {
    margin: 0;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   SERVICE AREA
========================================================= */

.service-area {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e4edf7;
    border-radius: 16px;
    background: #f8fbff;
    text-align: center;
}

.service-area h3 {
    margin: 0 0 12px;
}

.service-area .states {
    margin: 10px 0 14px;
    color: #ff6a2b;
    font-size: 1.25rem;
    font-weight: 700;
}

.service-area p {
    margin: 0;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.contact-info {
    padding: 22px;
    border: 1px solid #e4edf7;
    border-radius: 14px;
    background: #f8fbff;
}

.contact-info h3 {
    margin-bottom: 12px;
    color: #00246b;
}

.contact-info p {
    margin-bottom: 10px;
    color: #333333;
}

.contact-info a {
    color: #005fc1;
    text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
}

.email-contact {
    margin-top: 15px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 28px 24px;
    border-top: 1px solid #e5edf6;
    background: #ffffff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo img {
    width: 72px;
    height: auto;
}

.footer-text h3 {
    margin-bottom: 4px;
    font-size: 1.3rem;
    line-height: 1.1;
}

.footer-text p {
    color: #ff6a2b;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: #00246b;
    font-weight: 600;
}

.footer-right a:hover,
.footer-right a:focus {
    color: #0066cc;
}


/* =========================================================
   MONARX VERIFICATION SEAL
========================================================= */

.monarx-seal {
    margin-top: 15px;
    text-align: right;
}

.monarx-seal a {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.monarx-seal img {
    display: inline-block;
    width: 150px;
    max-width: 100%;
    height: auto;
    border: 0;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1050px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .value-item:last-child {
        grid-column: 2;
    }

    .process-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .process-step {
        min-height: 280px;
    }

    .process-step:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .process-step:last-child {
        grid-column: 2;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
    header {
        position: relative;
    }

    .header-container {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 32px);
        padding: 14px 0;
    }

    nav {
        justify-content: flex-start;
        width: 100%;
        gap: 12px 18px;
    }

    nav a {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 340px;
        padding: 60px 16px;
    }

    .hero-content p {
        font-size: 1.7rem;
    }

    section {
        padding: 56px 0;
    }

    section > h2 {
        width: calc(100% - 32px);
        font-size: 1.8rem;
    }

    .mission-section {
        width: calc(100% - 32px);
        padding: 24px 20px;
    }

    .mission-section > p {
        font-size: 1rem;
    }

    .services-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }

    .service-card {
        min-height: auto;
        padding: 24px 22px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .value-item {
        min-height: 170px;
        padding: 20px 14px;
    }

    .value-item:last-child {
        grid-column: 1 / -1;
    }

    .process-steps {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }

    .process-step,
    .process-step:last-child {
        grid-column: auto;
        grid-row: auto;
        min-height: auto;
        transform: none;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 32px);
    }

    .footer-right {
        text-align: left;
    }

    .monarx-seal {
        text-align: left;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .logo img {
        width: 54px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.72rem;
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: 0.88rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .mission-section {
        padding: 22px 16px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item:last-child {
        grid-column: auto;
    }

    .service-card,
    .value-item {
        min-height: auto;
        padding: 22px 18px;
    }

    .contact-info {
        padding: 20px 18px;
    }

    .monarx-seal img {
        width: 130px;
    }
}
