:root {
    --primary: #0077B6;
    --primary-hover: #005f92;
    --secondary: #90E0EF;
    --secondary-hover: #ade8f4;
    --accent: #023e8a;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --light: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background-color: var(--bg); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.py-12 { padding: 3rem 0; }
.py-20 { padding: 5rem 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-white { color: #fff !important; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); color: #fff; }
.w-full { width: 100%; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-grow { flex-grow: 1; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.rounded-lg { border-radius: var(--radius-lg); }
.p-12 { padding: 3rem; }

/* Typography */
.h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: var(--accent); }
.h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--accent); }
.h3 { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.h4 { font-size: 1.25rem; font-weight: 700; color: var(--text); }

.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 2.5rem; color: var(--accent); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin-top: 10px; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-regions, .grid-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.grid-plumbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none; text-align: center; }
.btn-primary { background-color: var(--primary); color: #fff; box-shadow: 0 4px 14px 0 rgba(0, 119, 182, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 119, 182, 0.2); }
.btn-secondary { background-color: var(--secondary); color: var(--accent); }
.btn-secondary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(144, 224, 239, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(144, 224, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(144, 224, 239, 0); } }

/* Header */
.main-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.logo span span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--text); }
.nav-links a:hover { color: var(--primary); }

/* Components: Card */
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; overflow: hidden; padding: 25px; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-title { font-size: 1.25rem; font-weight: 700; color: var(--accent); }

/* Components: Plumber Card */
.plumber-card { padding: 0; display: flex; flex-direction: column; height: 100%; }
.plumber-img { height: 200px; position: relative; overflow: hidden; }
.plumber-img img { width: 100%; height: 100%; object-fit: cover; }
.plumber-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.plumber-content h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--accent); }
.plumber-content .location { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.plumber-footer { margin-top: auto; padding-top: 20px; }

/* Components: Icon Box */
.icon-box { width: 48px; height: 48px; background: var(--light); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* City & Dept Links */
.city-link { 
    display: block; 
    padding: 15px; 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    font-weight: 600; 
    color: var(--primary) !important; /* Force primary blue */
    text-decoration: none;
    transition: all 0.3s; 
    text-align: center; 
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important; /* Force visibility */
    min-height: 50px;
}
.city-link:hover { 
    border-color: var(--primary); 
    background-color: var(--light);
    color: var(--accent) !important;
    transform: translateY(-2px); 
    box-shadow: var(--shadow); 
}

/* Home Hero */
.hero-home { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%), url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&q=80&w=1600'); background-size: cover; background-position: center; background-blend-mode: overlay; padding: 120px 0; color: #fff; text-align: center; }
.hero-home h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 2rem; }
.hero-home p { font-size: 1.3rem; opacity: 0.9; max-width: 800px; margin: 0 auto 3rem; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Page Header */
.page-header { background: var(--light); padding: 80px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ul { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; opacity: 0.3; font-weight: 400; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Alphabetical Index */
.alphabet-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; background: #fff; padding: 25px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.letter-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--light); border-radius: 8px; font-weight: 700; color: var(--primary); border: 1px solid var(--border); font-size: 0.9rem; }
.letter-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.1); }
.letter-badge { width: 54px; height: 54px; background: var(--primary); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 900; }
.letter-line { height: 2px; background: var(--border); margin-left: 20px; }

/* Calculator */
.calc-card { padding: 40px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.price-display { border: 2px dashed var(--secondary); padding: 25px; border-radius: var(--radius); background: var(--light); }
#price-range { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.form-control { width: 100%; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-family: inherit; font-size: 1rem; }

/* Profile Page */
.page-profile .profile-hero { background: var(--accent); padding: 80px 0; color: #fff; }
.page-profile .profile-container { display: grid; grid-template-columns: 1fr 380px; gap: 50px; margin-top: -60px; padding-bottom: 100px; }
.page-profile .profile-main { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 50px; }
.page-profile .profile-sidebar { position: sticky; top: 120px; }
.page-profile .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 30px 0; }
.page-profile .service-item { display: flex; align-items: center; gap: 15px; padding: 20px; background: var(--light); border-radius: var(--radius); border: 1px solid var(--border); font-weight: 600; }

/* Blog */
.blog-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: 0.3s; height: 100%; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-image { height: 220px; position: relative; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--accent); }
.blog-card-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }

/* CTA Box */
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff; padding: 60px; border-radius: var(--radius-lg); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 15px; color: #fff; }
.cta-box p { font-size: 1.1rem; opacity: 0.9; }

/* Footer */
.main-footer { background: #0f172a; color: #cbd5e1; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 60px; margin-bottom: 60px; }
.footer-title { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-bottom { padding-top: 40px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.9rem; }

/* Sticky Bar */
.sticky-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: white; padding: 15px 0; z-index: 1000; transform: translateY(100%); transition: 0.3s; box-shadow: 0 -10px 20px rgba(0,0,0,0.1); }
.sticky-bottom-bar.show { transform: translateY(0); }

/* FAQ Accordion */
.faq-section { padding: 80px 0; }
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--border); background: #fff; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: var(--primary); }
.faq-question { width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font-size: 1.1rem; font-weight: 700; color: var(--accent); cursor: pointer; text-align: left; gap: 20px; transition: 0.3s; }
.faq-question.active { color: var(--primary); background: var(--light); }
.faq-icon { transition: transform 0.3s; color: var(--primary); }
.faq-question.active .faq-icon { transform: rotate(180deg); }
.faq-answer { background: #fff; }
.faq-answer-content { padding: 0 25px 25px; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal-on-scroll.revealed { opacity: 1 !important; transform: translateY(0) !important; }

/* Mobile */
@media (max-width: 992px) {
    .navbar { height: auto; padding: 20px 0; flex-direction: column; gap: 20px; }
    .hero-home h1 { font-size: 2.5rem; }
    .page-profile .profile-container { grid-template-columns: 1fr; margin-top: 20px; }
    .cta-box { flex-direction: column; text-align: center; padding: 40px; }
    .h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; }
    .sticky-text { display: none; }
}