/* 
* Styles for The Plumber Website
* 
* Color Palette:
* - Deep slate text: #0B1220
* - Accent/brand: #1ABC9C  
* - Muted text: #475569
* - Light background: #F5F7FA
* - Card/bg: #FFFFFF
*
* Fonts: Montserrat (headings), Open Sans (body)
* 
* Mobile-first responsive design with accessibility features
* Edit colors, spacing, and content as needed
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #0B1220;
    background-color: #F5F7FA;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #475569;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1ABC9C;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header and Navigation */
.header {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(11, 18, 32, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0B1220;
}

.logo-icon {
    color: #1ABC9C;
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(26, 188, 156, 0.3));
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #0B1220;
    text-shadow: 0 1px 2px rgba(11, 18, 32, 0.1);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #0B1220;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #1ABC9C;
}

.cta-button {
    background: #1ABC9C;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
}

.cta-button:hover,
.cta-button:focus {
    background: #16a085;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #1ABC9C;
    outline-offset: 2px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #0B1220;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(11, 18, 32, 0.1);
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #1ABC9C;
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    background: #0B1220;
    color: white;
    border-color: #0B1220;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #1a202c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 18, 32, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F5F7FA 0%, #e8f4f8 100%);
    padding: 1.5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-truck {
    text-align: center;
    margin-bottom: 1rem;
}

.truck-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.truck-image:hover {
    transform: scale(1.05);
}

.hero-title {
    color: #0B1220;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: #FFFFFF;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(11, 18, 32, 0.1);
}

/* Section Styles */
.section-title {
    text-align: center;
    color: #0B1220;
    margin-bottom: 3rem;
}

section {
    padding: 2.5rem 0;
}

.services {
    background: #FFFFFF;
}

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

.service-card {
    background: #F5F7FA;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(11, 18, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(11, 18, 32, 0.12);
}

.service-card h3 {
    color: #0B1220;
    margin-bottom: 1rem;
}

.service-card p {
    color: #475569;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.02);
}

/* About Section */
.about {
    background: #F5F7FA;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.about-logo {
    max-width: 200px;
    height: auto;
    flex-shrink: 0;
}

.about-title {
    margin-bottom: 0;
    text-align: left;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.business-card-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
}

.business-card {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(11, 18, 32, 0.15);
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: scale(1.02);
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about-title {
        text-align: center;
    }
    
    .about-logo {
        max-width: 150px;
    }
}

/* Service Area */
.service-area {
    background: #FFFFFF;
}

.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.area-pill {
    background: #F5F7FA;
    color: #0B1220;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Testimonials */
.testimonials {
    background: #F5F7FA;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.testimonial {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(11, 18, 32, 0.08);
    text-align: center;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    color: #0B1220;
    margin-bottom: 1rem;
}

.testimonial cite {
    color: #475569;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: #FFFFFF;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item h3 {
    color: #0B1220;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #1ABC9C;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover,
.contact-link:focus {
    text-decoration: underline;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phone-label {
    font-weight: 600;
    color: #0B1220;
    min-width: fit-content;
}

/* Contact Form */
.contact-form {
    background: #F5F7FA;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0B1220;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1ABC9C;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
}

/* Address styling */
.contact-address {
    font-style: normal;
    color: #475569;
    line-height: 1.6;
}

/* Map Container */
.map-container {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 18, 32, 0.1);
}

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

/* Responsive adjustments for map */
@media (min-width: 768px) {
    .map-container iframe {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .map-container iframe {
        height: 450px;
    }
}

/* Footer */
.footer {
    background: #0B1220;
    color: #FFFFFF;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nap {
    color: #FFFFFF;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #1ABC9C;
}

/* Privacy and Terms placeholder sections */
#privacy, #terms {
    min-height: 200px;
    background: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    /* Typography scaling */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    /* Navigation */
    .nav-menu {
        display: flex;
    }
    
    .cta-button {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials grid */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Contact layout */
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    /* Typography scaling */
    h1 { font-size: 3.5rem; }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Contact info layout */
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #1ABC9C;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}