/* ========================================
   Emergency Plumbing Company - Styles
   Color Scheme: Teal Professional (#0D9488)
   Font Pairing: Poppins + Open Sans
   Animation: Fade In Up + Lift Shadow
   Layout: 3-col services, 3-col locations, accordion FAQ
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0D9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #134e4a;
    --accent-color: #2dd4bf;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --gray: #64748b;
    --dark-gray: #334155;
    --black: #1e293b;
    --text-color: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION - Multi-Image Hero Style
   ======================================== */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%230D9488" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-large {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.cta-button-large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.secondary-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-card:hover img {
    transform: scale(1.05);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    padding-right: 20px;
}

.about-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-gray);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   SERVICES SECTION - 9 Services, 3 Columns
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
    padding: 100px 0;
    background: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-choose-card {
    background: var(--off-white);
    padding: 35px;
    border-radius: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-choose-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: 10px;
}

.why-choose-card h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 12px;
}

.why-choose-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   LOCATIONS SECTION - 10 Locations, 3 Columns
   ======================================== */
.locations {
    padding: 100px 0;
    background: var(--off-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-info {
    padding: 25px;
}

.location-info h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.location-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.location-call {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.location-call:hover {
    background: var(--primary-dark);
}

/* ========================================
   COMMON PROBLEMS SECTION
   ======================================== */
.common-problems {
    padding: 100px 0;
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    border-bottom: 3px solid var(--primary-color);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-card h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   FAQ SECTION - Accordion Style
   ======================================== */
.faq {
    padding: 100px 0;
    background: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    transition: var(--transition);
}

.faq-question:hover {
    background: #f0fdfa;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info a {
    color: var(--accent-color);
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ========================================
   ANIMATION CLASSES - Fade In Up + Lift Shadow
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.visible:hover {
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .why-choose-grid,
    .locations-grid,
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .cta-button {
        order: 2;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-image-card {
        aspect-ratio: 16/9;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .why-choose-grid,
    .locations-grid,
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-button-large,
    .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .service-card,
    .why-choose-card,
    .problem-card,
    .location-card {
        padding: 25px;
    }
}
