:root {
    --primary: #0A2A43;    /* Deep Navy Blue */
    --primary-rgb: 10, 42, 67;
    --secondary: #4A4A4A;  /* Slate Gray */
    --secondary-rgb: 74, 74, 74;
    --accent: #1C1C1E;     /* Charcoal Black */
    --accent-rgb: 28, 28, 30;
    --support: #007A8A;    /* Teal Blue */
    --support-rgb: 0, 122, 138;
    --highlight: #F7F7F7;  /* Off-White */
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--highlight);
    color: var(--accent);
    overflow-x: hidden;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--highlight);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 74, 74, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 20s linear infinite;
}

/* Responsive Utilities */
.d-none { display: none !important; }

@media (min-width: 768px) {
    .d-md-block { display: flex !important; }
}

@media (max-width: 767px) {
    .d-md-block { display: none !important; }
}

/* Category Hero Styles */
.category-hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--support));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--support));
    border-radius: 2px;
}

.category-prefix {
    font-family: 'Inter', sans-serif; /* Simple sans-serif font */
    font-size: 1.5rem; /* Smaller than main logo */
    font-weight: 700; /* Bold */
    color: var(--accent); /* Use primary text color for contrast/readability */
    background: linear-gradient(135deg, var(--primary), var(--support));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--white);
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-box input::placeholder {
    color: var(--secondary);
    opacity: 0.6;
}

.search-box input:focus {
    outline: none;
    border-color: var(--support);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--support-rgb), 0.1), 0 20px 40px rgba(var(--support-rgb), 0.15);
}

.search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    stroke: var(--support);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(10, 42, 67, 0.1), rgba(0, 122, 138, 0.1));
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--support) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.stat-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    word-wrap: break-word; /* Ensure long words/links break and wrap */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 138, 0.03), rgba(10, 42, 67, 0.03));
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--support);
    box-shadow: 0 20px 40px rgba(var(--support-rgb), 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--support));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Providers Grid */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.providers-grid, .plumbers-grid { /* Keep plumbers-grid for backward compatibility if needed */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 100px;
}

.provider-card, .plumber-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex; /* Added for layout control */
    flex-direction: column; /* Stack content vertically */
}

.provider-card::before, .plumber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--support));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.provider-card:hover, .plumber-card:hover {
    transform: translateY(-8px);
    border-color: var(--support);
    box-shadow: 0 20px 40px rgba(var(--support-rgb), 0.12);
}

.provider-card:hover::before, .plumber-card:hover::before {
    transform: scaleX(1);
}

.provider-name, .plumber-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-icon, .plumber-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--support), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--support-rgb), 0.3);
}

.company-logo {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    object-fit: contain; /* Ensures logo is not cropped */
    border-radius: 8px; /* Slightly rounded corners for logos */
    margin-right: 12px; /* Space between logo and text */
    flex-shrink: 0; /* Prevents logo from shrinking */
}

.provider-info, .plumber-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1; /* Push the footer/button to the bottom */
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.5;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--support);
}

.info-row a {
    color: var(--support);
    text-decoration: none;
    word-break: break-word;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.info-row a:hover {
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    border-radius: 32px;
    padding: 80px 60px;
    margin-bottom: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    margin-bottom: 35px;
    padding: 30px;
    background: var(--highlight);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.faq-item:hover {
    background: #efeff0; /* Slightly darker highlight */
    border-color: var(--support);
    box-shadow: 0 4px 12px rgba(var(--support-rgb), 0.08);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* SEO Content Section */
.seo-content-section {
    background: var(--white);
    border-radius: 32px;
    padding: 80px 60px;
    margin-top: 50px; /* Space from previous section */
    margin-bottom: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.seo-content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Slightly smaller than main section titles */
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content-section p,
.seo-content-section ul,
.seo-content-section strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 15px;
}

.seo-content-section ul {
    list-style-type: disc;
    margin-left: 25px;
    padding-left: 0;
}

.seo-content-section ul li {
    margin-bottom: 8px;
}

.seo-content-section strong {
    color: var(--primary);
    font-weight: 700;
    display: block; /* Ensures bold titles stand out */
    margin-top: 25px; /* Space between sections */
    font-size: 1.2rem;
}

/* Enriched Content (Provider Descriptions) */
.enriched-content p {
    margin-bottom: 1.2rem;
}

.enriched-content ul, 
.enriched-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.enriched-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--support));
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 -10px 40px rgba(var(--primary-rgb), 0.2);
}

footer p {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    color: var(--secondary);
    font-size: 1.2rem;
    padding: 60px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .plumbers-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 40px 30px;
    }

    .container {
        padding: 0 20px;
    }
}
/* Contact Me Button */
.contact-button-container {
    margin-top: 25px; /* Increased top margin */
    padding-top: 25px; /* Add padding for separation */
    text-align: center;
    border-top: 1px solid var(--border); /* Add divider line */
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--support));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 122, 138, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--support-rgb), 0.4);
}


/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.contact-form-container h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--support);
    box-shadow: 0 0 0 4px rgba(var(--support-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
}


.provider-page-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .provider-page-layout {
        grid-template-columns: 1fr;
    }
    .provider-form-container {
        order: -1;
    }
}

.provider-info-container {
    /* No special styles needed here */
}

.provider-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px -5px var(--support);
    }
    to {
        box-shadow: 0 0 20px 5px var(--support);
    }
}

/* Get Listed Page Styles */
.form-section {
    background: var(--white);
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--accent);
    background: var(--highlight);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--support);
    box-shadow: 0 0 0 3px rgba(0, 122, 138, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--support), var(--primary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 122, 138, 0.25);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--primary), var(--support));
    box-shadow: 0 12px 25px rgba(0, 122, 138, 0.35);
    transform: translateY(-2px);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px #888;
}

.whatsapp-float img {
    width: 36px;
    height: 36px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.email-button {
    flex: 1;
    /* inherits existing contact-button styles */
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.whatsapp-button {
    flex: 1;
    background: linear-gradient(135deg, #25D366, #128C7E); /* WhatsApp Brand Colors */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    font-size: 1rem;
}

.whatsapp-button:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Hero Title Responsiveness */
.homepage-hero-title, 
.category-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    padding: 0 15px;
    word-wrap: break-word;
}

/* Hero Title Responsiveness */
.homepage-hero-title, 
.category-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    padding: 0 15px;
    word-wrap: break-word;
}
