/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #e0f0ff;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --container-width: 100%; /* full width site */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

/* Header */
header {
    background-color: #f8f9fa;
    box-shadow: none; /* avoid full-width shadow contour */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0; /* align with main container */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* allow centering nav absolutely */
    padding: 12px 20px; /* inner spacing */
    background-color: #003366;
    max-width: 100%; /* span full width */
    border-radius: 0; /* flush edges */
    margin: 0; /* no outer margin */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* localized shadow */
}

.left-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    margin-left: 0; /* align with container */
}

.right-section {
    display: flex;
    gap: 40px;
    text-align: right;
    color: #ffffff;
}

.header-contact, .header-hours {
    font-size: 0.8rem;
}

.header-contact h3, .header-hours h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.header-contact p, .header-hours p {
    margin-bottom: 4px;
    line-height: 1.4;
}

.header-contact i {
    margin-right: 5px;
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    color: var(--secondary-color);
}

.logo-img {
    height: 60px;
    margin-right: 10px;
    vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
}

/* Center nav between logo and right section */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Hide mobile toggle by default (shown in mobile via injected CSS) */
.mobile-nav-toggle { display: none; }

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 12px;
}

nav ul li a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

/* Language switch */
.lang-switch { display: flex; gap: 8px; align-items: center; margin-left: 16px; }
.lang-switch a { color: #fff; font-weight: 600; opacity: 0.7; border: 1px solid rgba(255,255,255,0.4); padding: 4px 8px; border-radius: 4px; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; border-color: #fff; }

/* Hero Section */
.hero {
    color: var(--light-text);
    padding: 0; /* remove gap above hero */
    text-align: center;
    position: relative;
    background-color: #f8f9fa;
    margin-top: 0;
}

.hero .container {
    position: relative;
    background: url('images/Banner.png') center/cover no-repeat;
    border-radius: 0; /* full width hero edges */
    overflow: hidden;
}

.hero .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Make Book Now transparent on hero */
.hero .btn-primary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}
.hero .btn-primary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Trust strip under hero */
.trust-strip {
    background-color: #fff;
    padding: 20px 0;
}
.trust-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    list-style: none;
}
.trust-list li {
    color: #2a2a2a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-list i { color: var(--secondary-color); }

/* Lead (mini) form */
.lead-strip { background: #fff; padding: 15px 0 5px; }
.lead-form { width: 100%; }
.lead-row { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr auto; gap: 10px; align-items: center; }
.lead-input { 
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px;
    font-size: 0.95rem; min-height: 42px;
}
.lead-submit { height: 42px; }

@media (max-width: 900px) {
    .lead-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .lead-row { grid-template-columns: 1fr; }
}

/* About slideshow sizing */
.slide-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center; /* center content in columns */
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* ensure image centered */
}

/* Responsive columns for services grid */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.services-cta {
    text-align: center;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
    background-color: #fff;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* Responsive columns for brands grid */
@media (max-width: 1024px) {
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center; /* center items in their columns */
}

.feature {
    text-align: center;
    padding: 20px;
}

/* Responsive columns for Why Choose Us */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* CTA Section (full width) */
.cta-section {
    background-color: #003366;
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

.cta-section .container { padding: 0 20px; }

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--light-text);
}

.cta-section .btn:hover {
    background-color: transparent;
    color: var(--light-text);
}

/* Footer (full width) */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px 0 20px;
}

footer .container { padding: 0 20px; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center;
    text-align: center;
}

.footer-section h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Responsive footer columns */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Map placeholder */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.map-box {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    background: repeating-linear-gradient(45deg, #e9eff5, #e9eff5 10px, #f6f9fc 10px, #f6f9fc 20px);
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: #3b4a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.map-note {
    color: #555;
    font-size: 0.95rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .right-section {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .left-section {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        gap: 15px;
    }
    /* Reset nav to normal flow on mobile */
    nav {
        position: static;
        transform: none;
        width: 100%;
    }
    
    .right-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-contact, .header-hours {
        text-align: center;
    }
    
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    /* Services page responsive styles */
    .page-header {
        padding: 30px 0 15px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .services-section {
        padding: 15px 0 60px 0;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .service-item-content {
        order: 2;
    }
    
    .service-item-image {
        order: 1;
        justify-self: center;
    }
    
    .services-intro p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Individual PNG image sizes for mobile */
    .service-item-image img[src="images/Refrigerator Repair.png"],
    .service-item-image img[src="images/Washer Repair.png"],
    .service-item-image img[src="images/Dryer Repair.png"],
    .service-item-image img[src="images/Dishwasher Repair.png"],
    .service-item-image img[src="images/Oven Repair.png"],
    .service-item-image img[src="images/Microwave Repair.png"] {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .services-intro p {
        font-size: 0.95rem;
    }
    
    .service-item-content h3 {
        font-size: 1.5rem;
    }
    
    /* Smaller images for very small screens */
    .service-item-image img[src="images/Refrigerator Repair.png"],
    .service-item-image img[src="images/Washer Repair.png"],
    .service-item-image img[src="images/Dryer Repair.png"],
    .service-item-image img[src="images/Dishwasher Repair.png"],
    .service-item-image img[src="images/Oven Repair.png"],
    .service-item-image img[src="images/Microwave Repair.png"] {
        width: 70%;
        max-width: 250px;
    }
}

/* About Page Styles */
.about-section {
    padding: 80px 0;
}

.mission-section {
    padding: 80px 0;
}

.team-section {
    padding: 80px 0;
}

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

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 300px;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Services Page Styles */
.page-header {
    padding: 40px 0 20px 0;
    background-color: var(--light-bg);
    text-align: center;
}

/* Hide numeric badges in Our Service Process */
.step-number { display: none; }

/* Our Service Process layout and spacing */
.service-process { padding: 60px 0; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; /* space between Contact Us, Diagnosis, etc. */
    align-items: start;
    position: relative;
}
.process-step { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin: 0; }

/* Animated timeline line */
.process-steps::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Staggered reveal of steps */
.process-step { opacity: 0; transform: translateY(14px); }
.service-process.in-view .process-steps::before { animation: process-line 1200ms ease-out forwards; }
.service-process.in-view .process-step { animation: process-reveal 520ms ease-out forwards; }
.service-process.in-view .process-step:nth-child(1) { animation-delay: 120ms; }
.service-process.in-view .process-step:nth-child(2) { animation-delay: 260ms; }
.service-process.in-view .process-step:nth-child(3) { animation-delay: 400ms; }
.service-process.in-view .process-step:nth-child(4) { animation-delay: 540ms; }
.service-process.in-view .process-step:nth-child(5) { animation-delay: 680ms; }
.service-process.in-view .process-step:nth-child(6) { animation-delay: 820ms; }

@keyframes process-line { from { width: 0; } to { width: 100%; } }
@keyframes process-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.page-header h1 {
    margin-bottom: 0;
    font-size: 2.5rem;
}

.services-section {
    padding: 20px 0 80px 0;
}

.services-intro {
    margin-bottom: 40px;
}

.services-intro p {
    margin-bottom: 0;
    font-size: 1.1rem;
    text-align: justify; /* align to both edges */
    text-justify: inter-word;
    max-width: none;
    width: 100%;
    margin: 0;
}

.service-item {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 220px 1fr; /* fixed image column for consistency */
    gap: 16px; /* tight space between image and text */
    align-items: start; /* align items to the top of the row */
    justify-items: start; /* prevent items from centering in their cells */
}

.service-item:nth-child(even) {
    grid-template-columns: 1fr 220px; /* mirrored layout */
}

.service-item-image { display: flex; width: 220px; align-self: start; justify-content: flex-end; }
.service-item:nth-child(odd) .service-item-image { justify-content: flex-end; }
.service-item:nth-child(even) .service-item-image { justify-content: flex-start; }
.service-item-image img {
    width: 220px !important; /* fixed size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item-content { justify-self: start; }

/* Individual PNG image sizes for services page */
/* (Deprecated) individual PNG sizing removed in favor of consistent layout */

/* Services layout override: use flex for robust alignment */
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-direction: row-reverse; /* image right, text left by default */
}
.service-item:nth-child(even) {
    flex-direction: row-reverse; /* for our markup (content first), this puts image left */
}
.service-item-image { flex: 0 0 220px; width: 220px; }
.service-item-image img { width: 220px !important; height: auto; }
.service-item-content { flex: 1 1 auto; }

/* Card view for Services: each service as a separate block */
.services-section.card-view .service-item {
    flex-direction: row;
    align-items: stretch; /* equal heights for image/text cards */
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    margin-bottom: 0; /* spacing handled by grid gap */
    height: 100%;
}
.services-section.card-view .service-item-image {
    flex: 0 0 320px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.services-section.card-view .service-item-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.services-section.card-view .service-item-image img {
    width: auto !important;
    height: auto;
    max-width: 100%;
    max-height: 100%; /* preserve aspect ratio within equal-height card */
    border-radius: 8px;
}
.services-section.card-view .service-item-image img[alt="Dishwasher Repair"] {
    width: 100% !important;
    margin: 0;
}
@media (max-width: 900px) {
    .services-section.card-view .service-item-image img[alt="Dishwasher Repair"] { width: 100% !important; }
}
.services-section.card-view .service-item-content { flex: 1 1 auto; width: auto; max-width: none; }
.services-section.card-view .service-item-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.services-section.card-view .service-item-content:hover {
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.services-section.card-view .service-item-content h3 { margin-top: 0; }
.services-section.card-view .service-item:first-of-type { gap: 16px; flex-direction: row; }
.services-section.card-view .service-item:nth-of-type(2) { flex-direction: row; }

/* Enlarge Refrigerator Repair image (first card) 2x */
.services-section.card-view .service-item:first-of-type .service-item-image {
    flex: 0 0 960px !important;
    width: 960px !important;
    max-width: 100%;
}
@media (max-width: 1400px) {
    .services-section.card-view .service-item:first-of-type .service-item-image {
        flex-basis: 640px; width: 640px;
    }
}
@media (max-width: 900px) {
    .services-section.card-view .service-item:first-of-type .service-item-image {
        flex-basis: 100%; width: 100%;
    }
}

/* Two-column grid on desktop, single column on tablet/mobile */
.services-section.card-view .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}
.services-section.card-view .services-intro { grid-column: 1 / -1; margin-bottom: 0; }

@media (max-width: 900px) {
    .services-section.card-view .service-item { flex-direction: column; }
    .services-section.card-view .service-item-image { flex: initial; width: 100%; }
}

/* Text-only variant: hide images and make content full width */
.services-section.text-only .service-item { flex-direction: column; align-items: flex-start; }
.services-section.text-only .service-item-image { display: none !important; }
.services-section.text-only .service-item-content { width: 100%; }

/* Services Gallery */
.services-gallery { padding: 40px 0 80px 0; background-color: var(--light-bg); }
.services-gallery .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.services-gallery .gallery-item { background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.06); padding: 16px; text-align: center; }
.services-gallery .gallery-item img { width: 100%; height: auto; border-radius: 8px; }
.services-gallery .gallery-item figcaption { margin-top: 8px; font-weight: 600; }
@media (max-width: 1024px) { .services-gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-gallery .gallery-grid { grid-template-columns: 1fr; } }

/* Enforce alternating layout (1st image left, 2nd image right, etc.) */
.services-section.card-view .service-item:nth-of-type(odd) .service-item-image { order: 0; }
.services-section.card-view .service-item:nth-of-type(odd) .service-item-content { order: 1; }
.services-section.card-view .service-item:nth-of-type(even) .service-item-image { order: 1; }
.services-section.card-view .service-item:nth-of-type(even) .service-item-content { order: 0; }

@media (max-width: 900px) {
    /* On mobile stack image above text for all */
    .services-section.card-view .service-item .service-item-image { order: 0; }
    .services-section.card-view .service-item .service-item-content { order: 1; }
}

/* Refrigerator Repair (first service item) — text 1/3 width, large image pressed to text */
.services-section .service-item:first-of-type { gap: 8px; }
.services-section .service-item:first-of-type .service-item-content {
    flex: 0 0 33%;
    max-width: 33%;
}
.services-section .service-item:first-of-type .service-item-image {
    flex: 0 0 660px; /* ~3x of previous 220px */
    width: 660px;
    max-width: calc(100% - 33% - 8px);
}
.services-section .service-item:first-of-type .service-item-image img {
    width: 100% !important;
    height: auto;
}

@media (max-width: 1024px) {
    .services-section .service-item:first-of-type {
        gap: 12px;
    }
    .services-section .service-item:first-of-type .service-item-content {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .services-section .service-item:first-of-type .service-item-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

.service-item-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* Booking Page Styles */
.booking-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.booking-container {
    max-width: 800px;
    margin: 0; /* align booking form to the left within the container */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

.booking-form button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
}

.booking-form button:hover {
    background-color: var(--secondary-color);
}

/* Testimonials Page Styles */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: var(--accent-color);
    font-family: Georgia, serif;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 5px;
}

.testimonial-author-info p {
    color: #777;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.contact-info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-info-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
}

/* FAQ modern styles */
.faq-section { padding: 60px 0; background: var(--light-bg); }
.faq-section .container { max-width: 900px; }
.faq-container { display: grid; gap: 16px; }
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}
.faq-question h3 { margin: 0; font-size: 1.15rem; }
.faq-question i { transition: transform 0.25s ease; color: var(--secondary-color); }
.faq-answer {
    padding: 0 20px 0 20px;
    border-top: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer p { margin: 16px 0 20px 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-item.open .faq-answer { max-height: 500px; }

/* Fix for Font Awesome icons */
.fas.fa-refrigerator:before {
    content: "\f7e4"; /* Using snowflake icon as substitute */
}

.fas.fa-washing-machine:before {
    content: "\f898"; /* Using water icon as substitute */
}

.fas.fa-dryer:before {
    content: "\f72e"; /* Using temperature high icon as substitute */
}

.fas.fa-dishwasher:before {
    content: "\f2e7"; /* Using shower icon as substitute */
}

.fas.fa-oven:before {
    content: "\f06d"; /* Using fire icon as substitute */
}

.fas.fa-microwave:before {
    content: "\f7b6"; /* Using bolt icon as substitute */
}
