/* ============================================
   Local Plumbers - Shared Stylesheet
   UK plumbing services Directory
   ============================================ */

/* === Base / Reset === */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* === Navbar === */
.navbar-brand {
    font-weight: 600;
}

.dropdown-menu.show {
    display: block;
}

.nav-link.active {
    color: white !important;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .card,
.hero-section .card * {
    text-shadow: none !important;
}

.hero-section .text-primary {
    color: #FFD700 !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* === Buttons === */
.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004999 0%, #0066cc 100%);
    transform: translateY(-2px);
    cursor: pointer;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: white;
    color: #0066cc;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    border: none;
    color: white;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* === Feature Cards === */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-card .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* === plumber Cards === */
.plumber-card {
    position: relative;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plumber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.plumber-card.featured {
    border: 3px solid #FFD700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

/* Badge is handled by PHP - no CSS pseudo-element needed */

/* === gas installer Cards === */
.gas installer-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.gas installer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gas installer-card.premium {
    border: 3px solid #FFD700 !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,215,0,0.02));
}

/* === Resource Cards === */
.resource-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.resource-card .card-body {
    display: flex;
    flex-direction: column;
}

.resource-card .card-body a.btn {
    margin-top: auto;
}

/* === plumber Card Previews (Submit page) === */
.plumber-card-preview {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.plumber-card-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.plumber-card-preview.premium-card {
    border: 3px solid #FFD700 !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,215,0,0.02));
}

.tier-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.example-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

/* === Sections === */
.stats-section {
    background-color: #f8f9fa;
    padding: 5px 0 0 0;
}

.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    padding: 80px 0;
}

.contact-section {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    padding: 60px 0;
}

.why-section {
    background: #f8f9fa;
}

/* === Info Box === */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* === Advertise Banner === */
.advertise-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    padding: 30px;
    color: #333;
}

/* === Search === */
.search-container {
    margin-bottom: 2rem;
}

/* === Tabs (Resources page) === */
.nav-tabs {
    border-bottom: 2px solid #0066cc;
}

.nav-tabs .nav-link {
    color: #0066cc;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    padding: 12px 24px;
    border: 2px solid #0066cc;
    border-bottom: none;
    margin-bottom: -2px;
    background: #e7f3ff;
}

.nav-tabs .nav-link.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.nav-tabs .nav-link:hover:not(.active) {
    background: #cce5ff;
}

/* === Forms (Submit page) === */
.form-label {
    font-weight: 600;
    color: #333;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.required {
    color: #dc3545;
}

.form-check-input:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

.section-h5 {
    color: #0066cc;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* === Location Buttons (Home page) === */
.location-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    margin: 5px;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.location-btn.lb-purple { background: linear-gradient(135deg, #0066cc, #004999); }
.location-btn.lb-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.location-btn.lb-orange { background: linear-gradient(135deg, #ff6600, #ff9900); }
.location-btn.lb-blue { background: linear-gradient(135deg, #0066cc, #004999); }
.location-btn.lb-red { background: linear-gradient(135deg, #e44d26, #f16529); }
.location-btn.lb-pink { background: linear-gradient(135deg, #ff6600, #ff9900); }
