
:root {
  --page-bg: #edf6fb;
  --surface: #ffffff;
  --ink: #12345b;
  --muted: #58728f;
  --line: #d9e5ed;
  --blue: #0784df;
  --blue-dark: #075d98;
  --blue-soft: #e9f6ff;
  --green: #0aa05e;
  --green-dark: #07844e;
  --red: #e33b31;
  --shadow: 0 4px 13px rgba(25, 72, 112, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 280px;
  background:
    linear-gradient(180deg, #f8fcff 0, #edf6fb 100%);
  color: var(--ink);
  font-family:
    "Noto Sans Devanagari",
    "Nirmala UI",
    "Mangal",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7fbfe;
  box-shadow: 0 0 30px rgba(0, 50, 85, 0.08);
  overflow: hidden;
}

/* ===== Banner ===== */

.banner-wrap {
  width: 100%;
  background: #08677f;
  overflow: hidden;
}

/*
  Current banner crop is ~2.23:1.
  Using width:100% + height:auto keeps it compact on phones:
  roughly 20–25% of a typical mobile viewport.
*/
.shop-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 31vh;
  object-fit: cover;
  object-position: center;
}

/* ===== Shop actions ===== */

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 12px 8px;
}

.action-button {
  min-width: 0;
  min-height: 82px;
  border-radius: 16px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

.action-button:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.action-call {
  background: linear-gradient(135deg, #13a96d, var(--green-dark));
}

.action-map {
  background: linear-gradient(135deg, #168fe9, #0870c8);
}

.action-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
}

.action-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.action-button strong {
  display: block;
  font-size: clamp(15px, 4vw, 20px);
  line-height: 1.2;
  font-weight: 800;
}

.action-button small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(12px, 3.4vw, 17px);
  line-height: 1.2;
  font-weight: 700;
}

/* ===== Contact directory ===== */

.directory {
  padding: 2px 12px 20px;
}

.contact-category {
  margin-top: 10px;
}

.category-title {
  margin: 0 0 8px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  background: linear-gradient(90deg, #eaf7ff, #dff2ff, #eaf7ff);
  color: var(--blue-dark);
  font-size: clamp(21px, 6vw, 29px);
  line-height: 1.1;
  font-weight: 900;
}

.category-title small {
  font-size: 0.66em;
  font-weight: 800;
}

.category-symbol {
  font-size: 1.15em;
  line-height: 1;
}

.electrician .category-title {
  background: linear-gradient(90deg, #fff7dd, #fff2be, #fff7dd);
  color: #704700;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4f4ff;
  color: var(--blue);
}

.electrician .avatar {
  background: #fff0ed;
  color: var(--red);
}

.avatar svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.contact-main {
  min-width: 0;
}

.contact-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: #102e51;
  font-size: clamp(17px, 4.7vw, 23px);
  line-height: 1.12;
  font-weight: 850;
}

.contact-phone {
  margin-top: 3px;
  color: #17385d;
  font-size: clamp(16px, 4.4vw, 22px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.call-contact {
  min-height: 44px;
  min-width: 91px;
  padding: 8px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #e7f5ff;
  color: #0877ca;
  text-decoration: none;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 850;
  white-space: nowrap;
}

.electrician .call-contact {
  background: #fff4dd;
  color: #b87600;
}

.call-contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.load-error {
  margin: 0 12px 20px;
  padding: 12px;
  border-radius: 12px;
  background: #fff0ef;
  color: #9b241d;
  text-align: center;
  font-weight: 700;
}

/* ===== Very small phones ===== */

@media (max-width: 355px) {
  .actions {
    gap: 7px;
    padding-inline: 8px;
  }

  .action-button {
    min-height: 72px;
    padding-inline: 7px;
    gap: 5px;
  }

  .action-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .directory {
    padding-inline: 8px;
  }

  .contact-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px;
    padding-inline: 8px;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .avatar svg {
    width: 24px;
    height: 24px;
  }

  .call-contact {
    min-width: 72px;
    padding-inline: 9px;
  }
}

/* ===== Desktop / tablet ===== */

@media (min-width: 721px) {
  body {
    padding: 24px;
  }

  .site-shell {
    border-radius: 24px;
  }

  .actions {
    padding: 16px 18px 10px;
    gap: 14px;
  }

  .directory {
    padding: 4px 18px 26px;
  }

  .contact-list {
    gap: 10px;
  }

  .contact-row {
    padding: 10px 15px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .action-button {
    transition: none;
  }
}
