/* =====================================================================
   100 Worker — Stylesheet
   Design tokens
   ===================================================================== */
/*
  @font-face {
    font-family: 'Noto Nastaliq Urdu';
    src: url('/images/mehr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
*/


:root{
  --ink:        #101828;   /* near-black navy — headings, dark surfaces     */
  --ink-soft:   #4B5768;   /* secondary text on light backgrounds           */
  --paper:      #F4F7FC;   /* cool light background — page background       */
  --paper-deep: #E7EDF8;   /* slightly deeper tint for alternating strips   */
  --white:      #FFFFFF;
  --brand:        #2F6FED;   /* modern blue — primary brand accent, pins      */
  --brand-dark:   #1E52C8;
  --accent:       #38BDF8;   /* sky-cyan — highlights, secondary accent       */
  --link:       #2F6FED;   /* links share the brand blue                    */
  --line:       rgba(16,24,40,0.10);

  --font-display: 'Space Grotesk', 'Noto Nastaliq Urdu', sans-serif;
  --font-body:    'Inter', 'Noto Nastaliq Urdu', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 30px -14px rgba(20,49,61,0.28);
  --shadow-card: 0 8px 22px -10px rgba(20,49,61,0.22);
}

/* =====================================================================
   Reset / base
   ===================================================================== */
html{ scroll-behavior:smooth; scroll-padding-top: 90px; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a{ color: var(--link); text-decoration:none; }
a:hover{ color: var(--brand-dark); }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section{ padding: 5rem 0; }
.section-head{ max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2{ font-size: 2.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.section-head p{ color: var(--ink-soft); }

/* Urdu / RTL type adjustments: Nastaliq needs more air */
html.lang-ur, html.lang-ur body{
  font-family: var(--font-urdu, 'Noto Nastaliq Urdu', serif);
}
html.lang-ur h1, html.lang-ur h2, html.lang-ur h3, html.lang-ur h4,
html.lang-ur .eyebrow, html.lang-ur .btn, html.lang-ur input,
html.lang-ur textarea, html.lang-ur select, html.lang-ur .dropdown-item{
  font-family: 'Noto Nastaliq Urdu', serif;
}
html.lang-ur body{ line-height: 2.1; }
html.lang-ur .section-head, html.lang-ur .hero-subtitle,
html.lang-ur .service-desc, html.lang-ur p{ line-height: 2; }
html[dir="rtl"] .hero-ctas, html[dir="rtl"] .service-card-actions{ flex-direction: row-reverse; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn-brand{
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding-inline: 1.4rem;
}
.btn-brand:hover, .btn-brand:focus{
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}
.btn-outline-ink{
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-outline-ink:hover{
  background: var(--ink);
  color: var(--white);
}
.btn-ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.btn-ghost:hover{ background: var(--paper-deep); color: var(--ink); }
.btn-lang, .btn-user{
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-danger-soft{
  background: #FBE7E2;
  color: var(--brand-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-danger-soft:hover{ background: #F5CFC5; color: var(--brand-dark); }

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================================
   Navbar
   ===================================================================== */
.sahult-nav{
  background: rgba(201,218,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.1rem 0;
}
.navbar-brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.brand-mark{ filter: drop-shadow(0 2px 0 rgba(0,0,0,0.05)); }
.nav-link{ color: var(--ink-soft); font-weight: 500; }
.nav-link:hover{ color: var(--brand); }
.nav-actions{ margin-top: 0.75rem; }
@media (min-width: 992px){ .nav-actions{ margin-top: 0; } }
.lang-switch .dropdown-item.active{ background: var(--paper-deep); color: var(--ink); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero{ padding: 3.5rem 0 4rem; position: relative; overflow: hidden; }
.hero-title{
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.hero-subtitle{ color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 46ch; }

.hero-search{ position: relative; margin-bottom: 1.5rem; max-width: 460px; }
.hero-search .search-icon{
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  opacity: 0.6; pointer-events: none;
}
.hero-search input{
  padding-inline-start: 2.6rem;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
}
.hero-ctas{ display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats{ display: flex; gap: 2.2rem; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; }
.stat-num{ font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.stat-label{ font-size: 0.82rem; color: var(--ink-soft); }

.hero-map-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
  aspect-ratio: 5 / 4;
}
.hero-map{ width: 100%; height: 100%; }
.hero-map-glow{
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(20,49,61,0.15);
  border-radius: calc(var(--radius-lg) - 6px);
}

/* Custom Leaflet pin */
.sahult-pin{
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-6px);
}
.sahult-pin .pin-body{
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand-color, var(--brand));
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px rgba(20,49,61,0.35);
  display: flex; align-items: center; justify-content: center;
}
.sahult-pin .pin-icon{ transform: rotate(45deg); font-size: 14px; line-height: 1; }
.sahult-pin.pulsing::after{
  content: '';
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-color, var(--brand));
  opacity: 0.35;
  animation: sahult-pulse 2.4s ease-out infinite;
}
@keyframes sahult-pulse{
  0%{ transform: scale(0.5); opacity: 0.45; }
  100%{ transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .sahult-pin.pulsing::after{ animation: none; display: none; }
}

.leaflet-popup-content-wrapper{
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
html.lang-ur .leaflet-popup-content-wrapper{ font-family: 'Noto Nastaliq Urdu', serif; }
.map-popup-cat{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.map-popup-title{ font-weight: 700; margin: 0.15rem 0 0.35rem; }
.map-popup-actions{ display:flex; gap:0.4rem; margin-top:0.5rem; }

/* =====================================================================
   Category chips
   ===================================================================== */
.categories-section{ padding-top: 2.5rem; }
.category-chips{ display: flex; flex-wrap: wrap; gap: 0.75rem; }
.category-chip{
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-chip:hover{
  border-color: var(--chip-color, var(--brand));
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.chip-icon{ font-size: 1.05rem; }

/* =====================================================================
   How it works
   ===================================================================== */
.how-section{ background: var(--paper-deep); border-radius: var(--radius-lg); margin: 0 0.75rem; }
.how-step{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.how-num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.how-step h3{ font-size: 1.2rem; margin-bottom: 0.5rem; }
.how-step p{ color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* =====================================================================
   Service cards
   ===================================================================== */
.service-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.service-card-top{
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
  background: color-mix(in srgb, var(--chip-color, var(--brand)) 14%, white);
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.service-title{ font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-desc{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.6rem; flex-grow: 1; }
.service-meta{ font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.25rem; }
.service-card-actions{ display: flex; gap: 0.6rem; margin-top: 1rem; }

/* =====================================================================
   Explore CTA banner (index page) — links out to the dedicated search page
   ===================================================================== */
.explore-cta-section{ padding-bottom: 5.5rem; }
.explore-cta-card{
  background: linear-gradient(120deg, var(--ink) 0%, var(--brand-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.explore-cta-card h2{ color: var(--white); font-size: 1.9rem; margin-bottom: 0.4rem; }
.explore-cta-card p{ color: #C9D6F5; max-width: 46ch; margin: 0; }

/* =====================================================================
   Auth pages
   ===================================================================== */
.auth-section{ padding: 4.5rem 0; }
.auth-card{
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}
.auth-title{ font-size: 1.7rem; text-align: center; margin-bottom: 0.35rem; }
.auth-subtitle{ text-align: center; color: var(--ink-soft); margin-bottom: 1.75rem; font-size: 0.95rem; }
.auth-switch{ text-align: center; margin-top: 1.25rem; font-size: 0.92rem; }
.form-label{ font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-control, .form-select{
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0.6rem 0.85rem;
}
.form-control:focus, .form-select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* =====================================================================
   Search page — top search bar + full-width map + big detail modal
   ===================================================================== */
.search-page{
  display: flex;
  flex-direction: column;
  height: calc(100vh - 73px); /* viewport minus sticky navbar */
}
.search-topbar{
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  flex-shrink: 0;
}
.search-topbar-row{
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.search-box{ position: relative; flex: 1 1 320px; min-width: 240px; }
.search-box .search-icon{
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  opacity: 0.6; pointer-events: none;
}
.search-box input{
  padding-inline-start: 2.6rem;
  height: 50px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}
.search-category-select{
  flex: 0 0 auto;
  width: 240px;
  height: 50px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}
.search-results-count{
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-inline-start: auto;
}
.search-map{ flex-grow: 1; width: 100%; }

@media (max-width: 767px){
  .search-page{ height: calc(100vh - 64px); }
  .search-topbar-row{ gap: 0.6rem; }
  .search-category-select{ width: 100%; order: 3; }
  .search-results-count{ order: 4; margin-inline-start: 0; }
}

/* Big detail modal shown when a map pin is clicked */
.service-modal-content{
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.service-modal-close{
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 5;
  background: var(--white);
  border-radius: 50%;
  opacity: 1;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
}
.service-modal-photo{
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-deep);
}
.service-modal-cat-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: color-mix(in srgb, var(--chip-color, var(--brand)) 14%, white);
  color: var(--ink);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-modal-title{ font-size: 1.6rem; margin-bottom: 0.35rem; }
.service-modal-meta{ color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 1rem; }
.service-modal-desc{ font-size: 1rem; color: var(--ink); margin-bottom: 1.25rem; }
.service-modal-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.service-modal-fact{ display: flex; flex-direction: column; gap: 0.2rem; }
.fact-label{ font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.fact-value{ font-weight: 700; font-size: 1rem; }

/* =====================================================================
   Post-service page
   ===================================================================== */
.post-section{ padding: 3.5rem 0 5rem; }
.map-hint{ font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.picker-map{ width: 100%; height: 420px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }

/* =====================================================================
   Dashboard
   ===================================================================== */
.dashboard-section{ padding: 3.5rem 0 5rem; }

/* =====================================================================
   Footer
   ===================================================================== */
.sahult-footer{ background: var(--ink); color: #C9D6D3; padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-brand{ font-family: var(--font-display); font-size: 1.3rem; color: var(--white); font-weight: 700; display:flex; align-items:center; gap:0.4rem; margin-bottom: 0.6rem; }
.footer-tagline{ color: #9FB3AE; font-size: 0.92rem; max-width: 32ch; }
.footer-heading{ color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.85rem; }
.footer-links{ list-style: none; padding: 0; margin: 0; display:flex; flex-direction: column; gap: 0.5rem; }
.footer-links a{ color: #9FB3AE; font-size: 0.92rem; }
.footer-links a:hover{ color: var(--accent); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.82rem; color: #7F9490; text-align: center; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 767px){
  .section{ padding: 3.25rem 0; }
  .hero{ padding: 2rem 0 2.5rem; }
  .how-section{ margin: 0; border-radius: 0; }
}
