/* Aqua Plumbing & Heating Fontana CA - Design 134 */
/* F-Slate (#475569), 8-Illustration, 2-Outfit/Inter, 2-Slide In, 4-Horizontal scroll */

:root {
    --primary: #475569;
    --primary-dark: #334155;
    --primary-light: #64748b;
    --secondary: #94a3b8;
    --accent: #0ea5e9;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo img {
    height: 48px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.header-contact {
    text-align: right;
}

.phone {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
}

.hours {
    font-size: 13px;
    color: var(--text-light);
}

.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: 24px;
    height: 2px;
    background: var(--text);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    overflow: hidden;
}

.hero-illustration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    color: var(--text);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease 0.2s forwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease 0.4s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    background: var(--primary);
    color: white;
    padding: 20px 48px;
    font-size: 18px;
}

.btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-note {
    font-size: 14px;
    color: var(--text-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--text);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--background);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background);
}

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

.about-content h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text);
}

.about-content p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.feature-text {
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Problems Section */
.problems {
    padding: 100px 0;
    background: var(--surface);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--background);
    padding: 32px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
}

.problem-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.problem-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Locations Section */
.locations {
    padding: 100px 0;
    background: var(--background);
}

.locations-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}

.locations-scroll::-webkit-scrollbar {
    height: 8px;
}

.locations-scroll::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.locations-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.location-card {
    flex: 0 0 300px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.location-card h3 {
    font-size: 20px;
    padding: 20px 20px 8px;
    color: var(--text);
}

.location-card p {
    font-size: 14px;
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* FAQs Section */
.faqs {
    padding: 100px 0;
    background: var(--surface);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-30px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.cta-item {
    text-align: left;
}

.cta-item strong {
    display: block;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.cta-item span,
.cta-item a {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-bottom: 20px;
}

.footer-disclaimer p {
    font-size: 12px;
    opacity: 0.6;
    text-align: center;
    line-height: 1.6;
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-grid,
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .about-features {
        flex-direction: column;
        gap: 24px;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .cta-item {
        text-align: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .header-contact {
        display: none;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-header h2,
    .about-content h2,
    .cta-content h2 {
        font-size: 26px;
    }
}