/* Nova Volt Solar - Manchester Solar Website Stylesheet
   Colour scheme based on Manchester City FC sky blue */

:root {
    --primary: #6CABDD;        /* Manchester City sky blue */
    --primary-dark: #1C2C5B;   /* Manchester City navy */
    --primary-light: #A8D0E6;  /* Lighter sky blue */
    --accent: #F4B400;         /* Solar gold accent */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --grey-light: #E5E7EB;
    --grey-medium: #9CA3AF;
    --grey-dark: #374151;
    --black: #111827;
    --success: #10B981;
    --shadow: 0 4px 20px rgba(28, 44, 91, 0.1);
    --shadow-hover: 0 8px 30px rgba(28, 44, 91, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--grey-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-right span {
    color: var(--white);
}

.top-contact-link {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0 !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.top-contact-link:hover {
    background: var(--white);
    color: var(--primary-dark) !important;
}

@media (max-width: 768px) {
    .top-bar-right {
        gap: 10px;
    }
    .top-contact-link {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.25rem;
    line-height: 1.1;
}

.logo-text span {
    color: var(--primary);
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav a {
    color: var(--primary-dark);
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 18px;
    border-bottom: 1px solid var(--grey-light);
    border-radius: 0;
    font-size: 0.9rem;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.btn-quote {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 12px 20px !important;
    border-radius: 6px;
    font-weight: 700 !important;
}

.btn-quote:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 5px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="15" fill="%23F4B400" opacity="0.15"/><circle cx="20" cy="80" r="20" fill="%23F4B400" opacity="0.1"/></svg>');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Sections */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--grey-medium);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Stats */
.stats {
    background: var(--off-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--grey-dark);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--grey-light);
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--grey-dark);
    margin-bottom: 18px;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
}

/* Content sections */
.content-section {
    padding: 70px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.review-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--grey-dark);
}

.review-author {
    font-weight: 700;
    color: var(--primary-dark);
}

.review-location {
    color: var(--grey-medium);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 25px;
    background: var(--off-white);
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 20px 25px;
    border-top: 1px solid var(--grey-light);
}

/* Locations grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.location-link {
    background: var(--off-white);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--grey-light);
}

.location-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
}

.breadcrumb {
    margin-top: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent);
}

/* Calculator */
.calculator {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.calculator-result {
    background: var(--primary-light);
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: center;
}

.calculator-result h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--grey-light);
}

tr:nth-child(even) td {
    background: var(--off-white);
}

/* Map container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Article content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content h2 {
    margin-top: 2rem;
}

.article-content h3 {
    margin-top: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 25px;
    background: var(--off-white);
    margin: 20px 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .reviews-grid,
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        align-items: stretch;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 12px 15px;
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        max-height: none;
        background: var(--off-white);
        margin-top: 5px;
    }

    .mobile-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid,
    .reviews-grid,
    .image-gallery,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    section {
        padding: 50px 0;
    }
}
