/* PR MOTORS & ENTERPRISES - Homepage styles
   Colours: primary blue #0757A6, solar green #238636, sun yellow #FDB813,
   white #FFFFFF, dark navy #102A43, light background #F5F9FC */

:root {
    --pr-blue: #0757A6;
    --pr-green: #238636;
    --pr-sun: #FDB813;
    --pr-white: #FFFFFF;
    --pr-navy: #102A43;
    --pr-light: #F5F9FC;
    --pr-text: #334155;
    --pr-muted: #64748B;
    --pr-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
    --pr-shadow-hover: 0 18px 40px rgba(16, 42, 67, 0.16);
    --pr-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--pr-text);
    background: var(--pr-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--pr-navy);
    font-weight: 700;
    line-height: 1.25;
}

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

a {
    color: var(--pr-blue);
}

a:hover {
    color: var(--pr-green);
}

:focus-visible {
    outline: 3px solid var(--pr-sun);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn-solar {
    background: var(--pr-green);
    border: 2px solid var(--pr-green);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-solar:hover,
.btn-solar:focus {
    background: #1b6b2a;
    border-color: #1b6b2a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(35, 134, 54, 0.35);
}

.btn-solar-outline {
    border: 2px solid var(--pr-green);
    color: var(--pr-green);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-solar-outline:hover {
    background: var(--pr-green);
    color: #fff;
}

.btn-sun {
    background: var(--pr-sun);
    border: 2px solid var(--pr-sun);
    color: var(--pr-navy);
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-sun:hover {
    background: #ffc53d;
    color: var(--pr-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(253, 184, 19, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
}

.btn-whatsapp {
    background: #25D366;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1rem;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    color: #fff;
}

/* ---------- Top bar & navigation ---------- */
.topbar {
    background: var(--pr-navy);
    color: #dbe7f3;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.topbar a {
    color: #dbe7f3;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--pr-sun);
}

.topbar .sep {
    margin: 0 0.75rem;
    opacity: 0.5;
}

.topbar-mobile {
    background: var(--pr-navy);
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.topbar-mobile a {
    color: #fff;
    text-decoration: none;
}

.site-header {
    z-index: 1030;
    box-shadow: 0 2px 16px rgba(16, 42, 67, 0.08);
}

.navbar {
    padding: 0.5rem 0;
}

.brand-logo {
    height: 64px;
    width: auto;
}

.navbar .nav-link {
    color: var(--pr-navy);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--pr-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--pr-blue);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Hero slider ---------- */
.hero-section {
    position: relative;
}

.hero-carousel .carousel-item {
    height: 80vh;
    min-height: 480px;
    max-height: 820px;
}

.hero-img {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 42, 67, 0.85) 0%, rgba(7, 87, 166, 0.55) 55%, rgba(16, 42, 67, 0.35) 100%);
}

.hero-caption {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0 8%;
    z-index: 2;
}

.hero-caption .hero-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3.4rem);
    font-weight: 800;
    max-width: 780px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-caption .hero-text {
    color: #e8f1fb;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 620px;
    margin-bottom: 1.75rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.6;
    border: none;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--pr-sun);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 1;
    margin: 0 1.25rem;
    z-index: 3;
    transition: background 0.25s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(253, 184, 19, 0.85);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 1.4rem;
    height: 1.4rem;
}

/* ---------- Sections ---------- */
.section {
    padding: 5.5rem 0;
}

.section-light {
    background: var(--pr-light);
}

.section-accent {
    background: linear-gradient(135deg, var(--pr-blue) 0%, var(--pr-navy) 100%);
    color: #fff;
}

.cta-section {
    background: linear-gradient(120deg, var(--pr-green) 0%, var(--pr-blue) 100%);
    color: #fff;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pr-green);
    margin-bottom: 0.5rem;
}

.eyebrow-light {
    color: var(--pr-sun);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--pr-muted);
    max-width: 680px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--pr-text);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.check-list li {
    padding: 0.4rem 0;
    font-weight: 500;
    color: var(--pr-navy);
}

.check-list i {
    color: var(--pr-green);
    margin-right: 0.6rem;
}

.shadow-soft {
    box-shadow: var(--pr-shadow);
}

.about-img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* ---------- Service cards ---------- */
.service-card {
    background: #fff;
    border-radius: var(--pr-radius);
    overflow: hidden;
    box-shadow: var(--pr-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pr-shadow-hover);
}

.service-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9f1f9;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-body p {
    color: var(--pr-muted);
    font-size: 0.95rem;
    flex: 1;
}

.service-body .btn {
    align-self: flex-start;
}

/* ---------- Feature / benefit / step cards ---------- */
.feature-card,
.benefit-card,
.step-card {
    background: #fff;
    border-radius: var(--pr-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--pr-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover,
.benefit-card:hover,
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pr-shadow-hover);
    border-top-color: var(--pr-green);
}

.icon-circle,
.benefit-icon,
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--pr-green);
    background: rgba(35, 134, 54, 0.1);
    margin-bottom: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .icon-circle,
.benefit-card:hover .benefit-icon {
    background: var(--pr-green);
    color: #fff;
}

.feature-card h3,
.benefit-card h3,
.step-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p,
.benefit-card p,
.step-card p {
    color: var(--pr-muted);
}

.step-card {
    position: relative;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pr-sun);
    color: var(--pr-navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(253, 184, 19, 0.45);
}

.step-icon {
    color: var(--pr-blue);
    background: rgba(7, 87, 166, 0.1);
}

/* ---------- PM Surya Ghar disclaimer ---------- */
.disclaimer-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--pr-radius);
    padding: 1.5rem;
    color: #fff;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

.disclaimer-box i {
    color: var(--pr-sun);
}

/* ---------- Gallery ---------- */
.gallery-item {
    display: block;
    border-radius: var(--pr-radius);
    overflow: hidden;
    box-shadow: var(--pr-shadow);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-note {
    color: var(--pr-muted);
    margin: 0.75rem 0 0;
}

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--pr-shadow);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--pr-navy);
    background: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--pr-blue);
    background: #eef5fc;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-body {
    color: var(--pr-muted);
    background: #fff;
}

/* ---------- Contact ---------- */
.contact-card,
.form-card {
    background: #fff;
    border-radius: var(--pr-radius);
    padding: 2rem;
    box-shadow: var(--pr-shadow);
}

.contact-card {
    border-left: 5px solid var(--pr-green);
}

.contact-heading {
    color: var(--pr-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-list li {
    padding: 0.25rem 0;
}

.contact-list a {
    color: var(--pr-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-list a:hover {
    color: var(--pr-green);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--pr-green);
    box-shadow: 0 0 0 0.2rem rgba(35, 134, 54, 0.2);
}

.form-card .req {
    color: #dc3545;
}

.form-card .btn-solar {
    padding: 0.7rem 1rem;
}

.map-wrap iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--pr-navy);
    color: #c3d3e6;
    padding: 4rem 0 0;
}

.footer-logo {
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    max-width: 200px;
}

.footer-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--pr-sun);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #c3d3e6;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--pr-sun);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--pr-sun);
    margin-top: 0.3rem;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--pr-sun);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-right: 0.5rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
    background: var(--pr-green);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

/* ---------- Floating contact buttons ---------- */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

.fab:hover {
    transform: scale(1.08);
    color: #fff;
}

.fab-whatsapp {
    background: #25D366;
}

.fab-call {
    background: var(--pr-blue);
    font-size: 1.25rem;
}

.back-to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--pr-sun);
    color: var(--pr-navy);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: 75vh;
    }

    .hero-caption {
        padding: 0 6%;
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem 0;
        border-top: 1px solid #e5edf5;
        margin-top: 0.5rem;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .btn-solar {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: auto;
        min-height: 560px;
        max-height: none;
        padding: 6rem 0 5rem;
    }

    .hero-img {
        position: absolute;
        inset: 0;
    }

    .hero-caption {
        position: relative;
        padding: 3rem 1.25rem;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-caption .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .brand-logo {
        height: 50px;
    }

    .contact-card,
    .form-card {
        padding: 1.5rem;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Footer company description (under logo) */
.footer-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ============ INNER PAGES ============ */
.page-hero {
    background: linear-gradient(135deg, var(--pr-navy) 0%, var(--pr-blue) 100%);
    color: #fff;
    padding: 56px 0 48px;
}
.page-hero-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 10px;
}
.page-hero-text {
    color: rgba(255, 255, 255, 0.88);
    max-width: 760px;
}
.breadcrumb-solar {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
    --bs-breadcrumb-item-active-color: var(--pr-sun);
    margin-bottom: 12px;
}
.breadcrumb-solar a,
.breadcrumb-solar .breadcrumb-item {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}
.breadcrumb-solar a:hover {
    color: var(--pr-sun);
}
.service-title-link {
    color: var(--pr-navy);
    text-decoration: none;
}
.service-title-link:hover {
    color: var(--pr-blue);
}
.location-note {
    background: var(--pr-light);
    border-left: 4px solid var(--pr-green);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
}
.related-links a {
    display: block;
    background: var(--pr-light);
    color: var(--pr-navy);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.related-links a:hover {
    background: var(--pr-blue);
    color: #fff;
}
@media (max-width: 575.98px) {
    .page-hero { padding: 40px 0 36px; }
}

/* ============ CARD ACTIONS, HEADER SOCIAL, MOBILE ============ */
.service-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-contact-row .btn {
    flex: 1 1 auto;
    white-space: nowrap;
}
.header-social,
.topbar-right a.header-social,
.topbar-mobile a.header-social {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
}
.topbar-right .header-social {
    color: var(--pr-navy);
}
.header-social:hover {
    color: var(--pr-sun);
}
.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 16px;
    display: block;
}
@media (max-width: 575.98px) {
    .map-wrap iframe { height: 300px; }
    .service-contact-row .btn { font-size: 0.8rem; padding-left: 8px; padding-right: 8px; }
    .topbar-mobile { align-items: center; }
}
