/* Central stylesheet for SRA Solar Solutions - theme: green, white, skyblue */
:root {
    --brand-green: #28a745;
    /* primary green */
    --brand-sky: #6ec1ff;
    /* skyblue accent */
    --brand-navy: #0b3d91;
    /* darker navy blue */
    --brand-white: #ffffff;
    --brand-muted: #f8fbff;
}

body {
    background: var(--brand-white);
    color: #222;
}

.hero {
    /* subtle skyblue overlay on top of hero image (removed green tint) */
    background:
        linear-gradient(180deg, rgba(110, 192, 255, 0.075) 0%, rgba(243, 244, 245, 0.13) 100%),
        url('../images/sragroup.jpeg') center/cover no-repeat;
    color: var(--brand-white);
    padding: 60px 0 80px 0;
    text-align: center;
}

.mt-navbar {
    margin-top: 56px;
}

.feature-card img {
    width: 60px;
    margin-bottom: 15px;
}

.feature-card .card-title {
    color: var(--brand-green) !important;
}

.about-section {
    background: var(--brand-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin: 40px auto;
}

.contact-section {
    background: var(--brand-green);
    color: var(--brand-white);
    text-align: center;
    padding: 40px 20px;
    border-radius: 0 0 12px 12px;
}

/* Navbar color override to green */
.navbar {
    background: var(--brand-green) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff !important;
}

/* Align nav links with icons */
.navbar .nav-link {
    display: inline-flex;
    align-items: center;
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    fill: currentColor;
}

.navbar .nav-link.active {
    font-weight: 700;
}

/* Navbar logo sizing */
.navbar-logo {
    height: 36px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

/* Hero CTA button: white background, green text */
.hero .btn-light {
    background: var(--brand-white);
    color: var(--brand-green);
    font-weight: 700;
}

/* Primary CTA: green background with white text */
.btn-cta {
    background: var(--brand-green) !important;
    color: var(--brand-white) !important;
    border: none;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.18);
}

.btn-cta:hover {
    background: #238038 !important;
    /* slightly darker on hover */
}

/* Small helper adjustments */
.font-weight-bold {
    font-weight: 700;
}

/* Footer map and newsletter styles */
.site-footer {
    background: var(--brand-navy);
    color: #fff;
    padding: 40px 0 10px 0;
}

.footer-top {
    padding-bottom: 20px;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

/* Footer link icons */
.footer-links a {
    display: inline-flex;
    align-items: center;
}

.link-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.subscribe-form .form-control {
    border-radius: 30px 0 0 30px;
}

.subscribe-form .btn {
    border-radius: 0 30px 30px 0;
}

.subscribe-success {
    display: none;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.04);
    padding: 15px 0;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Social icons in footer */
.social-icons a {
    color: #fff;
    display: inline-block;
    margin-left: 10px;
    opacity: 0.95;
    transition: transform .15s ease-in-out, opacity .15s ease-in-out;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: currentColor;
    display: inline-block;
}

/* specific small class for sprite-based social icons */
.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-green);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.18);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.22);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    fill: currentColor;
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        padding: 10px;
    }

    .whatsapp-float .whatsapp-label {
        display: none;
    }
}

/* Navbar dropdown: match navbar background and use skyblue hover with white text */
.navbar .dropdown-menu {
    background: var(--brand-green) !important;
    border: none;
    box-shadow: none;
}

.navbar .dropdown-item {
    color: #fff;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--brand-navy) !important;
    color: #fff !important;
}

.navbar .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .dropdown-toggle {
    color: #fff !important;
}

/* Carousel responsive images - let CSS control height for different viewports */
#heroCarousel .carousel-item img,
.carousel-item .carousel-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {

    #heroCarousel .carousel-item img,
    .carousel-item .carousel-img {
        height: 45vh;
    }
}

@media (max-width: 576px) {


    /* Navbar hover behavior and styling */
    .navbar .nav-link:hover,
    .navbar .nav-item.show>.nav-link {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        transition: background .12s ease;
    }

    /* Submenu item hover color (desktop & mobile) */
    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: var(--brand-sky) !important;
        color: #fff !important;
    }

    /* Show dropdown on hover for medium+ screens (preserve click on touch devices) */
    @media (min-width: 768px) {
        .navbar .nav-item.dropdown:hover>.dropdown-menu {
            display: block;
            margin-top: 0;
        }

        .navbar .nav-item.dropdown .dropdown-menu {
            transition: opacity .15s ease, transform .15s ease;
            opacity: 1;
        }
    }

    /* Improve pointer affordance */
    .navbar .nav-link,
    .navbar .dropdown-item {
        cursor: pointer;
    }

    #heroCarousel .carousel-item img,
    .carousel-item .carousel-img {
        height: 36vh;
    }

    /* make captions more compact on small screens */
    #heroCarousel .carousel-caption h3 {
        font-size: 1.05rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }

    #heroCarousel .carousel-caption {
        left: 0.75rem;
        right: 0.75rem;
    }
}

/* Make all paragraph text justified across the site */
p {
    text-align: justify;
    text-justify: inter-word;
}