body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #222;
    margin-bottom: 0.5em;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Desktop: ~4.5rem, Tablet: ~3.5rem, Mobile: ~2.5rem */
}

h2.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem); /* Desktop: ~3.5rem, Tablet: ~2.8rem, Mobile: ~2rem */
}

h3 {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Desktop: ~2.5rem, Tablet: ~2rem, Mobile: ~1.5rem */
}

h4 {
    font-size: clamp(1.25rem, 4vw, 2rem); /* Desktop: ~2rem, Tablet: ~1.6rem, Mobile: ~1.25rem */
}

.site-name, .site-name-footer {
    font-size: clamp(14px, 5vw, 24px); /* Desktop: ~2rem, Tablet: ~1.8rem, Mobile: ~1.25rem */
    font-weight: 700;
}

.site-logo {
    height: 2.5rem;
    width: auto;
}

.site-logo-footer {
    height: 2rem;
    width: auto;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 52, 71, 0.95); /* Dark blue-green */
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand .site-name {
    color: #fff;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f8f9fa;
}

.offcanvas {
    background-color: #1a3447 !important;
}

.offcanvas-body .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('uploads/content/solar-roof-canada.jpg') no-repeat center center/cover;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-top: 5rem; /* Adjust for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Dark overlay */
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.hero-section h1 {
    color: #fff;
}

.hero-section .lead {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.custom-btn {
    background-color: #28a745; /* Green */
    border-color: #28a745;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Remove underline */
}

.custom-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}
.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-secondary {
    background-color: #007bff; /* Blue */
    border-color: #007bff;
}
.btn-secondary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    color: #1a3447;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.benefit-card {
    height: 100%;
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.benefit-card i {
    color: #28a745;
}

/* Why Solar Section */
.why-solar-section {
    background-color: #e9f7ee;
}

.why-card {
    background-color: #fff;
    border: 1px solid #d4edda;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.why-card i {
    color: #28a745;
}

/* Programs Section */
.programs-section {
    background-color: #fff;
}

.programs-section ul li i {
    font-size: 1.25rem;
}

/* Solutions Section */
.solutions-section {
    background-color: #f0f8ff;
}

.solution-card {
    background-color: #fff;
    border: 1px solid #cfe2ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.solution-card i {
    color: #007bff;
}

.solution-card ul li i {
    font-size: 1rem;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, #1a3447 0%, #007bff 100%);
    color: #fff;
}

.calculator-section .section-title {
    color: #fff;
}

.calculator-form-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

.calculator-form-card .form-label {
    font-weight: 600;
    color: #333;
}

.calculator-form-card .form-control, .calculator-form-card .form-select {
    border-color: #ced4da;
}

.calculator-form-card .form-control:focus, .calculator-form-card .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.bg-success-subtle {
    background-color: #d4edda !important;
}

.text-success {
    color: #155724 !important;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #28a745;
}

/* Blog Section */
.blog-section {
    background-color: #fff;
}

.blog-card .blog-img {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-title {
    color: #1a3447;
}

.blog-card .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.blog-card .btn-link:hover {
    text-decoration: underline;
}

/* Modals */
.modal-header {
    background-color: #1a3447;
    color: #fff;
    border-bottom: 1px solid #28a745;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    color: #fff;
}

.modal-body h6 {
    color: #1a3447;
}

/* Company Info Section */
.company-info-section {
    background-color: #e9f7ee;
}

.company-info-section ul li i {
    font-size: 1.25rem;
    color: #ffc107;
}

/* FAQ Section */
.faq-section {
    background-color: #f8f9fa;
}

.accordion-button {
    font-weight: 600;
    color: #1a3447;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #28a745;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.accordion-body {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-top: none;
    background-color: #fff;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #007bff 0%, #1a3447 100%);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-form-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #333;
}

.contact-form-card .form-control, .contact-form-card .form-select {
    border-color: #ced4da;
}

.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.contact-section i {
    color: #28a745;
}

.email-break-all {
    word-break: break-all;
}

/* Footer */
.footer-section {
    background-color: #1a3447 !important;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .site-name-footer {
    color: #fff;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        display: none !important;
    }
    .offcanvas-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .offcanvas-body .navbar-nav {
        width: 100%;
    }
    .offcanvas-body .nav-item {
        width: 100%;
    }
    .offcanvas-body .nav-link {
        padding: 1rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding-top: 6rem; /* More space for mobile nav */
        padding-bottom: 3rem;
    }
    h1 {
        font-size: 2rem; /* Mobile: ~1.25rem equivalent */
    }
    h2.section-title {
        font-size: 1.8rem; /* Mobile: ~1.125rem equivalent */
    }
    h3 {
        font-size: 1.4rem; /* Mobile: ~0.875rem equivalent */
    }
    h4 {
        font-size: 1.1rem; /* Mobile: ~0.6875rem equivalent */
    }
    .site-name {
        font-size: 1.2rem;
    }
    .site-logo {
        height: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .custom-btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
    .about-section .row, .programs-section .row, .company-info-section .row {
        flex-direction: column;
    }
    .about-section .col-lg-6, .programs-section .col-lg-6, .company-info-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    .about-section .col-lg-6:last-child, .programs-section .col-lg-6:last-child, .company-info-section .col-lg-6:last-child {
        margin-bottom: 0;
    }
    .footer-section .col-md-4 {
        text-align: center;
    }
    .footer-section .navbar-brand {
        justify-content: center;
    }
    .footer-section ul {
        padding-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    h1 {
        font-size: 3.5rem;
    }
    h2.section-title {
        font-size: 2.8rem;
    }
    h3 {
        font-size: 2rem;
    }
    h4 {
        font-size: 1.6rem;
    }
    .site-name {
        font-size: 1.8rem;
    }
    .site-logo {
        height: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1.5rem;
    }
}
/* New stock styles for .complianceCoreSlot and its children */

.complianceCoreSlot {
    /* Padding for the main container */
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.complianceCoreSlot h1 {
    /* Heading 1 styles */
    font-size: 1.8em; /* Not too large as requested */
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: bold;
}

.complianceCoreSlot h2 {
    /* Heading 2 styles */
    font-size: 1.5em;
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    font-weight: bold;
}

.complianceCoreSlot h3 {
    /* Heading 3 styles */
    font-size: 1.3em;
    line-height: 1.3;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    font-weight: bold;
}

.complianceCoreSlot h4 {
    /* Heading 4 styles */
    font-size: 1.15em;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.complianceCoreSlot h5 {
    /* Heading 5 styles */
    font-size: 1.05em;
    line-height: 1.3;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    font-weight: bold;
}

.complianceCoreSlot p {
    /* Paragraph styles */
    font-size: 1em; /* Base font size */
    line-height: 1.6;
    margin-bottom: 1em; /* Space between paragraphs */
}

.complianceCoreSlot ul {
    /* Unordered list styles */
    list-style-type: disc; /* Default bullet points */
    padding-left: 1.5em; /* Indentation for list items */
    margin-bottom: 1em; /* Space after the list */
    margin-top: 1em; /* Space before the list */
}

.complianceCoreSlot li {
    /* List item styles */
    line-height: 1.6; /* Consistent line height */
    margin-bottom: 0.5em; /* Space between list items */
}


#contact{
    .text-dark{
        color: #fff !important;
    }
}

footer h5{
    color: #fff;
}

section{
    overflow: hidden;
}

.wr{
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    .main{
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}