/* =====================================================================
   NIRMALI - Design system
   Hand-written, no build step. Mobile-first. Ships as static CSS.

   Palette rationale: deep indigo carries the civic/trustworthy feel a
   local directory needs; the saffron accent is warm and regional without
   being a flag cliche. Nothing here imitates Justdial, Google or Yelp.
   ===================================================================== */

:root {
  /* Brand */
  --ink:            #10243a;
  --ink-soft:       #3d5570;
  --muted:          #6b7d92;
  --line:           #e2e8f0;
  --line-soft:      #eef2f7;
  --bg:             #f7f9fc;
  --surface:        #ffffff;

  --brand:          #123a5e;
  --brand-600:      #0e2f4d;
  --brand-700:      #0a2439;
  --brand-100:      #e7eef5;
  --brand-50:       #f2f7fb;

  --accent:         #e08428;
  --accent-600:     #c46f1b;
  --accent-50:      #fdf4e9;

  --teal:           #12776e;
  --teal-50:        #e8f5f3;

  --ok:             #12805c;
  --ok-50:          #e7f6f0;
  --warn:           #b06a00;
  --warn-50:        #fdf3e2;
  --danger:         #c0362c;
  --danger-50:      #fdeceb;

  --star:           #f0a020;

  /* Shape + depth */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(16,36,58,.06);
  --sh-sm: 0 2px 8px rgba(16,36,58,.07);
  --sh:    0 6px 20px rgba(16,36,58,.09);
  --sh-lg: 0 16px 44px rgba(16,36,58,.14);

  --header-h: 64px;
  --wrap: 1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", "Noto Sans Devanagari", Arial, sans-serif;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }
small { font-size: .82rem; }

/* Visible focus for keyboard users, suppressed for mouse clicks */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }
.wrap--form   { max-width: 520px; }

.section { padding: 2.5rem 0; }
.section--tight { padding: 1.75rem 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .section-sub { color: var(--muted); margin: .25rem 0 0; font-size: .93rem; }
.section-head a { font-weight: 600; font-size: .92rem; white-space: nowrap; }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

/* ------------------------------------------------------------ surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
}
.card--pad { padding: 1.25rem; }
.card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: #cfdae7; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel__head {
  padding: .95rem 1.15rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--brand-50);
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.02rem; }
.panel__body { padding: 1.15rem; }

/* -------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--brand); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--teal) 100%);
  color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800;
}
.logo__sub { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-top: 2px; }

.nav { display: none; align-items: center; gap: .2rem; margin-left: auto; }
.nav a {
  padding: .5rem .7rem; border-radius: var(--r-sm); color: var(--ink-soft);
  font-size: .92rem; font-weight: 500;
}
.nav a:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.nav a.is-active { color: var(--brand); background: var(--brand-100); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav + .header__actions { margin-left: .5rem; }

.burger {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: .5rem 0 1rem; max-height: 75vh; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: .8rem .25rem; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); font-weight: 500;
}
.mobile-menu a:hover { text-decoration: none; color: var(--brand); }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: #fff;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  text-align: center; min-height: 44px; /* touch target */
}
.btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.btn--accent   { background: var(--accent); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost    { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand); border-color: #c9d8e6; }
.btn--light    { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: #f0f5fa; color: var(--brand); }
.btn--danger   { background: var(--danger); }
.btn--danger:hover { background: #a32c23; }
.btn--ok       { background: var(--ok); }
.btn--ok:hover { background: #0d6749; }
.btn--wa       { background: #1faa54; }
.btn--wa:hover { background: #188a44; }
.btn--sm { padding: .45rem .75rem; font-size: .85rem; min-height: 36px; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.02rem; min-height: 52px; }
.btn--block { display: flex; width: 100%; }

/* -------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  background: var(--line-soft); color: var(--ink-soft); white-space: nowrap;
}
.badge--ok     { background: var(--ok-50);     color: var(--ok); }
.badge--warn   { background: var(--warn-50);   color: var(--warn); }
.badge--danger { background: var(--danger-50); color: var(--danger); }
.badge--muted  { background: var(--line-soft); color: var(--muted); }
.badge--brand  { background: var(--brand-100); color: var(--brand); }

.badge--verified { background: var(--ok-50); color: var(--ok); }
.badge--featured { background: var(--accent-50); color: var(--accent-600); }
/* Promoted content must always be visibly labelled. */
.badge--sponsor {
  background: var(--accent-50); color: var(--accent-600);
  border: 1px solid #f0d9bd;
}

/* --------------------------------------------------------------- forms */
.field { margin-bottom: 1.1rem; }
.field > label, .label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: .35rem;
}
.label .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: .72rem .85rem;
  border: 1px solid #cfd9e4; border-radius: var(--r-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 46px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18,58,94,.12);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7d92' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem;
}
.input.has-error, .select.has-error, .textarea.has-error {
  border-color: var(--danger); background: #fffafa;
}
.field__error { display: block; color: var(--danger); font-size: .82rem; margin-top: .3rem; font-weight: 500; }
.field__hint  { display: block; color: var(--muted);  font-size: .82rem; margin-top: .3rem; }

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 18px; }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------- flash msgs */
.flash {
  padding: .85rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem;
  font-size: .92rem; font-weight: 500; border: 1px solid transparent;
  display: flex; gap: .6rem; align-items: flex-start;
}
.flash--success { background: var(--ok-50);     color: var(--ok);     border-color: #bfe5d5; }
.flash--error   { background: var(--danger-50); color: var(--danger); border-color: #f5c9c5; }
.flash--info    { background: var(--brand-50);  color: var(--brand);  border-color: #cfdff0; }
.flash--warning { background: var(--warn-50);   color: var(--warn);   border-color: #f2ddb8; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(224,132,40,.30), transparent 62%),
    linear-gradient(160deg, #0d2a44 0%, var(--brand) 46%, #17564f 100%);
  padding: 3rem 0 3.25rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .32rem .8rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero__lead {
  color: rgba(255,255,255,.9); font-size: 1.05rem;
  max-width: 620px; margin: 0 auto 1.6rem;
}
.hero__stats {
  display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.6rem; color: rgba(255,255,255,.9);
}
.hero__stat b { display: block; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.hero__stat span { font-size: .8rem; opacity: .82; letter-spacing: .03em; }

/* ------------------------------------------------------------ searchbar */
.searchbar {
  display: flex; gap: .5rem; background: #fff; padding: .5rem;
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  max-width: 720px; margin: 0 auto; flex-wrap: wrap;
}
.searchbar__input {
  flex: 1 1 240px; border: 0; padding: .8rem .9rem; font: inherit; font-size: .98rem;
  color: var(--ink); background: transparent; min-height: 48px;
}
.searchbar__input::placeholder { color: #9aa8b8; }
.searchbar__input:focus { outline: none; }
.searchbar__divider { width: 1px; background: var(--line); margin: .4rem 0; }
.searchbar__select {
  flex: 0 1 190px; border: 0; background: transparent; font: inherit; font-size: .95rem;
  color: var(--ink-soft); padding: .8rem .5rem; min-height: 48px;
  appearance: none; cursor: pointer;
}
.searchbar__select:focus { outline: none; }
.searchbar .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .searchbar { flex-direction: column; padding: .75rem; }
  .searchbar__divider { display: none; }
  .searchbar__select { border-top: 1px solid var(--line); }
  .searchbar .btn { width: 100%; }
}

.quick-links { margin-top: 1.1rem; display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; }
.quick-links a {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .82rem; padding: .32rem .75rem; border-radius: var(--r-pill);
}
.quick-links a:hover { background: rgba(255,255,255,.24); text-decoration: none; }

/* ------------------------------------------------------------ category */
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1.1rem .6rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  text-align: center; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat-card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--sh); border-color: #cfdae7; color: var(--brand);
}
.cat-card__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 1.3rem;
}
.cat-card__name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.cat-card__count { font-size: .76rem; color: var(--muted); }

/* ------------------------------------------------------- business card */
.biz-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.biz-card__media {
  position: relative; aspect-ratio: 16 / 9; background: var(--brand-50); overflow: hidden;
}
.biz-card__media img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__flags { position: absolute; top: .55rem; left: .55rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.biz-card__save {
  position: absolute; top: .5rem; right: .5rem;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; font-size: 1rem;
  box-shadow: var(--sh-xs); transition: color .15s ease, transform .15s ease;
}
.biz-card__save:hover { transform: scale(1.08); }
.biz-card__save.is-saved { color: var(--danger); }

.biz-card__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.biz-card__cat { font-size: .74rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.biz-card__name { font-size: 1.02rem; font-weight: 700; margin: 0; }
.biz-card__name a { color: var(--ink); }
.biz-card__name a:hover { color: var(--brand); text-decoration: none; }
.biz-card__meta { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.biz-card__actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .7rem; }
.biz-card__actions .btn { flex: 1; padding: .5rem; font-size: .84rem; min-height: 40px; }

.rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.rating__value { font-weight: 700; color: var(--ink); }
.rating__count { color: var(--muted); font-size: .8rem; }
.stars { display: inline-flex; gap: 1px; letter-spacing: -1px; }
.star { color: #d6dde6; font-size: .95rem; }
.star--full { color: var(--star); }
.star--half { background: linear-gradient(90deg, var(--star) 50%, #d6dde6 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.is-open  { color: var(--ok);     font-weight: 600; }
.is-shut  { color: var(--danger); font-weight: 600; }

/* ---------------------------------------------------------- directory */
.dir-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 950px) { .dir-layout { grid-template-columns: 262px 1fr; } }

.filters { position: sticky; top: calc(var(--header-h) + 12px); }
.filters__group { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.filters__group:last-child { border-bottom: 0; }
.filters__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.filters__list { display: flex; flex-direction: column; gap: .45rem; max-height: 240px; overflow-y: auto; }

.filters-toggle { display: flex; width: 100%; }
@media (min-width: 950px) {
  .filters-toggle { display: none; }
  .filters-panel { display: block !important; }
}
@media (max-width: 949px) {
  .filters-panel { display: none; }
  .filters-panel.is-open { display: block; }
  .filters { position: static; }
}

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.results-bar__count { color: var(--muted); font-size: .9rem; }
.results-bar__count b { color: var(--ink); }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand-100); color: var(--brand);
  padding: .28rem .7rem; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600;
}
.chip a { color: inherit; opacity: .7; font-weight: 700; }
.chip a:hover { opacity: 1; text-decoration: none; }

/* ----------------------------------------------------- business profile */
.profile-cover {
  height: 200px; background: linear-gradient(140deg, var(--brand), var(--teal));
  position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .profile-cover { height: 280px; } }

.profile-head { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 1.25rem; }
.profile-head__top { display: flex; gap: 1rem; align-items: flex-start; }
.profile-logo {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: var(--r);
  border: 3px solid #fff; box-shadow: var(--sh-sm); background: #fff;
  margin-top: -56px; object-fit: cover; overflow: hidden;
}
.profile-logo--placeholder {
  display: grid; place-items: center; background: var(--brand-100);
  color: var(--brand); font-size: 1.8rem; font-weight: 800;
}
.profile-head h1 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); margin-bottom: .3rem; }
.profile-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.profile-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

.profile-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.1rem; }
.profile-actions .btn { padding: .65rem .4rem; font-size: .88rem; }
@media (min-width: 700px) { .profile-actions { display: flex; } .profile-actions .btn { flex: 0 1 auto; padding: .7rem 1.2rem; } }

.profile-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; margin-top: 1.25rem; }
@media (min-width: 950px) { .profile-layout { grid-template-columns: 1fr 320px; } }

/* Sticky mobile call bar - the single most used action on a local directory */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--line);
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  display: flex; gap: .5rem; box-shadow: 0 -4px 18px rgba(16,36,58,.10);
}
.action-bar .btn { flex: 1; min-height: 46px; }
@media (min-width: 950px) { .action-bar { display: none; } }
body.has-action-bar { padding-bottom: 76px; }
@media (min-width: 950px) { body.has-action-bar { padding-bottom: 0; } }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.is-today { font-weight: 700; color: var(--brand); }

.service-list { display: grid; gap: .6rem; }
.service-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .7rem .9rem; background: var(--brand-50); border-radius: var(--r-sm);
}
.service-item__price { font-weight: 700; color: var(--teal); white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .5rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; width: 100%; }

/* ------------------------------------------------------------- reviews */
.rating-summary { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.rating-big { text-align: center; }
.rating-big__num { font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--ink); }
.rating-bars { flex: 1; min-width: 200px; display: grid; gap: .3rem; }
.rating-bar { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.rating-bar__track { flex: 1; height: 7px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--star); border-radius: var(--r-pill); }

.review { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; gap: .7rem; align-items: center; margin-bottom: .5rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  background: var(--brand-100); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__author { font-weight: 600; font-size: .94rem; }
.review__date { font-size: .8rem; color: var(--muted); }
.review__reply {
  margin-top: .75rem; padding: .75rem .95rem; background: var(--brand-50);
  border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem;
}
.review__reply strong { color: var(--brand); }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 1.9rem; color: #d6dde6; cursor: pointer; line-height: 1; transition: color .12s ease; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------- post cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.post-card__media { aspect-ratio: 16/10; background: var(--brand-50); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-600); }
.post-card__title { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.35; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand); text-decoration: none; }
.post-card__excerpt { font-size: .88rem; color: var(--muted); margin: 0; }
.post-card__foot { margin-top: auto; padding-top: .6rem; font-size: .78rem; color: var(--muted); display: flex; gap: .75rem; }

.video-card__media { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 2.4rem; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.event-card { display: flex; gap: 1rem; padding: 1rem; align-items: flex-start; }
.event-date {
  flex: 0 0 62px; text-align: center; background: var(--brand); color: #fff;
  border-radius: var(--r-sm); padding: .5rem .25rem;
}
.event-date__day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date__mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }

.article-body { font-size: 1.03rem; line-height: 1.75; color: #223449; }
.article-body h2 { margin-top: 1.9rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body img { border-radius: var(--r); margin: 1.25rem 0; }
.article-body blockquote {
  margin: 1.25rem 0; padding: .85rem 1.15rem; background: var(--brand-50);
  border-left: 4px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-soft);
}
.article-body a { text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  border-radius: var(--r-lg); padding: 2rem 1.5rem; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #17564f 100%);
}
.cta-band--accent { background: linear-gradient(135deg, #a85c11 0%, var(--accent) 100%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.25rem; }

/* --------------------------------------------------------- breadcrumbs */
.crumbs { font-size: .84rem; color: var(--muted); padding: .9rem 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------- pagination */
.pagination { display: flex; gap: .3rem; justify-content: center; align-items: center; margin-top: 1.75rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-soft); font-size: .9rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-gap { border: 0; background: transparent; }

/* -------------------------------------------------------- empty states */
.empty { text-align: center; padding: 3rem 1.25rem; color: var(--muted); }
.empty__icon { font-size: 2.6rem; margin-bottom: .6rem; opacity: .5; }
.empty h3 { color: var(--ink-soft); margin-bottom: .4rem; }

/* ---------------------------------------------------------------- ads */
/* Ads are always labelled and given breathing room, never disguised
   as content and never placed where a mis-tap is likely. */
.ad-slot { margin: 1.75rem 0; text-align: center; }
.ad-slot__label {
  display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: #9aa8b8; margin-bottom: .4rem; font-weight: 600;
}
.ad-slot__inner { display: inline-block; max-width: 100%; overflow: hidden; }
.ad-slot img { border-radius: var(--r-sm); margin: 0 auto; }

/* -------------------------------------------------------------- footer */
.footer { background: #0c2136; color: #a9bccf; margin-top: 3rem; padding: 2.5rem 0 1.25rem; }
.footer h4 { color: #fff; font-size: .92rem; margin-bottom: .8rem; letter-spacing: .02em; }
.footer a { color: #a9bccf; font-size: .89rem; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer__brand { grid-column: auto; max-width: 280px; } }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__bottom {
  margin-top: 2rem; padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; font-size: .9rem;
}
.footer__social a:hover { background: var(--accent); color: #fff; }

/* -------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.table th, .table td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--brand-50); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: #fafcfe; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- stat tiles */
.stats { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(158px,1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.stat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.65rem; font-weight: 800; line-height: 1.15; margin-top: .2rem; color: var(--ink); }
.stat__sub { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.stat--accent { border-left: 3px solid var(--accent); }
.stat--ok     { border-left: 3px solid var(--ok); }
.stat--warn   { border-left: 3px solid var(--warn); }
.stat--danger { border-left: 3px solid var(--danger); }

.progress { height: 8px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--brand)); border-radius: var(--r-pill); transition: width .4s ease; }

/* -------------------------------------------------------------- steps */
.steps { display: flex; gap: .35rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step {
  flex: 1 1 auto; min-width: 60px; padding: .5rem .3rem; text-align: center;
  border-bottom: 3px solid var(--line); font-size: .75rem; color: var(--muted); font-weight: 600;
}
.step.is-done   { border-color: var(--ok);    color: var(--ok); }
.step.is-active { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------- modals */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(10,26,42,.55); padding: 1rem;
  align-items: center; justify-content: center;
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff; border-radius: var(--r-lg); max-width: 460px; width: 100%;
  padding: 1.5rem; box-shadow: var(--sh-lg); max-height: 90vh; overflow-y: auto;
}
.modal__actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ------------------------------------------------------------ utility */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 699px) { .hide-sm { display: none !important; } }

/* --------------------------------------------------- motion / contrast */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card--hover:hover, .cat-card:hover { transform: none; }
}

@media print {
  .header, .footer, .action-bar, .btn, .ad-slot { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------------- autocomplete */
.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); overflow: hidden; max-height: 340px; overflow-y: auto;
  text-align: left;
}
.suggest-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: .6rem .9rem; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item:focus { background: var(--brand-50); text-decoration: none; }
.suggest-item__label { font-weight: 600; font-size: .92rem; }
.suggest-item__sub   { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------- error page */
.error-page { text-align: center; padding: 4rem 1rem 5rem; }
.error-page__code {
  font-size: clamp(4rem, 16vw, 7rem); font-weight: 800; line-height: 1;
  color: var(--brand); opacity: .18; letter-spacing: -.04em;
}
.error-page h1 { margin-top: -.5rem; }
.error-page p { color: var(--muted); max-width: 480px; margin: 0 auto 1.5rem; }
.error-page__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.error-debug {
  text-align: left; margin: 2rem auto 0; max-width: 820px; background: #fff;
  border: 1px solid var(--line); border-left: 3px solid var(--danger);
  border-radius: var(--r); padding: 1rem; font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto;
}

/* ------------------------------------------------------- plan cards */
.plan-card { display: flex; flex-direction: column; padding: 1.5rem; position: relative; }
.plan-card--popular { border-color: var(--accent); box-shadow: var(--sh); }
.plan-card__tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: var(--r-pill); letter-spacing: .03em;
}
.plan-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.plan-card__price { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--brand); }
.plan-card__period { font-size: .84rem; color: var(--muted); font-weight: 500; }
.plan-card__features { list-style: none; padding: 0; margin: 1.15rem 0; display: grid; gap: .5rem; flex: 1; }
.plan-card__features li { display: flex; gap: .5rem; font-size: .9rem; align-items: flex-start; }
.plan-card__features li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: 0 0 auto; }
