/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Professional UK Solar Theme */
    --primary-navy: #0A2472;
    --primary-blue: #1A3B8A;
    --accent-sky: #4A9EFF;
    --accent-light: #E6F0FF;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --gray-light: #E2E8F0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* ========== LOADER ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--accent-sky);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    border: 1px solid var(--gray-light);
}

@media (min-width: 768px) {
    .cookie-popup {
        left: 20px;
        right: auto;
    }
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-text {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
    }
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: var(--primary-navy);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--primary-blue);
}

.cookie-btn.reject {
    background: var(--gray-light);
    color: var(--text-dark);
}

.cookie-btn.reject:hover {
    background: #d1d9e6;
}

/* ========== AD BAR ========== */
.ad-bar {
    background: var(--primary-navy);
    color: white;
    padding: 6px 0;
    font-size: 0.75rem;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.ad-bar.hidden {
    transform: translateY(-100%);
}

.ad-bar i {
    margin-right: 5px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled,
.header.full-top {
    top: 0;
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-decoration: none;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-sky);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-navy);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    padding: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.mobile-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent-sky);
    padding-left: 5px;
}

.mobile-cta {
    margin-top: 30px;
    display: block;
    text-align: center;
}

/* ========== HERO SECTION ========== */
.hero {
    padding-top: 120px;
    min-height: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ff 100%);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-sky);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

.text-accent {
    color: var(--accent-sky);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

@media (max-width: 992px) {
    .hero-subtitle {
        max-width: 100%;
    }
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.hero-guarantee i {
    color: var(--accent-sky);
}

.hero-image {
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ========== TRUST BADGES ========== */
.trust-badges {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-light);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.badge-item i {
    color: var(--accent-sky);
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .badge-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-image {
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features {
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.about-feature i {
    color: var(--accent-sky);
}

/* ========== SOLUTIONS SECTION ========== */
.solutions {
    background: var(--bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-sky);
    font-size: 1.5rem;
}

.solution-card h3 {
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.solution-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== WHY SOLAR SECTION ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--accent-sky);
    font-size: 1.3rem;
}

.benefit-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-sky);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.3rem;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.step p {
    color: var(--text-light);
    max-width: 250px;
    margin: 0 auto;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-navy), #1A3B8A);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cta-banner h2 {
        font-size: 1.5rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary-navy);
}

.cta-banner .btn-primary:hover {
    background: var(--bg-light);
}

/* ========== CONTACT SECTION ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-info i {
    width: 25px;
    color: var(--accent-sky);
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-sky);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-navy);
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-sky);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
}

/* ========== FAQ SECTION ========== */
.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-navy);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin: 0;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary-navy);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
    padding: 0 25px 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== OWNER SIGNATURE ========== */
.owner-title {
    font-size: 0.85rem;
    color: var(--accent-sky);
    font-weight: 600;
    margin-top: -5px;
    margin-bottom: 15px;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: white;
    /* Changed to white for footer visibility */
    margin: 15px 0 5px 0;
    opacity: 0.9;
    user-select: none;
    line-height: 1.2;
}

.footer-email a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-email a:hover {
    color: white !important;
    padding-left: 0 !important;
    /* Prevent padding jump in brand section */
}