/* ============================================
   WorkMitra - Mobile-First Responsive Stylesheet
   Blue (#1a73e8) · Green (#0f9d58) · White (#fff)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #ff6d00;
  --accent-light: #ff8f00;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #202124;
  --gray: #5f6368;
  --gray-light: #9aa0a6;
  --border: #e8eaed;
  --success: #0f9d58;
  --success-light: #e6f4ea;
  --danger: #d93025;
  --danger-light: #fce8e6;
  --warning: #f9ab00;
  --warning-light: #fef7e0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 60px;
  --bottom-nav-h: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-nav-h);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-family: inherit; }

/* Utility */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 60px 0; } }
@media (min-width: 1024px) { .section { padding: 80px 0; } }

.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }
.section-title p { color: var(--gray); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }
@media (min-width: 768px) { .section-title { margin-bottom: 40px; } .section-title h2 { font-size: 2rem; } }

.bg-white { background: var(--white); }

/* Loading */
.loading { text-align: center; padding: 60px 20px; }
.spinner {
  width: 40px; height: 40px; border: 4px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- OFFER BANNER --- */
.offer-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white); text-align: center; padding: 10px 16px;
  font-weight: 600; font-size: 0.85rem; line-height: 1.4;
}
.offer-banner span {
  background: var(--white); color: var(--accent);
  padding: 2px 10px; border-radius: 20px; margin: 0 4px;
  display: inline-block; white-space: nowrap;
}
@media (min-width: 768px) { .offer-banner { font-size: 1.05rem; padding: 14px; } }

/* --- HEADER --- */
header {
  background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.logo-img { height: 36px; }

/* Desktop Nav */
nav { display: none; }
@media (min-width: 768px) {
  nav { display: flex; align-items: center; gap: 24px; }
  nav a {
    font-size: 0.9rem; font-weight: 500; color: var(--gray);
    transition: var(--transition); padding: 6px 0;
    position: relative;
  }
  nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--primary); transform: scaleX(0);
    transition: var(--transition);
  }
  nav a:hover { color: var(--primary); }
  nav a:hover::after { transform: scaleX(1); }
}

/* Mobile Hamburger */
.hamburger {
  display: flex; flex-direction: column; cursor: pointer;
  gap: 5px; padding: 8px; z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2.5px; background: var(--dark);
  border-radius: 3px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Overlay Nav */
.mobile-nav {
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; background: var(--white);
  z-index: 999; padding: 80px 24px 24px; transform: translateX(100%);
  transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 12px; font-size: 1.1rem; font-weight: 500;
  color: var(--dark); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav a:active { background: var(--light); color: var(--primary); }
.mobile-nav .nav-close {
  position: absolute; top: 16px; right: 16px;
  font-size: 1.5rem; padding: 8px 12px; cursor: pointer;
  color: var(--gray);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .mobile-nav { display: none; }
}

/* --- BOTTOM NAV (Mobile) --- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--white); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  height: var(--bottom-nav-h); padding: 0 4px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 8px; font-size: 0.65rem; font-weight: 500;
  color: var(--gray); transition: var(--transition); min-width: 48px;
}
.bottom-nav a:active, .bottom-nav a.active { color: var(--primary); }
.bottom-nav a svg, .bottom-nav a .nav-icon { font-size: 1.3rem; line-height: 1; }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* --- STICKY ACTION BUTTONS (Mobile) --- */
.sticky-actions {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 12px);
  right: 16px; z-index: 997; display: flex; flex-direction: column;
  gap: 10px;
}
.sticky-actions a, .sticky-actions button {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: none;
  transition: var(--transition); font-size: 1.4rem;
}
.sticky-actions a:active, .sticky-actions button:active { transform: scale(0.92); }
.action-call { background: var(--primary); color: var(--white); }
.action-whatsapp { background: var(--whatsapp); color: var(--white); }
.action-call:hover, .action-whatsapp:hover { transform: scale(1.05); }

@media (min-width: 768px) {
  .sticky-actions { bottom: 24px; right: 24px; }
  .sticky-actions a, .sticky-actions button { width: 56px; height: 56px; font-size: 1.5rem; }
}

/* Legacy WhatsApp Float (kept for backward compat) */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 20px;
  width: 52px; height: 52px; background: var(--whatsapp);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: var(--shadow-lg);
  z-index: 997; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; display: block; }
@media (min-width: 768px) {
  .whatsapp-float { width: 56px; height: 56px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600; border: none;
  cursor: pointer; transition: var(--transition); text-align: center;
  min-height: 48px; /* touch-friendly */ user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:active { background: var(--primary-dark); transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:active { background: var(--accent-light); transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:active { background: var(--primary); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; min-height: 40px; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:active { background: var(--whatsapp-dark); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:active { background: var(--light); }

@media (hover: hover) {
  .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(26,115,232,0.4); }
  .btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,109,0,0.4); }
  .btn-outline:hover { background: var(--primary); color: var(--white); }
  .btn-whatsapp:hover { background: var(--whatsapp-dark); }
  .btn-white:hover { background: var(--light); }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); padding: 48px 0; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; line-height: 1.25; }
.hero p { font-size: 1rem; opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; flex-direction: column; align-items: stretch; padding: 0 16px; }
.hero-buttons .btn { width: 100%; }

@media (min-width: 480px) {
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; }
}
@media (min-width: 768px) {
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.2rem; margin-bottom: 32px; }
}

.hero-slider-wrapper { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 28px; }
.hero-slider { display: flex; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 4px; }
.hero-slide img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; border: none; padding: 0; }
.slider-dot.active { background: var(--white); width: 24px; border-radius: 4px; }

@media (min-width: 768px) {
  .hero-slide { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .hero-slide img { height: 140px; }
}

/* --- SEARCH --- */
.search-section {
  background: var(--white); padding: 24px 16px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin: -30px auto 0; position: relative; z-index: 2;
  max-width: 1000px;
}
.search-section h2 { text-align: center; margin-bottom: 16px; color: var(--primary); font-size: 1.2rem; }
.search-form { display: flex; gap: 10px; flex-direction: column; }
.search-form input, .search-form select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  outline: none; transition: var(--transition);
  -webkit-appearance: none; appearance: none; background: var(--white);
}
.search-form input:focus, .search-form select:focus { border-color: var(--primary); }
.search-form button { padding: 14px 24px; width: 100%; }

@media (min-width: 600px) {
  .search-form { flex-direction: row; }
  .search-form input, .search-form select { flex: 1; min-width: 0; }
  .search-form button { width: auto; flex-shrink: 0; }
}
@media (min-width: 768px) {
  .search-section { padding: 30px; margin: -40px auto 40px; }
  .search-section h2 { font-size: 1.3rem; }
}

/* --- WORKER CARDS --- */
.worker-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 500px) { .worker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .worker-grid { gap: 24px; } }
@media (min-width: 1024px) { .worker-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .worker-grid { grid-template-columns: repeat(4, 1fr); } }

.worker-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.worker-card:active { transform: scale(0.98); }
.worker-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--border);
}
.worker-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.worker-card-body h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
.worker-card-body .category { color: var(--primary); font-weight: 600; font-size: 0.82rem; margin-bottom: 4px; }
.worker-card-body .rating { color: var(--warning); margin-bottom: 6px; }
.worker-card-body .available { color: var(--success); font-size: 0.82rem; margin-bottom: 12px; }
.worker-card-actions { display: flex; gap: 8px; margin-top: auto; }
.worker-card-actions .btn { flex: 1; padding: 12px 8px; font-size: 0.82rem; min-height: 44px; }

@media (hover: hover) {
  .worker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* --- CATEGORY CARDS --- */
.categories-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 500px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .categories-grid { gap: 20px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .categories-grid { grid-template-columns: repeat(5, 1fr); } }

.category-card {
  background: var(--white); border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor: pointer;
  border: 2px solid transparent; overflow: hidden;
  display: flex; flex-direction: column;
}
.category-card:active { border-color: var(--primary); transform: scale(0.96); }
.category-card img { width: 100%; height: 100px; object-fit: cover; transition: var(--transition); }
.category-card .card-body { padding: 12px 12px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.category-card h4 { font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; }
.category-card p { font-size: 0.75rem; color: var(--gray); line-height: 1.4; margin-bottom: 8px; display: none; }
.category-card .card-btn {
  display: inline-block; padding: 6px 14px; background: var(--primary);
  color: var(--white); border-radius: 50px; font-size: 0.72rem;
  font-weight: 600; transition: var(--transition);
}

@media (min-width: 768px) {
  .category-card img { height: 140px; }
  .category-card h4 { font-size: 1.05rem; }
  .category-card p { display: block; font-size: 0.82rem; }
  .category-card .card-body { padding: 16px 16px 20px; }
}
@media (hover: hover) {
  .category-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 12px 35px rgba(26,115,232,0.2); }
  .category-card:hover img { transform: scale(1.05); }
  .category-card:hover .card-btn { background: var(--accent); }
}

/* --- STATS --- */
.stats { background: var(--primary); color: var(--white); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 2px; }
.stat-item p { opacity: 0.85; font-size: 0.85rem; }
@media (min-width: 768px) {
  .stats { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .stat-item h3 { font-size: 2.5rem; }
}

/* --- FORMS --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  outline: none; transition: var(--transition);
  -webkit-appearance: none; appearance: none; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- FAQ --- */
.faq-item { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question {
  padding: 16px 18px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem; -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.faq-question:active { background: var(--light); }
.faq-answer { padding: 0 18px 16px; color: var(--gray); display: none; font-size: 0.9rem; line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* --- RATING STARS --- */
.stars { display: flex; gap: 4px; cursor: pointer; }
.stars i { font-size: 1.5rem; color: var(--border); transition: var(--transition); }
.stars i.active { color: var(--warning); }

/* --- CARDS (Generic) --- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); } }

/* --- BREADCRUMB --- */
.breadcrumb {
  background: var(--primary-light); padding: 10px 0;
  font-size: 0.82rem; border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray); }
.breadcrumb .separator { color: var(--gray-light); margin: 0 2px; }
.back-home-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff; padding: 6px 16px;
  border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.back-home-btn:active { background: var(--primary-dark); }

/* --- PAGE HEADER --- */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); padding: 40px 0; text-align: center;
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.page-header p { opacity: 0.9; font-size: 0.95rem; }
@media (min-width: 768px) {
  .page-header { padding: 60px 0; }
  .page-header h1 { font-size: 2.2rem; }
  .page-header p { font-size: 1.05rem; }
}

/* --- LEGAL CONTENT --- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.legal-content h2 { color: var(--primary); margin: 28px 0 12px; font-size: 1.3rem; }
.legal-content h3 { color: var(--primary); margin: 24px 0 10px; font-size: 1.1rem; }
.legal-content p { color: var(--gray); margin-bottom: 12px; line-height: 1.8; font-size: 0.95rem; }
.legal-content ul, .legal-content ol { color: var(--gray); padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; line-height: 1.7; font-size: 0.95rem; }
@media (min-width: 768px) {
  .legal-content { padding: 0 20px; }
  .legal-content h2 { font-size: 1.5rem; }
  .legal-content p { font-size: 1rem; }
}

/* --- ALERTS --- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-weight: 500; font-size: 0.92rem;
}
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid var(--success); }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }
.alert-info { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); }
.alert-warning { background: var(--warning-light); color: var(--accent); border: 1px solid var(--warning); }

/* --- MODAL --- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 500px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 24px;
}
.modal h2 { margin-bottom: 16px; font-size: 1.3rem; }

/* --- FEATURED BADGE --- */
.featured-badge {
  background: var(--accent); color: var(--white);
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 600; display: inline-block; margin-bottom: 6px;
}

/* --- PROFILE PAGE --- */
.profile-header { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; }
.profile-cover { height: 120px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.profile-info { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--white); margin-top: -60px;
  box-shadow: var(--shadow); background: var(--white);
}
.profile-details { flex: 1; min-width: 0; }
.profile-details h1 { font-size: 1.4rem; color: var(--dark); margin-bottom: 4px; }
.profile-details .meta { color: var(--gray); margin-bottom: 4px; font-size: 0.92rem; }
.profile-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

@media (min-width: 768px) {
  .profile-cover { height: 200px; }
  .profile-info { padding: 30px; flex-direction: row; text-align: left; align-items: flex-start; gap: 30px; }
  .profile-avatar { width: 140px; height: 140px; margin-top: -80px; }
  .profile-details h1 { font-size: 1.8rem; }
  .profile-actions { justify-content: flex-start; }
}

/* Profile Two-Column Layout */
.profile-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: 2fr 1fr; gap: 24px; }
}

/* --- WARNING NOTICE --- */
.warning-notice { background: var(--warning-light); border-top: 2px solid var(--warning); border-bottom: 2px solid var(--warning); padding: 8px 0; overflow: hidden; }
.warning-marquee { display: flex; white-space: nowrap; overflow: hidden; }
.warning-marquee span {
  display: inline-block; animation: marquee-scroll 40s linear infinite;
  font-size: 0.82rem; font-weight: 700; color: var(--danger); padding-left: 100%;
}
@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@media (min-width: 768px) {
  .warning-marquee span { font-size: 0.9rem; }
}

/* --- FOOTER --- */
footer {
  background: var(--dark); color: rgba(255,255,255,0.8);
  padding: 40px 0 0;
}
.footer-center { text-align: center; margin-bottom: 24px; }
.footer-brand { margin-bottom: 20px; }
.footer-brand h4 { font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; max-width: 400px; margin: 0 auto; line-height: 1.6; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; max-width: 700px; margin: 0 auto; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; font-weight: 500; transition: var(--transition); padding: 6px 0; }
.footer-links a:active { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

@media (min-width: 768px) {
  footer { padding: 50px 0 0; }
  .footer-brand h4 { font-size: 1.4rem; }
  .footer-brand p { font-size: 0.9rem; }
  .footer-links a { font-size: 0.9rem; }
  .footer-links a:hover { color: var(--accent); }
}

/* --- ADMIN PANEL --- */
.admin-sidebar {
  background: var(--dark); color: var(--white);
  width: 100%; padding: 16px;
}
.admin-sidebar .logo { color: var(--white); font-size: 1.2rem; font-weight: 800; display: block; margin-bottom: 16px; }
.admin-sidebar .logo span { color: var(--accent); }
.admin-sidebar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-sidebar nav a {
  display: block; color: rgba(255,255,255,0.7); padding: 10px 16px;
  border-radius: var(--radius-sm); font-size: 0.85rem;
  transition: var(--transition);
}
.admin-sidebar nav a:active, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-main { padding: 16px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.3rem; }
.admin-stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}
.admin-stat-card {
  background: var(--white); padding: 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center;
}
.admin-stat-card h4 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.admin-stat-card p { color: var(--gray); font-size: 0.85rem; }

@media (min-width: 768px) {
  .admin-sidebar { width: 240px; position: fixed; top: 0; left: 0; height: 100vh; padding: 20px; overflow-y: auto; z-index: 100; }
  .admin-sidebar nav { flex-direction: column; }
  .admin-sidebar nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
  .admin-main { margin-left: 240px; padding: 30px; }
  .admin-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
  .admin-stat-card h4 { font-size: 2rem; }
}

/* --- TABLE --- */
.table-container { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.82rem; white-space: nowrap; }
th { background: var(--primary); color: var(--white); font-weight: 600; font-size: 0.82rem; }
tr:active { background: var(--light); }
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-actions .btn { padding: 6px 10px; font-size: 0.72rem; min-height: 32px; }

@media (min-width: 768px) {
  .table-container { margin: 0; padding: 0; }
  th, td { padding: 14px 18px; font-size: 0.9rem; }
  tr:hover { background: var(--light); }
}

/* --- CATEGORY BANNER --- */
.category-banner { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.category-banner-img { width: 100%; max-height: 200px; object-fit: cover; }
.category-banner-content { padding: 20px; }
@media (min-width: 768px) {
  .category-banner { display: flex; align-items: center; }
  .category-banner-img { max-height: 300px; }
  .category-banner-content { padding: 30px; flex: 1; }
}

/* --- REVIEWS --- */
.review-card { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.review-card .stars { justify-content: center; margin-bottom: 8px; }
.review-card p { color: var(--gray); font-style: italic; margin-bottom: 8px; font-size: 0.9rem; }

/* --- MISCELLANEOUS --- */
.highlight-pending { border-left: 4px solid var(--warning) !important; }
code { background: var(--light); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

/* --- IMAGE RESPONSIVENESS --- */
img { max-width: 100%; height: auto; }
img[loading="lazy"] { background: var(--border); }

/* --- PRINT --- */
@media print {
  .bottom-nav, .sticky-actions, .whatsapp-float, header, footer, .warning-notice, .offer-banner { display: none !important; }
  body { padding-bottom: 0; }
}

/* --- Category Page Inline Style Overrides (Mobile-first) --- */
/* These match the classes used in category page inline styles */
@media (max-width: 767px) {
  .hero-banner { padding: 40px 16px !important; }
  .hero-banner h1 { font-size: 1.4rem !important; }
  .hero-banner p { font-size: 0.95rem !important; }
  .service-checklist { grid-template-columns: 1fr !important; }
  .filter-grid { flex-direction: column !important; gap: 10px !important; }
  .filter-grid select, .filter-grid input { width: 100% !important; min-width: 0 !important; }
  .stat-card { padding: 16px !important; }
  .stat-card h3 { font-size: 1.5rem !important; }
  .contact-section { padding: 30px 16px !important; }
  .contact-section h2 { font-size: 1.3rem !important; }
  .about-services { padding: 20px !important; }
  .related-cat-card { padding: 16px !important; }
  .area-tag { font-size: 0.78rem !important; padding: 6px 12px !important; }
  .review-item { padding: 16px !important; }
  .section-padding { padding: 30px 0 !important; }
}
