/* ============================================
   Flow Boulder Plumbing Service - CSS
   Color Scheme: F - Slate Professional
   Font Pairing: 6 - Playfair Display & Source Sans Pro
   Animation: 1 - Fade In Up + Lift Shadow
   ============================================ */

/* CSS Variables - Slate Professional Color Scheme */
:root {
    --primary: #475569;
    --primary-dark: #334155;
    --primary-light: #64748B;
    --accent: #94A3B8;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(71, 85, 105, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(71, 85, 105, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(71, 85, 105, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(71, 85, 105, 0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', 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: 'Playfair Display', 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;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Mobile Sticky Call Button
   ============================================ */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    align-items: center;
    gap: 10px;
}

.mobile-call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Header Styles
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section - Multi-Image Hero (Style 6)
   ============================================ */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.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.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(71, 85, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-tagline {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Multi-Image Hero Grid */
.hero-images {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    padding: 20px;
}

.hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img:hover img {
    transform: scale(1.05);
}

.main-img {
    grid-row: span 2;
    height: 400px;
}

.secondary-img {
    height: 190px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    bottom: -20px;
    left: -30px;
}

.card-2 {
    top: 30px;
    right: -30px;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 24px;
}

.card-text {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 14px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.about-description {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
}

.feature-text {
    font-weight: 600;
    color: var(--primary-dark);
}

.about-image {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 100px 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-section {
    padding: 100px 0;
    background: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-choose-card {
    background: var(--off-white);
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.why-choose-card:nth-child(1) { animation-delay: 0.1s; }
.why-choose-card:nth-child(2) { animation-delay: 0.2s; }
.why-choose-card:nth-child(3) { animation-delay: 0.3s; }
.why-choose-card:nth-child(4) { animation-delay: 0.4s; }

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Locations Section
   ============================================ */
.locations-section {
    padding: 100px 0;
    background: var(--off-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.15s; }
.location-card:nth-child(3) { animation-delay: 0.2s; }
.location-card:nth-child(4) { animation-delay: 0.25s; }
.location-card:nth-child(5) { animation-delay: 0.3s; }
.location-card:nth-child(6) { animation-delay: 0.35s; }
.location-card:nth-child(7) { animation-delay: 0.4s; }
.location-card:nth-child(8) { animation-delay: 0.45s; }
.location-card:nth-child(9) { animation-delay: 0.5s; }
.location-card:nth-child(10) { animation-delay: 0.55s; }

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-info {
    padding: 25px;
}

.location-name {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.location-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Common Problems Section
   ============================================ */
.problems-section {
    padding: 100px 0;
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--off-white);
    padding: 35px 30px;
    border-radius: 16px;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.2s; }
.problem-card:nth-child(3) { animation-delay: 0.3s; }
.problem-card:nth-child(4) { animation-delay: 0.4s; }
.problem-card:nth-child(5) { animation-delay: 0.5s; }
.problem-card:nth-child(6) { animation-delay: 0.6s; }

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.problem-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.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(--white);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    color: var(--primary);
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition);
}

.cta-phone:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.cta-phone a {
    color: var(--primary);
}

.cta-note {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--off-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-answer p {
    padding: 0 30px 25px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    padding: 25px;
    background: var(--off-white);
    border-radius: 12px;
}

.contact-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Source Sans Pro', sans-serif;
}

.contact-value {
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 600;
}

.contact-value a {
    color: var(--primary-dark);
}

.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 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-description {
    margin-top: 20px;
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-logo img {
    height: 70px;
    border-radius: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: var(--accent);
    font-size: 15px;
}

.footer-list a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.copyright {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-images {
        order: -1;
    }
    
    .hero-image-grid {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }
    
    .desktop-call-btn {
        display: none;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 18px;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        padding: 25px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .locations-grid,
    .problems-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .floating-card {
        display: none;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-phone {
        font-size: 22px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-description {
        font-size: 15px;
    }
}
