/* ============================================
   Pro Anaheim Plumbing Services - Styles.css
   Color Scheme F: Slate Professional
   Animation: Slide In + Border Highlight
   Layout: Horizontal scroll services, list locations, tabbed FAQ
   ============================================ */

/* CSS Variables - Slate Professional */
:root {
    --primary: #475569;
    --primary-dark: #334155;
    --primary-light: #64748B;
    --accent: #94A3B8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --background: #f8fafc;
    --background-alt: #f1f5f9;
    --border: #e2e8f0;
    --shadow: rgba(71, 85, 105, 0.1);
    --shadow-lg: rgba(71, 85, 105, 0.15);
    
    /* Typography - Font Pairing 6 */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 80px 0;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

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

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--background-alt);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .location-info,
.top-bar .availability {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar svg {
    opacity: 0.8;
}

.navbar {
    padding: 16px 0;
    background: var(--white);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section - Illustration Hero */
.hero {
    padding: 160px 0 100px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero-illustration .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-illustration .shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.05;
}

.hero-illustration .shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.hero-illustration .shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.hero-illustration .shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--background-alt);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    margin-bottom: 40px;
}

.hero-response {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

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

.hero-illustration-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    color: var(--primary);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    font-weight: 600;
    color: var(--text-dark);
}

.floating-card svg {
    color: var(--primary);
}

.floating-card.card-1 {
    top: 20%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    bottom: 20%;
    left: 10%;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

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

.about .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-text {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--background);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}

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

/* Services Section - Horizontal Scroll */
.services {
    padding: var(--section-padding);
    background: var(--background-alt);
    overflow: hidden;
}

.services-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.services-scroll {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    min-width: max-content;
}

.service-card {
    width: 320px;
    padding: 32px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.service-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose {
    padding: var(--section-padding);
    background: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-choose-card {
    padding: 32px;
    background: var(--background);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.why-choose-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.card-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.why-choose-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

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

/* Locations Section - List Style */
.locations {
    padding: var(--section-padding);
    background: var(--background-alt);
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.location-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--shadow);
}

.location-item.reverse {
    direction: rtl;
}

.location-item.reverse > * {
    direction: ltr;
}

.location-image {
    border-radius: 12px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-item:hover .location-image img {
    transform: scale(1.05);
}

.location-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.location-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.location-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.location-link:hover {
    gap: 12px;
}

/* Common Problems */
.common-problems {
    padding: var(--section-padding);
    background: var(--white);
}

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

.problem-card {
    padding: 32px;
    background: var(--background);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

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

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.cta .btn-primary:hover {
    background: var(--background-alt);
    border-color: var(--background-alt);
}

/* FAQ Section - Tabbed */
.faq {
    padding: var(--section-padding);
    background: var(--background-alt);
}

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--white);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.faq-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.faq-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

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

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

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

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

.contact-info .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-text a {
    color: var(--primary);
    font-weight: 600;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--white);
    color: var(--primary);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--white);
}

.footer-phone:hover {
    color: var(--accent);
}

.footer-links h4 {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

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

.copyright {
    font-size: 14px;
    margin-bottom: 12px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.6;
}

/* Mobile Call Button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    z-index: 999;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px var(--shadow-lg); }
    50% { box-shadow: 0 10px 40px rgba(71, 85, 105, 0.4); }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration-area {
        display: none;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px var(--shadow);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .location-item {
        grid-template-columns: 1fr;
    }
    
    .location-item.reverse {
        direction: ltr;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .mobile-call-btn {
        display: flex;
    }
    
    .top-bar {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card {
        width: 280px;
    }
    
    .btn-call {
        display: none;
    }
}
