/* ========================================
   Pro Plumber Costa Mesa CA - Styles
   Color Scheme: Royal Blue (Variation D)
   Font Pairing: Montserrat (headings), Lato (body)
   Animation: Fade In Up + Lift Shadow
   Layout: 3-column services, 3-column locations, accordion FAQ
   ======================================== */

/* CSS Variables - Royal Blue Theme */
:root {
    --primary: #1D4ED8;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #60A5FA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(29, 78, 216, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile Call Button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--primary);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(29, 78, 216, 0);
    }
}

.mobile-call-btn:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateX(-50%) translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-white);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: var(--primary);
    padding: 8px 0;
    color: var(--text-white);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.location-info svg {
    width: 16px;
    height: 16px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.main-header {
    padding: 15px 0;
    background: var(--bg-white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 15px;
}

.call-btn:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section - Card-Based Hero */
.hero {
    position: relative;
    padding: 150px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85) 0%, rgba(30, 64, 175, 0.75) 50%, rgba(29, 78, 216, 0.85) 100%);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 50px;
    max-width: 700px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-card-content {
    width: 100%;
}

.hero-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-note {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    background: var(--bg-gray);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 0.8s ease forwards;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-intro {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.about-image {
    position: relative;
    animation: fadeInRight 0.8s ease forwards;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 16px;
    z-index: -1;
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon svg {
    color: var(--text-white);
}

.service-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: var(--bg-white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.reason-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.reason-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.reason-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Locations Section */
.locations {
    padding: 100px 0;
    background: var(--bg-light);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.location-image {
    height: 200px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-card:hover .location-image img {
    transform: scale(1.05);
}

.location-content {
    padding: 25px;
}

.location-name {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.location-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Common Problems Section */
.common-problems {
    padding: 100px 0;
    background: var(--bg-white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-gray);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-light);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon svg {
    color: var(--primary);
}

.problem-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.problem-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    background: var(--text-white);
    color: var(--primary);
}

.btn-large:hover {
    background: var(--bg-gray);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-note {
    font-size: 15px;
    opacity: 0.9;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 25px 25px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--text-white);
}

.contact-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-value:hover {
    color: var(--primary);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    display: block;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-content {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 55px;
    height: 55px;
    border-radius: var(--border-radius);
}

.footer-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.footer-phone:hover {
    color: var(--accent);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-list a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.copyright {
    font-size: 15px;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .services-grid,
    .locations-grid,
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-xl);
        padding: 80px 30px 30px;
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero {
        padding: 130px 0 60px;
        min-height: auto;
    }

    .hero-card {
        padding: 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image::before {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid,
    .locations-grid,
    .problems-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 28px;
    }

    .header-actions .call-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-card {
        padding: 25px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 24px;
    }

    .service-card,
    .reason-card,
    .problem-card {
        padding: 25px;
    }
}
