/* ==========================================================================
   BrickCiti Black Friday 2026: everything for the campaign lives here, so it can be
   removed in one go afterwards (this file, black-friday.js, the bars and #specials).
   - .promo-bar: orange bar under the header (every page)
   - .bf-specials: the home page section, "White paving" look (design C): just the title on the paving background
   - .bf-pop: the once-per-visitor pop-up, "Price tags" look (design B), built by black-friday.js
   Anything with data-ends="YYYY-MM-DD" is removed by main.js after that day (SA time),
   and the pop-up only opens while the bar is still on the page.
   ========================================================================== */

/* ---------- Bar under the header ---------- */
.promo-bar { background: var(--orange); color: var(--ink); }
.promo-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  min-height: 46px; padding-block: 9px; text-decoration: none; text-align: center;
  font-size: .9375rem; font-weight: 600; line-height: 1.35;
}
.promo-bar__tag { flex: none; padding: 3px 9px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.promo-bar__go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.promo-bar__go .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.promo-bar__inner:hover .promo-bar__go .icon { transform: translateX(3px); }
.promo-bar__short { display: none; }
@media (max-width: 759px) {
  .promo-bar__long, .promo-bar__go-text { display: none; }
  .promo-bar__short { display: block; flex: 1; min-width: 0; }
  .promo-bar__inner { flex-wrap: nowrap; gap: 10px; text-align: left; font-size: .875rem; }
  .promo-bar__tag { font-size: .6875rem; padding: 3px 7px; }
  .promo-bar__go .icon { width: 1.25em; height: 1.25em; }
}

/* ---------- Specials section: "White paving" (design C) ---------- */
.bf-specials {
  --bf-stone: #F3EFE9;
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--section-y);
  background: var(--bf-stone);
}
.bf-specials::before { /* white scallop paving blocks with joints, fading into the stone colour */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='116' height='116'%3E%3Crect width='116' height='116' fill='%23D3CABD'/%3E%3Cg stroke='%23D3CABD' stroke-width='5'%3E%3Ccircle cx='0' cy='116' r='57' fill='%23F6F3EE'/%3E%3Ccircle cx='116' cy='116' r='57' fill='%23F6F3EE'/%3E%3Ccircle cx='58' cy='58' r='57' fill='%23FFFFFF'/%3E%3Ccircle cx='0' cy='0' r='57' fill='%23F6F3EE'/%3E%3Ccircle cx='116' cy='0' r='57' fill='%23F6F3EE'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 116px 116px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
          mask-image: linear-gradient(#000 30%, transparent 95%);
}
.bf-specials .section-head { margin-bottom: 0; }
.bf-specials__cta { margin: 26px 0 0; text-align: center; }
.bf-specials .section-head h2 { text-shadow: 0 0 18px var(--bf-stone), 0 0 36px var(--bf-stone); }
.bf-specials .section-head p { color: var(--text) !important; text-shadow: 0 0 10px var(--bf-stone), 0 0 20px var(--bf-stone), 0 0 4px var(--bf-stone); }
.bf-specials .eyebrow { color: var(--text); text-shadow: 0 0 10px var(--bf-stone), 0 0 4px var(--bf-stone); }

/* ---------- Pop-up: "Price tags" (design B), once per visitor ----------
   Phones: one column, 20px clear of each side and well short of the screen height.
   From 720px wide: the deals sit beside the title, so it is about 720 × 495px in the middle of
   the screen. The page behind is dimmed and slightly blurred so the pop-up stands out. */
.bf-pop {
  width: min(440px, calc(100vw - 40px)); max-width: none;
  max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px);
  margin: auto; padding: 0; border: 0; border-radius: 18px;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .7);
  overflow: auto; overscroll-behavior: contain;
}
.bf-pop::backdrop { background: rgb(6 6 6 / .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bf-pop[open] { animation: bf-pop-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes bf-pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.bf-pop :focus-visible { outline-color: var(--ink); }
.bf-pop__inner {
  position: relative; container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  grid-template-areas: "top top" "title title" "sub sub" "tags tags" "signup signup" ". later";
  padding: 16px 16px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000000' stroke-opacity='0.07' stroke-width='1.5'/%3E%3C/svg%3E");
}
.bf-pop__close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: transform .2s; }
.bf-pop__close:hover { transform: rotate(90deg); }
.bf-pop__close .icon { width: 20px; height: 20px; }
.bf-pop__top { grid-area: top; display: flex; align-items: center; gap: 10px; padding-right: 48px; }
.bf-pop__plate { flex: none; display: inline-flex; padding: 7px 10px; border-radius: 9px; background: var(--ink); }
.bf-pop__plate img { height: 22px; width: auto; }
.bf-pop__kicker { margin: 0; font-size: .625rem; font-weight: 800; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.bf-pop h2 {
  grid-area: title; margin: 10px 0 0;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; line-height: .9; letter-spacing: -.02em;
  font-size: 2rem; font-size: clamp(1.4rem, 10.4cqi, 2.4rem); /* one line on phones */
  text-transform: uppercase; color: var(--ink);
}
.bf-pop__sub { grid-area: sub; display: none; margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; line-height: 1.25; }

.bf-pop__tags { grid-area: tags; display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bf-tag {
  position: relative;
  display: grid; grid-template-columns: 22px min-content minmax(0, 1fr) auto; align-items: center;
  padding: 8px 8px 8px 0;
  background: var(--ink); color: #fff; border-radius: 0 12px 12px 0;
  clip-path: polygon(17px 0, 100% 0, 100% 100%, 17px 100%, 0 50%);
}
.bf-tag:nth-child(1) { transform: rotate(-.8deg); }
.bf-tag:nth-child(2) { transform: rotate(.6deg); }
.bf-tag__hole { justify-self: center; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .22); }
.bf-tag__off { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 4.25rem; margin: 0; padding-right: 8px; border-right: 2px dashed #3A3734; }
.bf-tag__pct { display: block; font-family: var(--font-display); font-stretch: 118%; font-weight: 900; font-size: 1.45rem; line-height: .88; letter-spacing: -.02em; white-space: nowrap; }
.bf-tag__word { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: .85rem; line-height: 1; text-transform: uppercase; }
.bf-tag__min { display: block; margin-top: 5px; font-size: .5625rem; font-weight: 800; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; color: var(--orange); }
.bf-tag__body { padding-left: 9px; }
.bf-tag__body h3 { margin: 0; font-size: .875rem; line-height: 1.15; color: #fff; }
.bf-tag__qty { margin: 2px 0 0; font-size: .6875rem; line-height: 1.3; color: var(--on-dark-muted); }
.bf-tag__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 2px 0 0; }
.bf-tag__was { font-size: .8125rem; color: var(--on-dark-muted); text-decoration: line-through; }
.bf-tag__now { font-family: var(--font-display); font-stretch: 115%; font-weight: 900; font-size: 1.2rem; line-height: 1.1; color: var(--orange); }
.bf-tag__claim { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 36px; height: 36px; margin-left: 6px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: .75rem; font-weight: 800; text-decoration: none; transition: background-color .2s; }
.bf-tag__claim::after { content: ""; position: absolute; inset: 0; } /* phones: tapping anywhere on the tag opens WhatsApp */
.bf-tag__claim:hover, .bf-tag:hover .bf-tag__claim { background: var(--orange-hover); }
.bf-tag__claim:focus-visible { outline-color: var(--orange); }
.bf-tag__claim .icon { width: 20px; height: 20px; }
.bf-tag__claim-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read out, not shown, on phones */

.bf-pop__signup { grid-area: signup; margin-top: 10px; padding-top: 10px; border-top: 3px solid var(--ink); }
.bf-pop__on-wa { display: none; } /* phones: shorter heading, so it fits on one line */
.bf-pop__signup-title { margin: 0 0 8px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: .9375rem; line-height: 1.2; }
.bf-pop__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px; }
.bf-pop__fields input { min-height: 42px; padding: 8px 12px; border: 2px solid var(--ink); }
.bf-pop__fields input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(18 18 18 / .3); }
.bf-pop__fields input[aria-invalid="true"] { border-color: #7A0F0F; box-shadow: 0 0 0 3px rgb(122 15 15 / .25); }
.bf-pop__fields .btn { grid-column: 1 / -1; min-height: 42px; padding-block: 6px; }
.bf-pop__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-pop__fine { margin: 6px 0 0; font-size: .6875rem; line-height: 1.4; }
.bf-pop__fine a { font-weight: 700; }
.bf-pop__error { margin: 6px 0 0; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; }
.bf-pop__done { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 600; }
.bf-pop__done strong { color: var(--orange); }
.bf-pop__done .btn { margin-top: 10px; }

.bf-pop__later { grid-area: later; margin: 4px 0 0; padding: 8px 2px 8px 12px; border: 0; background: none; color: var(--ink); font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Narrow phones (under 375px): keep each tag's prices on one line. */
@media (max-width: 374px) {
  .bf-tag__off { min-width: 3.9rem; }
  .bf-tag__pct { font-size: 1.3rem; }
  .bf-tag__prices { gap: 0 8px; }
  .bf-tag__was { font-size: .75rem; }
  .bf-tag__now { font-size: 1.05rem; }
}

/* Desktop and tablets: title on the left, the two deals on the right, sign-up across the bottom. */
@media (min-width: 720px) {
  .bf-pop { width: min(720px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 20px; }
  .bf-pop__inner {
    grid-template-columns: minmax(0, 14fr) minmax(0, 24fr); column-gap: 26px; align-items: start;
    grid-template-areas: "top top" "title tags" "sub tags" ". tags" "signup signup" "later later";
    grid-template-rows: auto auto auto 1fr auto auto;
    padding: 20px 26px 4px;
  }
  .bf-pop__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .bf-pop__top { gap: 14px; padding-right: 52px; }
  .bf-pop__plate { padding: 8px 12px; border-radius: 10px; }
  .bf-pop__plate img { height: 26px; }
  .bf-pop__kicker { font-size: .6875rem; }
  .bf-pop h2 { margin-top: 18px; font-size: 2.75rem; }
  .bf-pop h2 span { display: block; }
  .bf-pop__sub { display: block; margin-top: 12px; font-size: 1rem; }

  .bf-pop__tags { margin-top: 14px; gap: 10px; }
  .bf-tag { grid-template-columns: 38px auto minmax(0, 1fr); grid-template-rows: auto auto; padding: 9px 14px 9px 0; border-radius: 0 14px 14px 0; clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%); }
  .bf-tag__hole { grid-row: 1 / 3; width: 13px; height: 13px; margin-left: 10px; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .22); }
  .bf-tag__off { grid-row: 1 / 3; min-width: 6.5rem; padding-right: 12px; } /* same width on both tags */
  .bf-tag__pct { font-size: 2.25rem; }
  .bf-tag__word { font-size: 1.05rem; }
  .bf-tag__min { margin-top: 6px; font-size: .625rem; white-space: nowrap; }
  .bf-tag__body { grid-column: 3; padding-left: 14px; }
  .bf-tag__body h3 { font-size: 1rem; }
  .bf-tag__qty { font-size: .75rem; line-height: 1.3; }
  .bf-tag__was { font-size: .875rem; }
  .bf-tag__now { font-size: 1.4rem; }
  .bf-tag__claim { grid-column: 3; justify-self: start; width: auto; height: auto; min-height: 30px; margin: 6px 0 0 14px; padding: 4px 10px; border-radius: 6px; font-size: .78125rem; }
  .bf-tag__claim::after { content: none; }
  .bf-tag:hover .bf-tag__claim { background: var(--orange); }
  .bf-tag__claim:hover { background: var(--orange-hover); }
  .bf-tag__claim .icon { width: 1.1em; height: 1.1em; }
  .bf-tag__claim-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

  .bf-pop__signup { margin-top: 14px; padding-top: 10px; }
  .bf-pop__signup-title { font-size: 1rem; }
  .bf-pop__on-wa { display: inline; }
  .bf-pop__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: 8px; }
  .bf-pop__fields .btn { grid-column: auto; }
  .bf-pop__later { justify-self: center; margin-top: 0; padding: 6px 12px; }
}
