:root {
  color-scheme: dark;
  --page-bg: #041b3d;
  --card-bg: #ffffff;
  --card-text: #172238;
  --whatsapp: #25d366;
  --page-gutter: clamp(16px, 3.472vw, 20px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: #ffffff;
  font-family: Arial, Tahoma, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  max-width: 576px;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(106px, 13.89svh, 151px) var(--page-gutter) 80px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo {
  width: clamp(214px, 43.403vw, 250px);
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

h1 {
  margin: clamp(58px, 7.18svh, 78px) 0 0;
  font-size: clamp(22px, 4.688vw, 27px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.branch-list {
  display: grid;
  gap: 14px;
  margin-top: 33px;
}

.branch-card {
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(12px, 3.125vw, 18px);
  border: 0;
  border-radius: 11px;
  background: var(--card-bg);
  color: var(--card-text);
  text-align: center;
  text-decoration: none;
  font-size: clamp(16px, 3.646vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  transition: transform 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

/* High-specificity rule prevents host or cached global link styles from overriding it. */
.branch-list > .branch-card.whatsapp-button {
  background-color: var(--whatsapp) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.branch-card span {
  display: block;
  max-width: 100%;
  color: inherit;
}

.branch-card:focus-visible {
  outline: 3px solid #f5c85f;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .branch-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
  }

  .branch-card:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-top: clamp(88px, 11.5svh, 116px);
  }

  h1 {
    margin-top: 52px;
  }

  .branch-list {
    margin-top: 23px;
    gap: 12px;
  }

  .branch-card {
    min-height: 68px;
    border-radius: 10px;
  }
}

@media (max-width: 340px) {
  .branch-card {
    padding-inline: 10px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-card {
    transition: none;
  }
}
