/* ========================================
   Master Plumber Laguna Beach CA - Styles
   Color Scheme: Ocean Blue (B)
   Font Pairing: Montserrat + Lato (5)
   Animation: Scale Up + Color Shift (3)
   Layout: Masonry Services, Alternating Locations, Expandable FAQ
   Hero Style: Full-Width Background (2)
======================================== */

/* CSS Variables - Ocean Blue */
:root {
    --primary: #0369A1;
    --primary-dark: #075985;
    --primary-light: #0EA5E9;
    --accent: #38BDF8;
    --white: #ffffff;
    --off-white: #f0f9ff;
    --light-gray: #e0f2fe;
    --gray: #64748b;
    --dark-gray: #334155;
    --text-dark: #0c4a6e;
    --text-light: #475569;
    --shadow: 0 4px 6px -1px rgba(3, 105, 161, 0.1), 0 2px 4px -1px rgba(3, 105, 161, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(3, 105, 161, 0.1), 0 4px 6px -2px rgba(3, 105, 161, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.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%);
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    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(3, 105, 161, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(3, 105, 161, 0);
    }
}

.mobile-call-btn:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) scale(1.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: var(--shadow);
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.location-info, .availability-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-header {
    padding: 15px 0;
    background: var(--white);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: block;
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section - Full-Width Background Style */
.hero {
    position: relative;
    padding: 180px 0 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    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="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(3, 105, 161, 0.9) 0%, rgba(7, 89, 133, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 18px 36px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Animations - Scale Up + Color Shift */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes colorShift {
    0%, 100% {
        border-color: var(--primary-light);
    }
    50% {
        border-color: var(--accent);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-main-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.about-floating-card .years {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.about-floating-card span:last-child {
    font-size: 14px;
    font-weight: 500;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* Services Section - Masonry Layout */
.services {
    background: var(--off-white);
}

.services-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.service-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.service-card-wide {
    grid-column: span 2;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.reason-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.reason-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.reason-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Locations Section - Alternating Layout */
.locations {
    background: var(--off-white);
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-card-left {
    grid-template-areas: "image content";
}

.location-card-right {
    grid-template-areas: "content image";
}

.location-card-left .location-image {
    grid-area: image;
}

.location-card-left .location-content {
    grid-area: content;
}

.location-card-right .location-image {
    grid-area: image;
}

.location-card-right .location-content {
    grid-area: content;
}

.location-image {
    height: 250px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-card:hover .location-image img {
    transform: scale(1.1);
}

.location-content {
    padding: 30px;
}

.location-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.location-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Common Problems */
.common-problems {
    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: var(--radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.problem-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.problem-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--accent);
    color: var(--white);
}

/* FAQ Section - Expandable Cards */
.faq {
    background: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-dark);
    background: var(--white);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    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 25px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-about p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .service-card-wide {
        grid-column: span 2;
    }
    
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .call-btn {
        display: none;
    }
    
    .hero {
        padding: 150px 0 220px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
    }
    
    .about-floating-card {
        right: 20px;
        bottom: 20px;
    }
    
    .services-masonry {
        grid-template-columns: 1fr;
    }
    
    .service-card-large,
    .service-card-wide {
        grid-column: span 1;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .location-card,
    .location-card-left,
    .location-card-right {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "content";
    }
    
    .location-image {
        height: 200px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}
