/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --secondary-color: #dc2626;
    --text-dark: #1e293b;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --dark-bg: #374151;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
}

.logo {
    display: block;
    flex-shrink: 0;
    margin-right: 2rem;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav.main-nav {
    display: flex;
    flex: 0 0 auto;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav.main-nav ul li {
    margin: 0;
    padding: 0;
}

nav.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.cta-button.active {
    background-color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('../images/hero-plumber.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 500px;
}

/* Dark overlay for text readability - subtle */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 50%;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Areas Section */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.area-item {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 400;
    color: var(--text-dark);
    font-size: 1rem;
}

.area-item::after {
    content: "•";
    margin-left: 1.5rem;
    color: var(--primary-color);
}

.area-item:last-child::after {
    content: "";
    margin-left: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 280px;
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: #374151;
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Fixes - Desktop stays the same! */
    .header-container {
        padding: 0.6rem 1rem;
    }
    
    .logo {
        margin-right: 0.5rem;
    }
    
    .logo a {
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .menu-toggle {
        display: block;
        padding: 0.5rem;
        font-size: 1.3rem;
    }
    
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.main-nav.active {
        display: block;
    }
    
    nav.main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    nav.main-nav ul li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav.main-nav ul li a {
        display: block;
        width: 100%;
    }
    
    nav.cta-nav {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Image Slider */
.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height instead of padding-top */
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-image.active {
    opacity: 1;
    transform: translateX(0);
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Navigation Arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 350px; /* Smaller on mobile */
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 280px; /* Even smaller on very small screens */
    }
    
    /* Extra small phone header fixes - more compact */
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .menu-toggle {
        font-size: 1.2rem;
    }
}

/* Logo with Icon and Text */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img.logo-icon {
    height: 50px;
    width: auto;
}

.logo img.logo-text {
    height: 30px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img.logo-icon {
        height: 40px;
    }
    
    .logo img.logo-text {
        height: 40px;
    }
}