/* Astar Tire & Service Centre — components (class prefix .at-)
   Every value comes from tokens.css. The page is built only from these.
   .is-hover / .is-active / .is-focus are the same looks as the real states,
   so ui-kit.html can show them side by side.
   MASTER COPY. After any change run:  sh _tools/sync.sh  */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--at-header-h) + 16px); }
body {
  font-family: var(--at-font-body); font-size: var(--at-fs-md); line-height: var(--at-lh-body);
  color: var(--at-ink); background: var(--at-bg); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }   /* icons are always blocks inside a flex or grid parent, never on a text baseline */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }
[data-icon] { display: contents; }
.at-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* bot trap, never visible */
.at-skip { position: absolute; left: var(--at-gutter); top: -80px; z-index: 50; padding: 12px 16px; border-radius: var(--at-r-md); background: var(--at-blue); color: var(--at-on-blue); font-weight: 700; }
.at-skip:focus { top: 10px; }
:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, .is-focus { outline: none; box-shadow: var(--at-focus); }
a:focus-visible, summary:focus-visible { border-radius: var(--at-r-sm); }
::selection { background: var(--at-blue); color: var(--at-on-blue); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.at-wrap { width: min(var(--at-max), 100% - 2 * var(--at-gutter)); margin-inline: auto; }
.at-section { padding-block: var(--at-section); }
.at-band { background: var(--at-surface); }
.at-head { display: grid; gap: var(--at-s4); margin-bottom: var(--at-s8); }
.at-head p { color: var(--at-ink-2); max-width: 46ch; }
@media (min-width: 1024px) {
  .at-head { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: var(--at-s12); margin-bottom: var(--at-s10); }
}

/* navy areas: top bar, hero, reviews, footer */
.at-navy { background: var(--at-navy); color: var(--at-on-navy-2); --at-star-off: var(--at-star-off-navy); }
.at-navy h1, .at-navy h2, .at-navy h3, .at-navy h4 { color: var(--at-on-navy); }
.at-navy .at-eyebrow { color: var(--at-sky); }
.at-navy .at-lead { color: var(--at-on-navy-2); }
.at-navy a:focus-visible, .at-navy button:focus-visible, .at-navy .is-focus { box-shadow: var(--at-focus-navy); }
.at-navy .at-link { color: var(--at-sky); }
.at-navy .at-link:hover, .at-navy .at-link.is-hover { color: var(--at-on-navy); }
.at-navy .at-sublabel { color: var(--at-on-navy-3); }
.at-navy .at-chip { background: var(--at-on-navy-tint); border-color: var(--at-navy-line); color: var(--at-on-navy); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--at-font-display); font-weight: 700; color: var(--at-head);
  line-height: var(--at-lh-tight); letter-spacing: -.01em; text-wrap: balance;
}
h1 { font-size: var(--at-h1); }
h2 { font-size: var(--at-h2); }
h3 { font-size: var(--at-h3); line-height: 1.15; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: var(--at-blue); }
.at-navy h1 em, .at-navy h2 em { color: var(--at-sky); }
.at-lead { font-size: var(--at-fs-md); color: var(--at-ink-2); max-width: 52ch; }
@media (min-width: 768px) { .at-lead { font-size: var(--at-fs-lg); } }
.at-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--at-blue);
}
.at-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.at-eyebrow + h1, .at-eyebrow + h2 { margin-top: var(--at-s3); }
h1 + .at-lead, h2 + .at-lead { margin-top: var(--at-s4); }
.at-sublabel { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--at-ink-3); }

.at-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--at-blue); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  border-radius: var(--at-r-sm); transition: color .15s var(--at-ease), text-decoration-color .15s var(--at-ease);
}
.at-link svg { width: 16px; height: 16px; flex: none; transform: translateY(var(--at-icon-lift)); }
.at-link:hover, .at-link.is-hover { color: var(--at-blue-hi); text-decoration-color: currentColor; }
.at-link:active, .at-link.is-active { color: var(--at-blue-lo); }

/* ---------- Buttons ---------- */
.at-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--at-field-h); padding: 0 24px; border: var(--at-bw-field) solid transparent;
  border-radius: var(--at-r-md); font-weight: 700; font-size: var(--at-fs-md); line-height: 1.2;
  white-space: nowrap; cursor: pointer; user-select: none; -webkit-appearance: none; appearance: none;
  transition: background .15s var(--at-ease), border-color .15s var(--at-ease), color .15s var(--at-ease), transform .15s var(--at-ease);
}
.at-btn svg { width: 20px; height: 20px; flex: none; transform: translateY(var(--at-icon-lift)); }
.at-btn:active, .at-btn.is-active { transform: translateY(1px); }
.at-btn--primary { background: var(--at-blue); color: var(--at-on-blue); }
.at-btn--primary:hover, .at-btn--primary.is-hover { background: var(--at-blue-hi); }
.at-btn--primary:active, .at-btn--primary.is-active { background: var(--at-blue-lo); }
.at-btn--wa { background: var(--at-wa); color: var(--at-on-wa); }
.at-btn--wa:hover, .at-btn--wa.is-hover { background: var(--at-wa-hi); }
.at-btn--wa:active, .at-btn--wa.is-active { background: var(--at-wa-lo); }
.at-btn--ghost { background: var(--at-bg); border-color: var(--at-line-2); color: var(--at-head); }
.at-btn--ghost:hover, .at-btn--ghost.is-hover { border-color: var(--at-blue); color: var(--at-blue); }
.at-btn--ghost:active, .at-btn--ghost.is-active { border-color: var(--at-blue-lo); color: var(--at-blue-lo); }
.at-btn--light { background: transparent; border-color: var(--at-line-on-photo); color: var(--at-on-navy); }
.at-btn--light:hover, .at-btn--light.is-hover { background: var(--at-on-navy-tint); border-color: var(--at-on-navy); }
.at-btn--light:active, .at-btn--light.is-active { background: var(--at-on-navy-tint-2); }
.at-btn--sm { min-height: var(--at-tap); padding: 0 18px; font-size: 15px; }
.at-btn--block { width: 100%; }
.at-btn:disabled, .at-btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.at-btn.is-loading { pointer-events: none; }
.at-btn.is-loading::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: at-spin .7s linear infinite;
}
.at-btn.is-loading svg { display: none; }
@keyframes at-spin { to { transform: rotate(360deg); } }

.at-iconbtn {
  flex: none; width: var(--at-tap); height: var(--at-tap); display: grid; place-items: center;
  background: var(--at-bg); border: var(--at-bw-field) solid var(--at-line); border-radius: var(--at-r-md); color: var(--at-head);
  transition: border-color .15s var(--at-ease), color .15s var(--at-ease);
}
.at-iconbtn svg { width: 22px; height: 22px; }
.at-iconbtn:hover, .at-iconbtn.is-hover { border-color: var(--at-blue); color: var(--at-blue); }
.at-iconbtn > span { display: grid; place-items: center; }
.at-iconbtn .when-open, .at-iconbtn[aria-expanded="true"] .when-closed { display: none; }
.at-iconbtn[aria-expanded="true"] .when-open { display: grid; }

/* ---------- Logo (word logo in the style of the signboard, until Astar's own logo arrives) ---------- */
.at-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: var(--at-tap); border-radius: var(--at-r-sm); }
.at-logo__mark {
  flex: none; padding: 7px 11px 7px 9px; border-radius: var(--at-r-sm); background: var(--at-blue); color: var(--at-on-blue);
  font-family: var(--at-font-display); font-style: italic; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.at-logo__name { display: block; font-family: var(--at-font-display); font-weight: 700; font-size: 14px; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase; color: var(--at-head); white-space: nowrap; }
.at-logo__sub { display: none; margin-top: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--at-ink-3); white-space: nowrap; }
@media (min-width: 768px) { .at-logo__name { font-size: 16px; } .at-logo__sub { display: block; } }
.at-navy .at-logo__mark { background: var(--at-on-navy); color: var(--at-blue); }
.at-navy .at-logo__name { color: var(--at-on-navy); }
.at-navy .at-logo__sub { color: var(--at-on-navy-3); }

/* ---------- Info bar (above the menu) ---------- */
.at-topbar { font-size: 12px; }
.at-topbar .at-status { white-space: nowrap; }
.at-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--at-s4); min-height: var(--at-topbar-h); }
.at-topbar__right { display: flex; align-items: center; gap: var(--at-s4); min-width: 0; }
.at-topbar__addr { display: none; white-space: nowrap; }
.at-topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--at-topbar-h); font-weight: 700; color: var(--at-on-navy); white-space: nowrap; }
.at-topbar a svg { width: 14px; height: 14px; transform: translateY(var(--at-icon-lift)); }
.at-topbar a:hover { color: var(--at-sky); }
@media (min-width: 768px) { .at-topbar { font-size: 13px; } .at-topbar__addr { display: inline; } }

/* ---------- Menu bar ---------- */
.at-nav {
  position: sticky; top: 0; z-index: 30; background: var(--at-nav-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: var(--at-bw) solid var(--at-line);
}
.at-nav__in { display: flex; align-items: center; gap: var(--at-s3); height: var(--at-header-h); }
.at-nav__links { display: none; margin-left: auto; gap: var(--at-s6); font-weight: 600; font-size: 15px; }
.at-nav__links a { padding: 10px 2px; color: var(--at-ink); white-space: nowrap; transition: color .15s var(--at-ease); }
.at-nav__links a:hover, .at-nav__links a.is-hover { color: var(--at-blue); }
.at-nav__actions { display: flex; align-items: center; gap: var(--at-s2); margin-left: auto; }
.at-nav__book { display: none; }
.at-nav__wa { width: var(--at-tap); padding: 0; }
.at-nav__wa span { display: none; }
.at-nav__wa svg { transform: none; }                 /* icon alone in the button on phones: dead centre, no lift */
@media (min-width: 1024px) {
  .at-nav__links { display: flex; }
  .at-nav__actions { margin-left: var(--at-s2); }
  .at-nav__toggle { display: none; }
  .at-nav__wa { width: auto; padding: 0 18px; }
  .at-nav__wa span { display: inline; }
  .at-nav__wa svg { transform: translateY(var(--at-icon-lift)); }
}
@media (min-width: 1200px) { .at-nav__book { display: inline-flex; } .at-nav__links { gap: var(--at-s8); } }

/* phone / tablet menu */
.at-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; padding-bottom: var(--at-s5); background: var(--at-bg); border-bottom: var(--at-bw) solid var(--at-line); box-shadow: var(--at-shadow-2); }
.at-menu.is-open { display: block; }
.at-menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: var(--at-bw) solid var(--at-line); font-weight: 600; font-size: 17px; color: var(--at-head); }
.at-menu__link svg { width: 18px; height: 18px; color: var(--at-ink-3); transform: translateY(var(--at-icon-lift)); }
.at-menu__link:hover, .at-menu__link.is-hover { color: var(--at-blue); }
.at-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--at-s3); margin-top: var(--at-s5); }
@media (min-width: 1024px) { .at-menu, .at-menu.is-open { display: none; } }

/* ---------- Status (open / closed) ---------- */
.at-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  background: var(--at-bg); border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-pill);
  font-size: var(--at-fs-sm); font-weight: 700; color: var(--at-head); line-height: 1.3;
}
.at-status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--at-ok-dot); box-shadow: 0 0 0 4px var(--at-ok-ring); }
.at-status.is-closed .at-status__dot { background: var(--at-off-dot); box-shadow: 0 0 0 4px var(--at-off-ring); }
.at-status--bare { padding: 0; background: none; border: 0; border-radius: 0; font-size: inherit; font-weight: 600; color: inherit; }
.at-status--bare .at-status__dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px var(--at-ok-ring); }
.at-status--bare.is-closed .at-status__dot { box-shadow: 0 0 0 3px var(--at-off-ring); }

/* ---------- Google rating ---------- */
/* five stars drawn from one SVG shape, so they look the same on every phone. Each star is 1em, gap .15em.
   --pct = how much of the row is gold (app.js works it out from the score). */
.at-stars {
  --pct: 100%; display: block; flex: none; width: 5.6em; height: 1em; font-size: 16px;
  background: linear-gradient(90deg, var(--at-star) var(--pct), var(--at-star-off) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 20'%3E%3Cpath d='M10 1.2l2.7 5.6 6.1.8-4.5 4.3 1.2 6.1L10 15l-5.5 3 1.2-6.1L1.2 7.6l6.1-.8z'/%3E%3C/svg%3E") left center / 1.15em 1em repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 20'%3E%3Cpath d='M10 1.2l2.7 5.6 6.1.8-4.5 4.3 1.2 6.1L10 15l-5.5 3 1.2-6.1L1.2 7.6l6.1-.8z'/%3E%3C/svg%3E") left center / 1.15em 1em repeat-x;
}
.at-stat { display: flex; align-items: center; gap: var(--at-s5); }
.at-stat__num { font-family: var(--at-font-display); font-weight: 700; font-size: 88px; line-height: .9; color: var(--at-head); }
.at-navy .at-stat__num { color: var(--at-on-navy); }
.at-stat .at-stars { font-size: 22px; }
.at-stat p { margin-top: 6px; font-size: 15px; }

/* trust row under the hero buttons (sits on the photo) */
.at-trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--at-s4) var(--at-s6); }
.at-trust__item { display: block; min-width: 0; border-radius: var(--at-r-sm); }
.at-trust__item b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: var(--at-font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--at-on-navy); }
.at-trust__item span.at-trust__text { display: block; margin-top: 2px; font-size: var(--at-fs-sm); color: var(--at-on-navy-2); text-wrap: balance; }
a.at-trust__item:hover .at-trust__text, a.at-trust__item.is-hover .at-trust__text { color: var(--at-on-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .at-trust { display: flex; gap: var(--at-s10); } }

/* review quote (on navy) */
.at-quote { display: grid; grid-template-rows: auto 1fr auto; gap: var(--at-s4); padding: var(--at-s6); background: var(--at-navy-2); border: var(--at-bw) solid var(--at-navy-line); border-radius: var(--at-r-lg); }
.at-quote blockquote { font-family: var(--at-font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--at-on-navy); }
.at-quote figcaption { font-size: var(--at-fs-sm); color: var(--at-on-navy-2); }
.at-quote figcaption b { color: var(--at-on-navy); font-weight: 600; }
.at-quote__job { display: block; margin-top: 2px; font-size: 13px; color: var(--at-on-navy-3); }
@media (min-width: 768px) { .at-quote { padding: var(--at-s8); } .at-quote blockquote { font-size: 30px; } }

/* ---------- Carousel (auto-sliding reviews; behaviour in site/js/carousel.js) ----------
   All slides share one grid cell, so the box is as tall as the longest review and nothing jumps when it slides. */
.at-carousel { --at-carousel-time: 6s; min-width: 0; }
.at-carousel__viewport { display: grid; overflow: hidden; border-radius: var(--at-r-lg); touch-action: pan-y; }
.at-carousel__slide {
  grid-area: 1 / 1; display: grid; min-width: 0; visibility: hidden;
  transform: translateX(calc(100% + var(--at-s6)));
  transition: transform .6s var(--at-ease), visibility 0s linear .6s;
}
.at-carousel__slide[data-pos="before"] { transform: translateX(calc(-100% - var(--at-s6))); }
.at-carousel__slide[data-pos="active"] { transform: none; visibility: visible; transition: transform .6s var(--at-ease), visibility 0s; }
.at-carousel__slide.no-anim { transition: none; }
.at-carousel__nav { display: flex; align-items: center; gap: var(--at-s2); margin-top: var(--at-s4); }
.at-carousel__dots { display: flex; align-items: center; margin-right: auto; }
/* each dot is a 44px-tall button; the mark sits at its left so the first mark lines up with the card's left edge */
.at-carousel__dot { display: flex; align-items: center; height: var(--at-tap); padding-right: 14px; border-radius: var(--at-r-sm); }
.at-carousel__dot span {
  position: relative; display: block; width: 10px; height: 10px; overflow: hidden; border-radius: var(--at-r-pill);
  background: var(--at-on-navy-tint-2); transition: width .3s var(--at-ease), background .15s var(--at-ease);
}
.at-carousel__dot:hover span, .at-carousel__dot.is-hover span { background: var(--at-on-navy-3); }
.at-carousel__dot[aria-current="true"] span { width: 32px; background: var(--at-on-navy-tint-2); }
/* the current dot fills up while it waits, so you can see it is about to move */
.at-carousel__dot[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--at-sky); transform-origin: left center; }
.at-carousel.is-playing .at-carousel__dot[aria-current="true"] span::after { animation: at-fill var(--at-carousel-time) linear both; animation-play-state: paused; }
.at-carousel.is-running .at-carousel__dot[aria-current="true"] span::after { animation-play-state: running; }
@keyframes at-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.at-carousel__btn {
  flex: none; width: var(--at-tap); height: var(--at-tap); display: grid; place-items: center;
  border: var(--at-bw-field) solid var(--at-navy-line); border-radius: var(--at-r-md); color: var(--at-on-navy);
  transition: background .15s var(--at-ease), border-color .15s var(--at-ease);
}
.at-carousel__btn svg { width: 20px; height: 20px; }
.at-carousel__btn:hover, .at-carousel__btn.is-hover { background: var(--at-on-navy-tint); border-color: var(--at-on-navy-3); }
.at-carousel__btn:active, .at-carousel__btn.is-active { background: var(--at-on-navy-tint-2); }

/* ---------- Chips and tags ---------- */
.at-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.at-chip {
  padding: 6px 12px; background: var(--at-blue-soft); border: var(--at-bw) solid var(--at-blue-soft);
  border-radius: var(--at-r-pill); font-size: 13px; font-weight: 600; color: var(--at-blue-hi);
}
.at-tag {
  display: inline-block; padding: 2px 6px; border-radius: var(--at-r-sm); background: var(--at-blue); color: var(--at-on-blue);
  font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; vertical-align: 2px;
}

/* ---------- Photo ---------- */
.at-photo { position: relative; overflow: hidden; border-radius: var(--at-r-lg); background: var(--at-surface-2); }
.at-photo img { width: 100%; height: 100%; object-fit: cover; }
.at-photo--43 { aspect-ratio: 4 / 3; }
.at-photo--169 { aspect-ratio: 16 / 9; }
.at-photo__cap {
  position: absolute; inset: auto 0 0 0; padding: 32px 16px 12px; font-size: 13px; font-weight: 600; color: var(--at-on-navy);
  background: linear-gradient(transparent, var(--at-photo-cap));
}

/* ---------- Quick tyre price bar ---------- */
.at-quick { display: grid; gap: var(--at-s4); padding: var(--at-s5); background: var(--at-bg); border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-xl); box-shadow: var(--at-shadow-2); }
.at-quick__title { font-family: var(--at-font-display); font-weight: 700; font-size: var(--at-h3); line-height: 1.15; color: var(--at-head); }
.at-quick__title + p { margin-top: 2px; font-size: 13px; color: var(--at-ink-3); }
.at-quick__fields { display: grid; gap: var(--at-s3); }
.at-quick .at-label { font-size: var(--at-fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--at-ink-2); }
.at-quick .at-error { margin-top: calc(var(--at-s2) * -1); }
@media (min-width: 768px) {
  .at-quick { padding: var(--at-s6); }
  .at-quick__fields { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
@media (min-width: 1024px) {
  .at-quick { grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: var(--at-s8); padding: var(--at-s6) var(--at-s8); }
  .at-quick .at-error { grid-column: 2; }
}

/* ---------- Service card ---------- */
.at-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden;
  background: var(--at-bg); border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-lg); box-shadow: var(--at-shadow-1);
  transition: border-color .2s var(--at-ease), box-shadow .2s var(--at-ease);
}
.at-card:hover, .at-card.is-hover { border-color: var(--at-blue-line); box-shadow: var(--at-shadow-2); }
.at-card__pic { position: relative; background: var(--at-surface-2); }
.at-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--at-s4); min-width: 0; }
.at-card__body p { font-size: var(--at-fs-sm); color: var(--at-ink-2); }
.at-card__body .at-link { margin-top: auto; min-height: var(--at-tap); font-size: var(--at-fs-sm); }
.at-card--feature { grid-template-columns: minmax(0, 1fr); }
.at-card--feature .at-card__pic { aspect-ratio: 16 / 9; }
.at-card--feature .at-card__body { padding: var(--at-s5); }
.at-card--feature h3 { font-size: 30px; }
.at-card--feature .at-card__body p { font-size: var(--at-fs-md); }
@media (min-width: 768px) {
  .at-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .at-card__pic { aspect-ratio: 4 / 3; }
  .at-card__body { padding: var(--at-s5) var(--at-s5) var(--at-s4); }
  .at-card--feature { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .at-card--feature .at-card__pic { aspect-ratio: auto; min-height: 300px; }
  .at-card--feature .at-card__body { padding: var(--at-s8); justify-content: center; gap: var(--at-s3); }
  .at-card--feature h3 { font-size: 38px; }
  .at-card--feature .at-card__body .at-link { margin-top: var(--at-s2); }
}

/* ---------- Point (icon + title + line): reasons, address rows ---------- */
.at-point { display: flex; align-items: flex-start; gap: var(--at-s4); }
.at-point__icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--at-r-md); display: grid; place-items: center;
  background: var(--at-blue-soft); color: var(--at-blue);
}
.at-point__icon svg { width: 22px; height: 22px; }
.at-point > div { min-width: 0; padding-top: 1px; }
.at-point > div > b { display: block; font-size: 17px; font-weight: 600; color: var(--at-head); line-height: 1.35; }
.at-point > div > span { display: block; margin-top: 2px; font-size: 15px; color: var(--at-ink-2); }   /* > div > span on purpose: must not match .at-point__icon */

/* ---------- Opening hours ---------- */
.at-hours li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--at-s4);
  padding: 14px 0; border-bottom: var(--at-bw) solid var(--at-line);
}
.at-hours li:first-child { padding-top: 0; }
.at-hours li:last-child { padding-bottom: 0; border-bottom: 0; }
.at-hours span { color: var(--at-ink-2); }
.at-hours b { font-weight: 600; color: var(--at-head); text-align: right; white-space: nowrap; }
.at-hours .is-today span { color: var(--at-head); font-weight: 700; }
.at-hours .is-today b { color: var(--at-blue); }
.at-hours .is-closed b { color: var(--at-ink-3); }
.at-hours .at-tag { margin-left: 8px; }

/* ---------- Panel ---------- */
.at-panel { background: var(--at-bg); border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-xl); padding: var(--at-s5); box-shadow: var(--at-shadow-1); container-type: inline-size; }
@media (min-width: 768px) { .at-panel { padding: var(--at-s8); } }

/* ---------- Map ---------- */
.at-map {
  position: relative; overflow: hidden; height: 340px;
  border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-lg); background: var(--at-surface-2);
}
.at-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) { .at-map { height: 440px; } }

/* ---------- Steps ---------- */
.at-steps { display: grid; gap: 18px; counter-reset: at-step; }
.at-steps li { display: flex; align-items: flex-start; gap: var(--at-s4); }
.at-steps li::before {
  counter-increment: at-step; content: counter(at-step); flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--at-blue); color: var(--at-on-blue); font-weight: 700; font-size: 15px;
}
.at-steps b { display: block; color: var(--at-head); font-weight: 600; }
.at-steps span { display: block; font-size: 15px; color: var(--at-ink-2); }

/* ---------- FAQ ---------- */
.at-faq { border-top: var(--at-bw) solid var(--at-line); }
.at-faq__item { border-bottom: var(--at-bw) solid var(--at-line); }
.at-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--at-s4); min-height: 60px; padding: 14px 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--at-head); transition: color .15s var(--at-ease);
}
.at-faq__item summary::-webkit-details-marker { display: none; }
.at-faq__item summary svg { flex: none; width: 20px; height: 20px; color: var(--at-blue); transform: translateY(var(--at-icon-lift)); transition: transform .2s var(--at-ease); }
.at-faq__item summary:hover, .at-faq__item summary.is-hover { color: var(--at-blue); }
.at-faq__item[open] summary svg { transform: translateY(var(--at-icon-lift)) rotate(180deg); }
.at-faq__a { padding: 0 var(--at-s10) var(--at-s5) 0; color: var(--at-ink-2); }

/* ---------- Form ---------- */
.at-form { display: grid; gap: var(--at-s5); }
.at-form__grid { display: grid; gap: var(--at-s5); }
.at-field { display: grid; gap: 8px; align-content: start; min-width: 0; min-inline-size: 0; border: 0; padding: 0; }
/* columns follow the width of the panel the form sits in, not the screen:
   under 520px one column; from 520px two columns; date + time share a row only from 640px (so the time chips never get squeezed) */
@container (min-width: 520px) {
  .at-form__grid { grid-template-columns: 1fr 1fr; }
  .at-form__grid > .at-field { grid-column: 1 / -1; }
  .at-form__grid > .at-field--half { grid-column: auto; }
}
@container (min-width: 640px) {
  .at-form__grid > .at-field--pair { grid-column: auto; }
}
@container (max-width: 279px) {
  .at-slots { grid-template-columns: 1fr; }
}
.at-label { display: block; padding: 0; font-size: var(--at-fs-sm); font-weight: 600; color: var(--at-head); line-height: 1.4; }
.at-label .at-req { margin-left: 4px; color: var(--at-err); }
.at-label .at-opt { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--at-ink-3); letter-spacing: 0; text-transform: none; }

.at-input, .at-select, .at-textarea {
  display: block; width: 100%; min-width: 0; min-height: var(--at-field-h); padding: 0 14px;
  background-color: var(--at-field); border: var(--at-bw-field) solid var(--at-line-2); border-radius: var(--at-r-md);
  font-size: var(--at-fs-md); line-height: 1.4; color: var(--at-head);
  -webkit-appearance: none; appearance: none; box-shadow: none;
  transition: border-color .15s var(--at-ease), box-shadow .15s var(--at-ease);
}
.at-textarea { min-height: 112px; padding: 14px; resize: vertical; line-height: 1.5; }
.at-input::placeholder, .at-textarea::placeholder { color: var(--at-ink-3); opacity: 1; }
.at-input:hover, .at-select:hover, .at-textarea:hover,
.at-input.is-hover, .at-select.is-hover, .at-textarea.is-hover { border-color: var(--at-line-3); }
.at-input:focus, .at-select:focus, .at-textarea:focus,
.at-input.is-focus, .at-select.is-focus, .at-textarea.is-focus { border-color: var(--at-blue); box-shadow: var(--at-focus-field); }
.at-input:disabled, .at-select:disabled, .at-textarea:disabled { background-color: var(--at-surface-2); border-color: var(--at-line); color: var(--at-ink-3); cursor: not-allowed; }
.at-select {
  padding-right: 44px; cursor: pointer; background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566176' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.at-select.is-empty, .at-input[type="date"].is-empty { color: var(--at-ink-3); }
.at-input[type="date"] { position: relative; }
.at-input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* our own calendar icon, same place and weight as the select arrow; the browser's own icon is made invisible
   but still covers the right 44px, so tapping there opens the date picker. (Firefox keeps its own icon.) */
@supports not (-moz-appearance: none) {
  .at-input[type="date"] {
    padding-right: 44px; background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -0.5 24 24' fill='none' stroke='%23566176' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
  }
  .at-input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; right: 0; top: 0; width: 44px; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
}
/* saved-details autofill: keep our white field, not the browser's pale blue */
.at-input:-webkit-autofill, .at-input:-webkit-autofill:hover, .at-input:-webkit-autofill:focus, .at-textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--at-head); caret-color: var(--at-head);
  -webkit-box-shadow: 0 0 0 1000px var(--at-field) inset; transition: background-color 9999s ease-out 0s;
}
.at-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--at-field) inset, var(--at-focus-field); }

.at-hint { font-size: 13px; color: var(--at-ink-3); line-height: 1.45; }
.at-error { display: none; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; color: var(--at-err); line-height: 1.45; }
.at-error svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.is-invalid > .at-error { display: flex; }
.is-invalid .at-input, .is-invalid .at-select, .is-invalid .at-textarea, .is-invalid .at-slot span, .is-invalid .at-check__box { border-color: var(--at-err); }
.is-invalid .at-input:focus, .is-invalid .at-select:focus, .is-invalid .at-textarea:focus { box-shadow: var(--at-focus-err); }

/* time slots */
.at-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.at-slot { position: relative; display: block; }
.at-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.at-slot span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: var(--at-field-h); padding: 6px 4px; background: var(--at-field);
  border: var(--at-bw-field) solid var(--at-line-2); border-radius: var(--at-r-md);
  font-size: var(--at-fs-sm); font-weight: 700; line-height: 1.25; color: var(--at-head);
  transition: background .15s var(--at-ease), border-color .15s var(--at-ease), color .15s var(--at-ease), box-shadow .15s var(--at-ease);
}
.at-slot small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--at-ink-2); }
.at-slot:hover span, .at-slot.is-hover span { border-color: var(--at-line-3); }
.at-slot input:checked + span { background: var(--at-blue); border-color: var(--at-blue); color: var(--at-on-blue); }
.at-slot input:checked + span small { color: var(--at-on-blue); opacity: .85; }
.at-slot input:focus-visible + span, .at-slot.is-focus span { box-shadow: var(--at-focus); }
.at-slot input:disabled { cursor: not-allowed; }
.at-slot input:disabled + span { background: var(--at-surface-2); border-color: var(--at-line); color: var(--at-ink-3); }
.at-slot input:disabled + span small { color: var(--at-ink-3); }

/* consent tick */
.at-check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: var(--at-tap); padding: 10px 0; cursor: pointer; font-size: var(--at-fs-sm); color: var(--at-ink-2); line-height: 1.5; }
.at-check input { position: absolute; left: 0; top: 10px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.at-check__box {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: transparent;
  background: var(--at-field); border: var(--at-bw-field) solid var(--at-line-2); border-radius: var(--at-r-sm);
  transition: background .15s var(--at-ease), border-color .15s var(--at-ease), box-shadow .15s var(--at-ease);
}
.at-check__box svg { width: 14px; height: 14px; stroke-width: 3; }
.at-check:hover .at-check__box, .at-check.is-hover .at-check__box { border-color: var(--at-line-3); }
.at-check input:checked + .at-check__box { background: var(--at-blue); border-color: var(--at-blue); color: var(--at-on-blue); }
.at-check input:focus-visible + .at-check__box, .at-check.is-focus .at-check__box { box-shadow: var(--at-focus); }
.at-field--consent { gap: 0; }

/* messages */
.at-fix {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--at-r-md);
  background: var(--at-err-soft); border: var(--at-bw) solid var(--at-err-line); color: var(--at-err); font-size: var(--at-fs-sm); font-weight: 600;
}
.at-fix svg { flex: none; width: 18px; height: 18px; transform: translateY(var(--at-icon-lift)); }
.at-note { font-size: 13px; color: var(--at-ink-3); text-align: center; line-height: 1.5; }

/* after sending */
.at-done { display: grid; gap: var(--at-s4); }
.at-done__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--at-ok-soft); color: var(--at-ok); }
.at-done__icon svg { width: 26px; height: 26px; stroke-width: 2.4; }
.at-done h3 { font-size: 30px; }
.at-done > p { color: var(--at-ink-2); }
.at-summary { border: var(--at-bw) solid var(--at-line); border-radius: var(--at-r-md); }
.at-summary li { display: flex; justify-content: space-between; gap: var(--at-s4); padding: 10px 14px; border-bottom: var(--at-bw) solid var(--at-line); font-size: var(--at-fs-sm); }
.at-summary li:last-child { border-bottom: 0; }
.at-summary span { flex: none; color: var(--at-ink-2); }
.at-summary b { font-weight: 600; color: var(--at-head); text-align: right; overflow-wrap: anywhere; }
.at-done__actions { display: grid; gap: 12px; }
@container (min-width: 480px) { .at-done__actions { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.at-footer { padding-block: var(--at-s16) var(--at-s8); }
.at-footer__grid { display: grid; gap: var(--at-s8); }
.at-footer h4 { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--at-s3); }
.at-footer li, .at-footer p { font-size: 15px; line-height: 1.9; }
.at-footer li a { display: inline-block; padding-block: 8px; color: var(--at-on-navy); white-space: nowrap; transition: color .15s var(--at-ease); }   /* a phone number never breaks across two lines */
.at-footer li a:hover { color: var(--at-sky); }
.at-footer__about { max-width: 34ch; margin-top: var(--at-s4); }
.at-footer__copy {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: var(--at-s10); padding-top: var(--at-s6);
  border-top: var(--at-bw) solid var(--at-navy-line); font-size: 13px; color: var(--at-on-navy-3);
}
@media (min-width: 768px) { .at-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--at-s10); } }
/* wide screens: the three fact columns are each as wide as their longest line (no address or phone number breaks in two); the first column takes the rest */
@media (min-width: 1024px) { .at-footer__grid { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--at-s12); } .at-footer li { white-space: nowrap; } .at-footer li a { padding-block: 0; } }

/* ---------- Floating WhatsApp ---------- */
.at-wa {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--at-wa); color: var(--at-on-wa); box-shadow: var(--at-shadow-2);
  transition: transform .2s var(--at-ease), opacity .2s var(--at-ease), background .15s var(--at-ease);
}
.at-wa svg { width: 28px; height: 28px; }
.at-wa:hover, .at-wa.is-hover { background: var(--at-wa-hi); transform: scale(1.06); }
.at-wa:focus-visible { border-radius: 50%; }
.at-wa.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
