/* ========================================
   Best Plumbers Westminster - Styles
   Color Scheme: F (Slate Professional)
   #475569 primary, #334155 dark, #64748B light, #94A3B8 accent
   Font Pairing: Poppins (headings), Open Sans (body)
   Animation: Scale Up + Color Shift
   Layout: Masonry services, alternating locations, expandable FAQ
   ======================================== */

/* CSS Variables - Slate Professional */
:root {
    --primary: #475569;
    --primary-dark: #334155;
    --primary-light: #64748B;
    --accent: #94A3B8;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 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);
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary-dark);
    padding: 8px 0;
    color: var(--white);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.header-phone a {
    color: var(--white);
    font-weight: 600;
}

.navbar {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Hero Section - Multi-Image Hero (Style 6) */
.hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-multi {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(71, 85, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(71, 85, 105, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease-out;
}

.hero h1 {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Multi-Image Hero Visual */
.hero-multi-visual {
    position: relative;
}

.hero-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 450px;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.collage-img:hover {
    transform: scale(1.05);
}

.collage-main {
    grid-row: 1 / 3;
    height: 100%;
}

.collage-1 {
    height: 100%;
}

.collage-2 {
    height: 100%;
}

.hero-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.hero-card-icon {
    font-size: 40px;
}

.hero-card-text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.hero-card-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-stack {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-floating-card .years {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.about-floating-card span:last-child {
    font-size: 14px;
}

.about-details h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-details p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.feature-box span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Services Section - Masonry Layout */
.services {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.services-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card-wide {
    grid-column: span 2;
}

.service-card-tall {
    grid-row: span 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: scale(1.05);
    background: var(--primary);
}

.why-card:hover .why-number {
    background: var(--white);
    color: var(--primary);
}

.why-card:hover h3,
.why-card:hover p {
    color: var(--white);
}

.why-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.why-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Locations Section - Alternating Layout */
.locations {
    padding: 100px 0;
    background: var(--light-bg);
}

.locations-alternating {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.location-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.location-card-right {
    direction: rtl;
}

.location-card-right > * {
    direction: ltr;
}

.location-img {
    height: 250px;
    overflow: hidden;
}

.location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-img img {
    transform: scale(1.1);
}

.location-content {
    padding: 30px;
}

.location-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.location-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Common Problems */
.common-problems {
    padding: 100px 0;
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
}

.problem-card:hover {
    transform: scale(1.05);
    background: var(--primary);
}

.problem-card:hover .problem-icon {
    background: var(--white);
}

.problem-card:hover h3,
.problem-card:hover p {
    color: var(--white);
}

.problem-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.problem-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--primary);
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-phone .btn {
    background: var(--white);
    color: var(--primary);
}

.cta-phone .btn:hover {
    background: var(--light-bg);
    transform: scale(1.05);
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* FAQ Section - Expandable Cards */
.faq {
    padding: 100px 0;
    background: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-card.active .faq-question {
    background: var(--primary);
    color: var(--white);
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-card.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    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;
    font-size: 24px;
}

.contact-details h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    font-weight: 600;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.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-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-icon img {
    background: var(--white);
    padding: 5px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-text span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-phone {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--primary);
}

.footer-bottom p {
    color: var(--accent);
    font-size: 14px;
}

.footer-bottom .disclaimer {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sticky Call Button (Mobile) */
.sticky-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.sticky-call-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(71, 85, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(71, 85, 105, 0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-wide {
        grid-column: span 1;
    }
    
    .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) {
    .header-top {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-collage {
        height: 300px;
    }
    
    .hero-card {
        right: 0;
        bottom: 10px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-floating-card {
        left: 10px;
        bottom: 20px;
    }
    
    .services-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .service-card-wide,
    .service-card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        grid-template-columns: 1fr;
    }
    
    .location-card-right {
        direction: ltr;
    }
    
    .location-img {
        height: 200px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-call-btn {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}
