:root {
    --primary: #2E8B57; /* Sea Green - Better visibility */
    --secondary: #228B22; /* Forest Green */
    --accent: #FFFFFF; /* White */
    --white: #FFFFFF; /* White */
    --text-light: #FFFFFF; /* Light text for dark backgrounds */
    --text-dark: #2C3E50; /* Dark text for light backgrounds */
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --max-width: 1200px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --gradient: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    --font-primary: 'Montserrat', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Green Theme */
.site-header {
    background: var(--gradient);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(46, 139, 87, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1001;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn {
    background: var(--text-light);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 22px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* 24/7 Heating & Boiler Experts Banner */
.expert-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 18px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 80px; /* Add this to account for fixed header */
}

.expert-text h2 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Hover effect for interactivity */
.expert-banner:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transition: all 0.3s ease;
}

/* Hero Slider - Fixed */
.hero {
    margin-top: 0; 
    position: relative;
    background: #ffffff;
    padding: 20px 0;
}

.slider {
    position: relative;
    height: auto;
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: #ffffff; /* White background */
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: #ffffff; /* White background */
    flex-direction: column;
    gap: 2rem;
}

.slide-copy {
    flex: 1;
    max-width: 100%;
    color: var(--text-dark); /* Dark text for white background */
    z-index: 2;
    text-align: center;
}

.slide h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary); /* Green color for headings */
}

.slide p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

.slide .btn {
    background: var(--primary);
    color: var(--text-light);
    min-height: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.slide .btn:hover {
    background: var(--secondary);
    color: var(--text-light);
}

/* Real Image Background */
.real-image-bg {
    flex: 1;
    max-width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.real-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.real-image-bg:hover img {
    transform: scale(1.05);
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    min-height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev:hover, .slide-next:hover {
    background: var(--text-light);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Certification Section */
.certification-section {
    background: #228B22;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.certification-content {
    text-align: center;
}

.certification-content h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.certification-content p {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.certification-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.certification-item img {
    height: 60px;
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.certification-item p {
    color: #FFFFFF;
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

/* Services Preview - Consistent Theme */
.main-content {
    padding: 60px 0;
}

.services-preview {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-block {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.service-block:hover {
    transform: translateY(-5px);
}

.service-block:nth-child(even) {
    flex-direction: column;
}

.real-image-preview {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.real-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.real-image-preview:hover img {
    transform: scale(1.05);
}

.copy {
    flex: 1;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.service-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Drop Cap */
.dropcap::first-letter {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    float: left;
    margin-right: 15px;
    line-height: 1;
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 139, 87, 0.1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.service-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.service-card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-dark);
    opacity: 0.8;
    flex-grow: 1;
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
    background: var(--primary);
    color: var(--text-light);
    justify-content: center;
}

.service-card .btn:hover {
    background: var(--secondary);
}

/* News Section */
.news {
    margin: 3rem 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.muted {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--gradient);
    color: var(--text-light);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.site-footer h4 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
}

.site-footer nav a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 100%;
    margin: 1rem auto;
}

.form-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    min-height: 50px;
}

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

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-height: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    justify-content: center;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.9), rgba(34, 139, 34, 0.9)), 
                url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.about-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
    margin-top: 80px;
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.contact-details p {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

.contact-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.emergency-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
    text-align: center;
}

.emergency-icon {
    font-size: 2rem;
}

.emergency-content h4 {
    margin: 0 0 0.5rem 0;
}

.emergency-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.emergency-btn {
    background: white;
    color: #e74c3c;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.service-highlights {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.service-highlights h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .brand {
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--gradient);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 2rem;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .expert-banner {
        padding: 15px 0;
        margin-top: 70px;
    }

    .expert-text h2 {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .slide {
        padding: 30px 15px;
        gap: 1.5rem;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .real-image-bg {
        height: 250px;
    }

    .slide-prev, .slide-next {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .certification-logos {
        gap: 1.5rem;
    }

    .certification-item img {
        height: 50px;
    }

    .main-content {
        padding: 40px 0;
    }

    .service-block {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .real-image-preview {
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-block h3 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-item {
        padding: 1rem;
    }

    .footer-inner {
        gap: 1.5rem;
    }

    .site-footer nav {
        gap: 1rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-hero {
        padding: 100px 0 40px;
    }

    .about-hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.1rem;
    }

    .expert-text h2 {
        font-size: 1.2rem;
    }

    .slide h2 {
        font-size: 1.5rem;
    }

    .real-image-bg {
        height: 200px;
    }

    .certification-item {
        min-width: 120px;
    }

    .certification-item img {
        height: 40px;
    }

    .service-block {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .dropcap::first-letter {
        font-size: 2.5rem;
    }

    .about-hero-content h1 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .info-card,
    .service-highlights,
    .contact-form-container {
        padding: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .emergency-banner {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    .slide {
        flex-direction: row;
        padding: 0 60px;
        text-align: left;
    }

    .slide-copy {
        text-align: left;
        max-width: 500px;
    }

    .service-block {
        flex-direction: row;
        padding: 3rem;
    }

    .service-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .real-image-preview {
        width: 48%;
        height: 320px;
    }

    .copy {
        text-align: left;
    }

    .footer-inner {
        flex-direction: row;
        text-align: left;
    }

    .site-footer nav {
        justify-content: flex-end;
    }

    .contact-layout {
        flex-direction: row;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form-container {
        flex: 1.5;
    }

    .form-row {
        flex-direction: row;
    }

    .emergency-banner {
        flex-direction: row;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .slide h2 {
        font-size: 3rem;
    }

    .real-image-bg {
        max-width: 500px;
        height: 400px;
    }

    .service-block {
        gap: 4rem;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand {
        font-weight: 700;
    }
    
    .btn {
        font-weight: 600;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide {
        transition: none;
    }
    
    .service-block:hover {
        transform: none;
    }
}
