/* =====================================================
   Trusted Local Plumbing Solutions - Styles
   Color Scheme: Deep Purple (#7C3AED)
   Font: Outfit + Inter
   Animation: Slide In
   ===================================================== */

/* CSS Variables */
:root {
    /* Deep Purple Color Scheme */
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --accent: #A78BFA;
    --accent-light: #C4B5FD;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #F9FAFB;
    --gray-50: #F3F4F6;
    --gray-100: #E5E7EB;
    --gray-200: #D1D5DB;
    --gray-300: #9CA3AF;
    --gray-400: #6B7280;
    --gray-500: #4B5563;
    --gray-600: #374151;
    --gray-700: #1F2937;
    --gray-800: #111827;
    --black: #000000;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 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.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* =====================================================
   Header Styles
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--gray-800);
    color: var(--gray-300);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.top-bar-content span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-content svg {
    color: var(--primary);
}

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.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: 2px;
    background: var(--gray-700);
    transition: all var(--transition-fast);
}

/* =====================================================
   Hero Section - Style 2: Full-Width Background
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(124,58,237,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-text-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-300);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* =====================================================
   About Section
   ===================================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about-intro {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--gray-500);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.about-img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-img-secondary img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* =====================================================
   Services Section
   ===================================================== */
.services-section {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-500);
    font-size: 15px;
}

/* =====================================================
   Why Choose Us Section
   ===================================================== */
.why-choose-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.why-choose-section .section-header h2,
.why-choose-section .section-header p {
    color: var(--white);
}

.why-choose-section .section-header p {
    color: var(--gray-400);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-choose-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all var(--transition-normal);
}

.why-choose-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.card-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 16px;
}

.why-choose-card h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.why-choose-card p {
    color: var(--gray-400);
    font-size: 15px;
}

/* =====================================================
   Locations Section
   ===================================================== */
.locations-section {
    padding: var(--section-padding);
    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: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.location-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.location-card:hover .location-image img {
    transform: scale(1.05);
}

.location-content {
    padding: 24px;
}

.location-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.location-content p {
    color: var(--gray-500);
    font-size: 14px;
}

/* =====================================================
   Common Problems Section
   ===================================================== */
.problems-section {
    padding: var(--section-padding);
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--off-white);
    border-radius: 16px;
    padding: 30px;
    border-left: 4px solid var(--primary);
    transition: all var(--transition-normal);
}

.problem-card:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.problem-card p {
    color: var(--gray-500);
    font-size: 15px;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-200);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* =====================================================
   FAQ Section - Layout 2: 2-Column Grid
   ===================================================== */
.faq-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    color: var(--gray-400);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    font-size: 18px;
    margin-bottom: 30px;
}

.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: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--white);
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--gray-500);
    font-size: 15px;
}

.contact-text a {
    color: var(--primary);
    font-weight: 500;
}

.contact-map {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.footer-about p {
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 16px;
}

.footer-phone:hover {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px !important;
    color: var(--gray-500) !important;
    max-width: 900px;
    margin: 0 auto !important;
    line-height: 1.6;
}

/* =====================================================
   Mobile Call Button
   ===================================================== */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    z-index: 999;
    gap: 8px;
    align-items: center;
}

/* =====================================================
   Animation Styles - Slide In
   ===================================================== */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Staggered animation delays */
.slide-in-up:nth-child(1) { transition-delay: 0.1s; }
.slide-in-up:nth-child(2) { transition-delay: 0.2s; }
.slide-in-up:nth-child(3) { transition-delay: 0.3s; }
.slide-in-up:nth-child(4) { transition-delay: 0.4s; }
.slide-in-up:nth-child(5) { transition-delay: 0.5s; }
.slide-in-up:nth-child(6) { transition-delay: 0.6s; }
.slide-in-up:nth-child(7) { transition-delay: 0.7s; }
.slide-in-up:nth-child(8) { transition-delay: 0.8s; }
.slide-in-up:nth-child(9) { transition-delay: 0.9s; }
.slide-in-up:nth-child(10) { transition-delay: 1s; }

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-grid,
    .locations-grid,
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .btn-call {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .services-grid,
    .locations-grid,
    .problems-grid,
    .why-choose-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-img-secondary {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }
    
    .mobile-call-btn {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding-bottom: 80px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .service-card,
    .location-card,
    .problem-card,
    .why-choose-card {
        padding: 20px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
    }
}
