
/* ---------- Fonts (IRANSansX: Regular / Medium / ExtraBold) ---------- */
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-RegularD4.woff2") format("woff2"); font-weight: 100 400; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-MediumD4.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-ExtraBoldD4.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --primary: #1355B5;
  --primary-hover: #0E4796;
  --primary-soft: #EEF4FC;
  --primary-soft-2: #D6E4F7;
  --primary-deep: #0D3F87;
  --secondary: #EF4444;          /* brand red: underline, accents */
  --secondary-strong: #D42A2A;   /* same red, dark enough for white text on the cart badge */
  --fg: #1E293B;
  --fg-muted: #475569;
  --fg-subtle: #586579;
  --bg: #FFFFFF;
  --muted: #F1F5F9;
  --muted-2: #F8FAFC;
  --border: #E2E8F0;
  --success: #15803D;
  --warning: #A35A00;
  --danger: #D42A2A;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  --m-top: 60px;                 /* phone: height of the logo row */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: "IRANSansX", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p, h2, h3 { margin: 0; }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.i {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 18px; height: 18px; }
.i--xs { width: 16px; height: 16px; }
.flip { transform: scaleX(-1); }

.container { width: 100%; max-width: 1328px; margin-inline: auto; padding-inline: 24px; }

.skip {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 500;
  transform: translateY(-160%); transition: transform .15s;
}
.skip:focus { transform: none; }

/* ---------- Header shell ---------- */
.hdr { position: sticky; top: 0; z-index: 50; }
.hdr-main, .hdr-search, .hdr-nav { background: var(--bg); }

.hdr-main__in { display: flex; align-items: center; gap: 24px; height: 80px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.logo svg { height: 44px; width: calc(44px * 356 / 110); display: block; }
.logo img { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }

/* ---------- Icon button (44px min touch target) ---------- */
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--fg);
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--muted); }

/* ---------- Search (desktop) ---------- */
.search { position: relative; flex: 1; max-width: 640px; }
.search__icon {
  position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%;
  color: var(--fg-subtle); pointer-events: none;
}
.search input[type="search"] {
  width: 100%; height: 48px;
  padding-inline: 50px 16px;
  font-size: 15px;
  background: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--fg-subtle); }
.search input::-webkit-search-cancel-button { appearance: none; }
.search input:hover { border-color: var(--border); }
.search input:focus { background: var(--bg); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft-2); }

.search-pop {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60;
  padding: 20px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Actions ---------- */
.actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.login {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding-inline: 14px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, background-color .15s;
}
.login:hover { border-color: #CBD5E1; background: var(--muted-2); }
.vdiv { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }

.badge {
  /* Top-right corner: the empty space above the basket, so the icon stays readable. */
  position: absolute; top: 3px; right: 1px;
  min-width: 22px; height: 22px; padding-inline: 5px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--secondary-strong);
  border: 2px solid var(--bg); border-radius: 999px;
}

/* ---------- Desktop nav row ---------- */
.hdr-nav { border-bottom: 1px solid var(--border); }
.hdr-nav__in { position: relative; display: flex; align-items: center; gap: 4px; height: 48px; }
.nav-list { display: flex; align-items: stretch; height: 100%; }
.nav-list li { display: flex; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; padding-inline: 12px;
  font-size: 15px; color: var(--fg-muted);
  white-space: nowrap;
  transition: color .15s;
}
.nav-link .i { color: var(--fg-subtle); transition: color .15s; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px;
  background: var(--secondary); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link:hover .i { color: var(--fg); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link:focus-visible { outline-offset: -3px; }

.nav-link--cat { padding-inline-start: 0; font-weight: 700; color: var(--fg); }
.nav-link--cat::after { inset-inline-start: 0; }
.nav-link--cat .i { color: var(--fg); }
.nav-link--cat .chev { transition: transform .2s var(--ease); }
.nav-link--cat[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr-nav .vdiv { height: 20px; margin-inline: 8px; }

.support-pill {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding-inline: 14px;
  font-size: 14px; font-weight: 500; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px;
  transition: background-color .15s;
}
.support-pill:hover { background: var(--primary-soft-2); }
.support-pill .num { font-weight: 700; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; top: 100%; inset-inline: 24px; z-index: 60;
  display: grid; grid-template-columns: 264px 1fr 296px;
  min-height: 360px;
  background: var(--bg);
  border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mega[hidden] { display: none; }
.mega-cats { padding: 12px; background: var(--muted-2); border-inline-end: 1px solid var(--border); }
.mega-cat {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding-inline: 12px; border-radius: 10px;
  font-weight: 500;
  transition: background-color .12s, color .12s;
}
.mega-cat .i:first-child { color: var(--fg-subtle); }
.mega-cat .chev-l { margin-inline-start: auto; color: var(--fg-subtle); opacity: 0; transition: opacity .12s; }
.mega-cat.is-active { background: var(--bg); color: var(--primary); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.mega-cat.is-active .i { color: var(--primary); opacity: 1; }

.mega-pane { padding: 24px 28px; }
.mega-pane[hidden] { display: none; }
.mega-pane__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.mega-pane__title { font-size: 18px; font-weight: 700; }
.see-all { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; font-size: 14px; font-weight: 500; color: var(--primary); }
.see-all:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
@media (min-width: 1280px) { .mega-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mega-links a {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding-inline: 12px; border-radius: 8px;
  color: var(--fg-muted);
  transition: background-color .12s, color .12s;
}
.mega-links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; flex-shrink: 0; }
.mega-links a:hover { background: var(--muted); color: var(--fg); }
.mega-links a:hover::before { background: var(--secondary); }

.help-card {
  margin: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--primary-soft); border-radius: 14px;
}
.help-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); color: var(--primary); }
.help-card__title { font-size: 16px; font-weight: 700; }
.help-card p { font-size: 14px; line-height: 1.8; color: var(--fg-muted); }
.help-card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.help-card__actions .btn { white-space: nowrap; padding-inline: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding-inline: 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft-2); }
.btn--outline { border: 1px solid var(--border); color: var(--fg); }
.btn--outline:hover { background: var(--muted-2); border-color: #CBD5E1; }
.btn--block { width: 100%; min-height: 48px; }

/* ---------- Search suggestions (shared by desktop popup + phone overlay) ---------- */
.sg { display: flex; flex-direction: column; gap: 12px; }
.sg-title { font-size: 14px; font-weight: 500; color: var(--fg-subtle); }
.sg-title:not(:first-child) { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding-inline: 14px;
  font-size: 14px;
  border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .12s, background-color .12s, color .12s;
}
.chip .i { color: var(--fg-subtle); }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.chip:hover .i { color: var(--primary); }
.tip {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 8px; padding: 12px 14px;
  font-size: 14px; line-height: 1.8; color: var(--fg-muted);
  background: var(--muted-2); border: 1px dashed #CBD5E1; border-radius: 10px;
}
.tip .i { color: var(--primary); margin-top: 3px; }
.tip strong { color: var(--fg); font-weight: 700; }

/* ---------- Scrim (dims the page under mega menu / search) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, .32);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.scrim.on { opacity: 1; visibility: visible; }

/* ---------- Phone search row ---------- */
.hdr-search { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.m-search-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 48px; padding-inline: 14px;
  font-size: 16px; color: var(--fg-subtle); text-align: start;
  background: var(--muted); border-radius: var(--radius);
}
.m-search-btn:active { background: #E8EDF3; }

/* ---------- Dialogs (phone menu + phone search) ---------- */
dialog { padding: 0; border: 0; color: var(--fg); background: var(--bg); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }

.drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto;
  margin: 0; width: min(88vw, 380px); max-width: none;
  height: 100dvh; max-height: none;
  box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: drawer-in .28s var(--ease); }
.drawer[open]::backdrop { animation: fade-in .28s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding-inline: 16px 8px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.drawer__head .logo svg { height: 34px; width: calc(34px * 356 / 110); }
.drawer__head .logo img { height: 34px; max-width: 170px; }
.drawer__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
}
.drawer__label { margin-top: 16px; padding-inline: 4px; font-size: 14px; font-weight: 500; color: var(--fg-subtle); }

.acc details { border-bottom: 1px solid var(--border); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding-inline: 4px;
  font-weight: 500; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i:first-child { color: var(--fg-subtle); }
.acc summary .chev { margin-inline-start: auto; color: var(--fg-subtle); transition: transform .2s var(--ease); }
.acc details[open] summary { color: var(--primary); }
.acc details[open] summary .i { color: var(--primary); }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc ul { padding: 0 0 12px; }
.acc ul a {
  display: flex; align-items: center;
  min-height: 48px; padding-inline: 40px 12px; border-radius: 8px;
  color: var(--fg-muted);
}
.acc ul a:active { background: var(--muted); }
.acc ul .all { color: var(--primary); font-weight: 500; }

.drawer-links a {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding-inline: 4px; border-radius: 8px;
}
.drawer-links .i { color: var(--fg-subtle); }
.drawer-links a:active { background: var(--muted); }

.support-card {
  margin-top: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--primary-soft); border-radius: 14px;
}
.support-card__title { font-weight: 700; margin-bottom: 4px; }
.support-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding-inline: 14px;
  background: var(--bg); border-radius: 10px;
  font-weight: 500;
}
.support-row .i { color: var(--primary); }
.support-row .num { margin-inline-start: auto; font-weight: 700; color: var(--primary); }
.support-meta { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.8; color: var(--fg-muted); margin-top: 4px; }
.support-meta .i { color: var(--fg-subtle); margin-top: 3px; }

.m-search {
  position: fixed; inset: 0; margin: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
}
.m-search[open] { animation: fade-in .18s var(--ease); }
.m-search__inner { display: flex; flex-direction: column; height: 100%; }
.m-search__bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 8px 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.m-search__field { position: relative; flex: 1; }
.m-search__field .i { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--fg-subtle); pointer-events: none; }
.m-search__field input {
  width: 100%; height: 48px; padding-inline: 46px 14px;
  font-size: 16px; /* 16px stops iOS from zooming the page */
  background: var(--muted); border: 1px solid transparent; border-radius: var(--radius);
  outline: none; appearance: none;
}
.m-search__field input::placeholder { color: var(--fg-subtle); }
.m-search__field input:focus { background: var(--bg); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft-2); }
.m-search__body { flex: 1; overflow-y: auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }

/* ---------- Breakpoints ---------- */
@media (max-width: 1023.98px) {
  .d-only { display: none !important; }
  .container { padding-inline: 16px; }
  .hdr { transition: transform .25s var(--ease); }
  /* Keep the last 8px of the logo row (empty space) as breathing room above the search. */
  .hdr.is-tucked { transform: translateY(calc(8px - var(--m-top))); }
  .hdr.is-scrolled .hdr-search { box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .18); }
  .hdr-main__in { height: var(--m-top); gap: 4px; }
  .hdr-main__in > .icon-btn:first-child { margin-inline-start: -8px; }
  .logo svg { height: 34px; width: calc(34px * 356 / 110); }
  .logo img { height: 34px; max-width: 170px; }
  .actions { gap: 0; margin-inline-end: -8px; }
  /* Login becomes an icon button; its text stays for screen readers. */
  .login { width: 44px; padding: 0; justify-content: center; border: 0; }
  .login:hover { background: var(--muted); }
  .login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chip { min-height: 44px; }
}
@media (min-width: 1024px) {
  .m-only { display: none !important; }
  /* On scroll down the category row slides up under the main row; it returns on scroll up. */
  .hdr-main { position: relative; z-index: 2; transition: box-shadow .2s; }
  .hdr-nav { position: relative; z-index: 1; transition: transform .25s var(--ease), visibility .25s; }
  .hdr.is-tucked { pointer-events: none; }
  .hdr.is-tucked .hdr-main { pointer-events: auto; box-shadow: 0 1px 0 var(--border), 0 8px 20px -12px rgba(15, 23, 42, .2); }
  .hdr.is-tucked .hdr-nav { transform: translateY(-100%); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ================================================================
   Footer shell
   ================================================================ */
.ftr { background: var(--muted-2); border-top: 1px solid var(--border); padding-top: 40px; }

/* ---------- 1. Visit & contact: a compact blue band, set apart from everything else ---------- */
.visit {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 20px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: 16px;
}
/* Brand drop from the logo, very faint, as a watermark */
.visit__mark { position: absolute; z-index: -1; inset-inline-end: -24px; bottom: -48px; width: 150px; height: auto; opacity: .07; pointer-events: none; }
.visit :focus-visible { outline-color: #fff; }

/* Tablet: address + buttons on row 1, phone / WhatsApp / hours on row 2 */
.visit__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; align-items: center; }
.vi { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vi--addr { grid-column: span 2; }
.vi--contact { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.vi__icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.vi__text { display: flex; flex-direction: column; min-width: 0; }
.vi__label { font-size: 13px; color: rgba(255, 255, 255, .78); }
.vi__value { font-size: 15px; font-weight: 700; line-height: 1.7; }
.vi__value.ltr { align-self: flex-start; font-size: 16px; } /* keep LTR numbers on the RTL start edge */
.vi__hours { font-size: 14px; font-weight: 500; line-height: 1.8; }
a.vi:hover .vi__icon { background: rgba(255, 255, 255, .24); }
a.vi:hover .vi__value { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.vi-actions { display: flex; gap: 8px; justify-self: end; }
.vbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding-inline: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.vbtn--white { background: #fff; color: var(--primary); }
.vbtn--white:hover { background: var(--primary-soft); }

/* ---------- 2. Why buy here ---------- */
.perks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
}
.perk { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.perk + .perk { border-inline-start: 1px solid var(--border); }
.perk__icon { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.perk__title { font-size: 15px; font-weight: 700; }
.perk__sub { font-size: 13px; color: var(--fg-subtle); line-height: 1.7; }

/* ---------- 3. About + link groups ---------- */
.links { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto; gap: 40px; padding-block: 44px 36px; }
.about .logo { display: inline-flex; border-radius: 8px; }
.about .logo svg { height: 40px; width: calc(40px * 356 / 110); display: block; }
.about .logo img { height: 40px; max-width: 200px; }
.about p { margin-top: 14px; max-width: 42ch; font-size: 14px; line-height: 2.1; color: var(--fg-muted); }

/* Trust badges: two equal boxes. Paste each official badge code inside its box. */
.trust__title { font-size: 16px; font-weight: 700; }
.seals { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.seal {
  width: 104px; height: 104px; padding: 8px;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
}
.seal a { display: grid; place-items: center; width: 100%; height: 100%; }
.seal img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.seal:has(.seal__ph) { border-style: dashed; border-color: #CBD5E1; }
.seal__ph { font-size: 12px; line-height: 1.7; text-align: center; color: var(--fg-subtle); }

.group summary { list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group h3 { font-size: 16px; font-weight: 700; }
.group .chev { display: none; }
.group ul { display: grid; gap: 2px; margin-top: 14px; }
.group ul a {
  display: inline-flex; align-items: center; min-height: 36px;
  font-size: 15px; color: var(--fg-muted);
  transition: color .12s;
}
.group ul a:hover { color: var(--primary); }

/* ---------- 4. Bottom bar ---------- */
.bottom { border-top: 1px solid var(--border); }
.bottom__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px calc(12px + env(safe-area-inset-bottom)); }
.bottom p { font-size: 14px; color: var(--fg-subtle); }
.to-top {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding-inline: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--fg-muted);
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color .15s, color .15s;
}
.to-top:hover { color: var(--primary); border-color: var(--primary); }

/* ================================================================
   Breakpoints
   ================================================================ */
/* Desktop: everything on one row, divided by thin lines */
@media (min-width: 1200px) {
  .visit { padding: 18px 24px; }
  .visit__in { grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 0 24px; }
  .vi--addr { grid-column: auto; }
  .vi-actions { justify-self: start; }
  .vi--contact { padding-top: 0; border-top: 0; padding-inline-start: 24px; border-inline-start: 1px solid rgba(255, 255, 255, .18); align-self: stretch; }
}

@media (max-width: 1023.98px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-inline-start: 0; }
  .perk:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .about { grid-column: 1 / -1; }
}

/* Phone: link groups become tap-to-open sections; everything tappable is 48px+ */
@media (max-width: 767.98px) {
  .container { padding-inline: 16px; }
  .ftr { padding-top: 24px; }
  /* Phone: short stacked rows, no big boxes */
  .visit { padding: 16px; border-radius: 14px; }
  .visit__mark { width: 110px; bottom: -36px; }
  .visit__in { grid-template-columns: 1fr; gap: 10px; }
  .vi--addr { grid-column: auto; align-items: flex-start; }
  .vi--addr .vi__icon { width: 36px; height: 36px; }
  .vi--addr .vi__value { font-size: 15px; font-weight: 500; line-height: 1.8; }
  .vi-actions { justify-self: stretch; display: grid; margin-bottom: 4px; }
  .vi--contact { padding: 0 12px; min-height: 52px; border-top: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; }
  .vi--contact .vi__icon { width: auto; height: auto; background: none; }
  .vi--contact .vi__text { flex-direction: row; align-items: center; flex: 1; gap: 8px; }
  .vi--contact .vi__value.ltr { margin-inline-start: auto; align-self: center; }
  .vi--hours { background: none; padding-block: 2px 0; align-items: flex-start; }
  .vi--hours .vi__icon { padding-top: 3px; }
  .vi--hours .vi__text { flex-direction: column; align-items: flex-start; gap: 0; }
  .vi--hours .vi__label { display: none; }
  .vi__hours { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .9); }

  .perks { margin-top: 16px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }

  .links { grid-template-columns: 1fr; gap: 0; padding-block: 28px 8px; }
  .about { padding-bottom: 20px; }
  .group { border-top: 1px solid var(--border); }
  .trust { padding-top: 20px; border-top: 1px solid var(--border); }
  .trust .seals { margin-top: 12px; }
  .group summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; }
  .group .chev { display: block; margin-inline-start: auto; color: var(--fg-subtle); transition: transform .2s var(--ease); }
  .group[open] .chev { transform: rotate(180deg); }
  .group ul { margin-top: 0; padding-bottom: 12px; }
  .group ul a { display: flex; min-height: 48px; font-size: 16px; }

  .bottom__in { flex-direction: column-reverse; justify-content: center; text-align: center; padding-block: 16px calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
  .to-top { width: 100%; justify-content: center; min-height: 48px; }
}
/* Wider than phone: groups are always open and their title is a plain heading */
@media (min-width: 768px) {
  .group summary { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
