/* ==========================================================================
   Contact page: direct-contact hub (no form): one card per shop + social card.
   Builds on the template's .contact_* classes (big h1, rounded card on paper).
   ========================================================================== */

.contact-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Heading + intro ---------- */
.contact-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; width: 100%; }
.contact-head_text { min-width: 0; }
.contact-head_icon { flex: none; width: 11.5rem; height: auto; margin: 0 1.5rem 0.25rem 0; transform: rotate(7deg); }
.contact_intro { max-width: 33rem; }
.contact_intro a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 0.2em; transition: color 0.2s; }
.contact_intro a:hover { color: var(--brand-deep); }

/* ---------- Shop cards ---------- */
.contact-shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: 100%; }

.contact-shop {
  container: contact-shop / inline-size; /* lets the link row adapt to the card's own width */
  position: relative;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2rem;
  background-color: #fff;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  box-shadow: 0.35rem 0.35rem 0 var(--ink);
  transition: transform 0.25s;
}

.contact-shop_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem; }
.contact-shop_name { margin: 0; filter: none; } /* too small for the hand-cut edge */
.contact-shop_since { font-family: var(--_typography---font-family--detail); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--brand-deep); transform: rotate(-3deg); white-space: nowrap; }

/* "new shop" sticker on the card's top edge */
.contact-shop_new {
  position: absolute; top: -1rem; right: 1.75rem; z-index: 1;
  padding: 0.3rem 0.8rem 0.15rem;
  background-color: var(--brand);
  border: 2px solid var(--ink);
  border-radius: 9rem;
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  font-family: var(--_typography---font-family--primary);
  font-size: 1.375rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink);
  transform: rotate(5deg);
}

/* phone = the main action of the card */
.contact-shop_phone { display: inline-flex; align-items: center; align-self: flex-start; gap: 0.75rem; max-width: 100%; color: var(--ink); }
.contact-shop_phone-icon { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background-color: var(--ink); border-radius: 50%; transition: transform 0.25s; }
.contact-shop_phone-icon img { width: 1.6rem; height: 1.6rem; }
.contact-shop_phone-number { font-family: var(--_typography---font-family--primary); font-size: 4rem; line-height: 0.85; letter-spacing: 0.01em; white-space: nowrap; padding-top: 0.12em; transition: color 0.2s; }
.contact-shop_phone:hover .contact-shop_phone-number { color: var(--brand-deep); }
.contact-shop_phone:hover .contact-shop_phone-icon { transform: rotate(-12deg) scale(1.06); }

.contact-shop_meta { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.contact-shop_meta-item { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.contact-shop_meta-icon { flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.05rem; }
.contact-shop_line { display: block; }

.contact-shop_links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 2px dotted rgba(22, 21, 21, 0.22); }
.contact-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; background-color: #fff; border: 2px solid var(--ink); border-radius: 9rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; color: var(--ink); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.contact-chip.is-brand { background-color: var(--brand); }
.contact-chip:hover { background-color: var(--ink); color: #fff; }
.contact-chip_more { display: none; }
.contact-ext { flex: none; width: 0.7rem; height: 0.7rem; }

/* narrow card: map + shop page share a row, the efood link becomes a full-width button */
@container contact-shop (max-width: 21rem) {
  .contact-shop_links { gap: 0.5rem; }
  .contact-chip { flex: 1 1 auto; justify-content: center; padding: 0.6rem 0.6rem; }
  .contact-chip.is-brand { flex-basis: 100%; }
  .contact-chip_more { display: inline; }
}

/* ---------- Social card (the template's rounded card; its picture slot holds the chalk strip) ---------- */
.contact-hub { flex-flow: column; align-items: stretch; justify-content: flex-start; gap: 1.75rem; background-color: var(--brand); border: 2px solid var(--ink); box-shadow: 0.35rem 0.35rem 0 var(--ink); }
.contact-hub .contact_image-wrap { display: block; flex: none; width: 100%; height: 10rem; background-color: var(--ink); }
.contact-hub .contact_image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.contact-hub_body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; min-width: 0; }
.contact-hub_heading { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.contact-hub_label { color: var(--ink); }
.contact-hub_title { margin: 0.35rem 0 0; }

.contact-social { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0 0 0.3rem; padding: 0; list-style: none; }
.contact-social li { margin: 0; }
.contact-social_link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.45rem; background-color: #fff; border: 2px solid var(--ink); border-radius: 9rem; box-shadow: 0.2rem 0.2rem 0 var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.2; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.contact-social_link:hover { transform: translate(0.2rem, 0.2rem); box-shadow: 0 0 0 var(--ink); }
.contact-social_icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background-color: var(--ink); border-radius: 50%; color: var(--brand); }
.contact-social_icon svg { width: 1.25rem; height: 1.25rem; }
.contact-hub_mail { flex-basis: 100%; font-size: 1.0625rem; font-weight: 500; }
.contact-hub_mail a { text-decoration: underline; text-underline-offset: 0.2em; }

/* keyboard focus */
.contact-shop_phone:focus-visible, .contact-chip:focus-visible, .contact-social_link:focus-visible, .contact_intro a:focus-visible, .contact-hub_mail a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 9rem; }
.contact-hub .contact-social_link:focus-visible { outline-color: #fff; }

/* ---------- Desktop: cards sit slightly askew, straighten on hover ---------- */
@media screen and (min-width: 992px) {
  .contact-shop:nth-child(odd) { transform: rotate(-0.6deg); }
  .contact-shop:nth-child(even) { transform: rotate(0.6deg); }
  .contact-shop:hover, .contact-shop:focus-within { transform: none; }
  .contact-hub_title { font-size: 3.5rem; } /* keeps heading + social links on one row */
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 991px) {
  .contact_component h1 { font-size: 5.5rem; }
  .contact-head_icon { width: 9rem; margin-right: 0.5rem; }
  .contact-shops { gap: 1.5rem; }
  .contact-shop { padding: 1.5rem; gap: 1rem; }
  .contact-shop_new { right: 1.25rem; font-size: 1.25rem; }
  .contact-shop_phone-number { font-size: min(3.25rem, 5.7vw); }
  .contact-shop_phone-icon { width: 2.75rem; height: 2.75rem; }
  .contact-shop_phone-icon img { width: 1.375rem; height: 1.375rem; }
  .contact-hub { gap: 1.5rem; }
  .contact-hub .contact_image-wrap { height: 9rem; }
  .contact-hub .contact_image { object-position: 0 50%; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px) {
  .contact_component h1 { font-size: min(4.25rem, 17vw); }
  .contact-head { display: block; }
  .contact-head_icon { position: absolute; top: -0.75rem; right: 0; width: min(5.75rem, 22vw); margin: 0; }
  .contact-shops { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .contact-shop_phone-number { font-size: 3rem; }
  .contact-shop_meta-item { font-size: 1rem; }
  .contact-chip { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .contact-hub .contact_image-wrap { height: 7.5rem; border-radius: 1rem; }
}

@media screen and (max-width: 479px) {
  .contact-shop { padding: 1.25rem; border-radius: 1.25rem; box-shadow: 0.25rem 0.25rem 0 var(--ink); }
  .contact-shop_phone { gap: 0.6rem; }
  .contact-shop_phone-number { font-size: min(3rem, 12vw); }
  .contact-shop_phone-icon { width: 2.5rem; height: 2.5rem; }
  .contact-shop_phone-icon img { width: 1.25rem; height: 1.25rem; }
  .contact-hub { box-shadow: 0.25rem 0.25rem 0 var(--ink); }
  .contact-social { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; width: 100%; }
  .contact-social_link { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-shop, .contact-shop_phone-icon, .contact-social_link { transition: none; }
}
