body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #2c3e50;
    line-height: 1.7;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fafbfc;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1a1f36;
    margin-bottom: 0.6em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

h2.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

.site-name, .site-name-footer {
    font-size: clamp(14px, 5vw, 24px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

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

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

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

.offcanvas {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
}

.offcanvas-body .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 1.5rem;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-radius: 8px;
}

/* 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 3px 8px rgba(0, 0, 0, 0.4);
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 31, 54, 0.7) 0%, rgba(102, 126, 234, 0.5) 100%);
    z-index: 0;
}

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

.hero-section h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.custom-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    left: 0;
}

.custom-btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

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

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

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.benefit-card {
    height: 100%;
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.benefit-card i {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Why Solar Section */
.why-solar-section {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0ec 100%);
}

.why-card {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.why-card i {
    color: #f5576c;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.programs-section ul li i {
    font-size: 1.25rem;
    color: #667eea;
    margin-right: 0.8rem;
}

/* Solutions Section */
.solutions-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.solution-card {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.solution-card i {
    color: #fa709a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card ul li i {
    font-size: 0.9rem;
    margin-right: 0.6rem;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.calculator-form-card {
    background-color: rgba(255, 255, 255, 0.98);
    color: #2c3e50;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.calculator-form-card .form-label {
    font-weight: 600;
    color: #1a1f36;
    font-size: 0.95rem;
}

.calculator-form-card .form-control, .calculator-form-card .form-select {
    border-color: #e0e6ed;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fc;
}

.calculator-form-card .form-control:focus, .calculator-form-card .form-select:focus {
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bg-success-subtle {
    background: linear-gradient(135deg, #d4f8e8 0%, #c6f6d5 100%) !important;
}

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

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
}

.testimonial-card {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.8rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #667eea;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

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

.blog-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card .blog-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.blog-card .card-title {
    color: #1a1f36;
    font-weight: 700;
}

.blog-card .btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card .btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Modals */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px 16px 0 0;
}

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

.modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-body h6 {
    color: #1a1f36;
    font-weight: 700;
}

.modal-body {
    border-radius: 0 0 16px 16px;
}

/* Company Info Section */
.company-info-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eef9 100%);
}

.company-info-section ul li i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 0.8rem;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
}

.accordion-button {
    font-weight: 700;
    color: #1a1f36;
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.accordion-body {
    padding: 1.5rem;
    border: 1px solid #e0e6ed;
    border-top: none;
    background-color: #f8f9fc;
    border-radius: 0 0 12px 12px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.contact-form-card {
    background-color: rgba(255, 255, 255, 0.98);
    color: #2c3e50;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #1a1f36;
    font-size: 0.95rem;
}

.contact-form-card .form-control, .contact-form-card .form-select {
    border-color: #e0e6ed;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fc;
}

.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-section i {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #1a1f36 0%, #2c3e50 100%) !important;
    color: rgba(255, 255, 255, 0.85);
    border-top: 3px solid #667eea;
}

.footer-section .site-name-footer {
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* 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: 1.2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.1rem;
    }
    .site-name {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    .site-logo {
        height: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .custom-btn {
        width: 100%;
        padding: 0.9rem 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;
    }
}

/* Compliance Core Slot Styles */
.complianceCoreSlot {
    padding-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.complianceCoreSlot h1 {
    font-size: 1.9em;
    line-height: 1.3;
    margin-top: 1.6em;
    margin-bottom: 0.9em;
    font-weight: 800;
    color: #667eea;
}

.complianceCoreSlot h2 {
    font-size: 1.6em;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    color: #764ba2;
}

.complianceCoreSlot h3 {
    font-size: 1.35em;
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    font-weight: 700;
    color: #1a1f36;
}

.complianceCoreSlot h4 {
    font-size: 1.2em;
    line-height: 1.3;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: #2c3e50;
}

.complianceCoreSlot h5 {
    font-size: 1.1em;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #2c3e50;
}

.complianceCoreSlot p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 1.2em;
    color: #2c3e50;
}

.complianceCoreSlot ul {
    list-style-type: disc;
    padding-left: 1.8em;
    margin-bottom: 1.2em;
    margin-top: 1.2em;
}

.complianceCoreSlot li {
    line-height: 1.7;
    margin-bottom: 0.6em;
    color: #2c3e50;
}

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

footer h5 {
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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;
    }
}