/* Baltresto Black Friday 2026 — design system
   Edit CSS variables here to change the entire landing page consistently.
   All styles are scoped to .bf-page to avoid accidental WordPress theme collisions.
   Images are configured separately in assets/css/images.css.
*/

/* 1. DESIGN TOKENS -------------------------------------------------------- */
.bf-page {
  color-scheme: dark;
  /* Palette */
  --bf-bg: #080808;
  --bf-bg-strip: #050505;
  --bf-surface: #11100e;
  --bf-surface-strong: #0a0908;
  --bf-border: #28241e;
  --bf-border-card: #30291e;
  --bf-text: #f6f3ef;
  --bf-text-body: #e9e4db;
  --bf-text-muted: #b8b2a8;
  --bf-text-on-dark: #fff;
  --bf-gold: #e5be83;
  --bf-gold-dark: #c99551;
  --bf-gradient-button: linear-gradient(125deg, #f6dfb9, #d6a05a);
  --bf-gradient-hero: linear-gradient(135deg, #050505 0%, #0b0908 45%, #201810 100%);
  /* Cards: photos fill the card; overlay fades naturally to clear on the right. */
  --bf-gradient-card: linear-gradient(90deg,
    rgba(0,0,0,.94) 0%,
    rgba(0,0,0,.78) 24%,
    rgba(0,0,0,.44) 46%,
    rgba(0,0,0,.10) 67%,
    transparent 82%);
  --bf-gradient-card-mobile: linear-gradient(90deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.72) 33%,
    rgba(0,0,0,.28) 58%,
    transparent 88%);
  /* Photo appears farther to the right, but fades in without a visible edge. */
  --bf-card-image-position: center;
  --bf-card-image-shift: 7%;
  --bf-card-image-bleed: 5%;
  --bf-card-image-fade: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 22%, #000 45%);
  --bf-card-hover-blur: 4px;
  /* Discount is plain typography: no glass, solid panel or border. */
  --bf-card-offer-left: 30%;

  /* Typography: only Inter 400 and 700 */
  --bf-font: Inter, Arial, sans-serif;
  --bf-weight-regular: 400;
  --bf-weight-bold: 700;
  --bf-font-body: 16px;
  --bf-font-small: 14px;
  --bf-font-hero: clamp(58px, 6vw, 88px);
  --bf-font-heading: clamp(26px, 2.65vw, 34px);
  --bf-font-card-heading: clamp(23px, 2.35vw, 29px);
  --bf-font-discount: clamp(84px, 6.2vw, 96px);
  /* Vertically centered offer and title groups, shared height (desktop only). */
  --bf-card-content-height: 112px;
  --bf-leading-body: 1.6;
  --bf-leading-heading: 1.2;
  --bf-tracking-heading: -.045em;
  --bf-tracking-eyebrow: .085em;

  /* Spacing — reuse instead of arbitrary offsets */
  --bf-space-1: 8px;
  --bf-space-2: 12px;
  --bf-space-3: 16px;
  --bf-space-4: 20px;
  --bf-space-5: 24px;
  --bf-space-6: 28px;
  --bf-space-7: 32px;
  --bf-space-8: 40px;
  --bf-space-9: 48px;
  --bf-space-10: 64px;
  --bf-page-max: 1280px;
  --bf-page-gutter: 36px;
  --bf-card-pad: 28px;

  /* Shape and depth */
  --bf-radius-hero: 32px;
  --bf-radius-card: 22px;
  --bf-radius-panel: 28px;
  --bf-radius-control: 14px;
  --bf-shadow-hero: 0 30px 65px rgba(0,0,0,.35);
  --bf-shadow-card: 0 14px 34px rgba(0,0,0,.20);

  min-height: 100vh;
  background: radial-gradient(ellipse at 51% -12%, rgba(198,137,65,.11), transparent 35%), var(--bf-bg);
  color: var(--bf-text);
  font-family: var(--bf-font);
  font-size: var(--bf-font-body);
  font-weight: var(--bf-weight-regular);
  line-height: var(--bf-leading-body);
  -webkit-font-smoothing: antialiased;
}

/* 2. RESETS + REUSABLE PRIMITIVES ---------------------------------------- */
body { margin: 0; }
.bf-page *, .bf-page *::before, .bf-page *::after { box-sizing: border-box; }
.bf-page a { color: inherit; text-decoration: none; }
.bf-page a:focus-visible, .bf-page summary:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 4px; }
.bf-page [hidden] { display: none !important; }
.bf-page :is(h1,h2,h3,p) { margin-top: 0; }
.bf-page :is(h1,h2,h3,strong) { font-weight: var(--bf-weight-bold); }
.bf-page svg { display: block; }
.bf-container { width: min(var(--bf-page-max), calc(100% - 2 * var(--bf-page-gutter))); margin-inline: auto; }
.bf-logo { display: inline-flex; flex: 0 0 auto; align-items: center; width: 194px; max-width: 100%; line-height: 1; }
.bf-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.bf-eyebrow, .bf-section-eyebrow {
  color: var(--bf-gold); font-size: var(--bf-font-small); font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-eyebrow); line-height: 1.45; text-transform: uppercase;
}
.bf-section-eyebrow { margin-bottom: var(--bf-space-1); }
.bf-page h2 { margin: 0; font-size: var(--bf-font-heading); line-height: var(--bf-leading-heading); letter-spacing: var(--bf-tracking-heading); }
.bf-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bf-space-2);
  font-family: var(--bf-font); font-size: var(--bf-font-body); font-weight: var(--bf-weight-regular); line-height: 1.35;
  text-align: center; text-decoration: none;
}
.bf-button { min-height: 50px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--bf-radius-control); transition: transform .2s, box-shadow .2s; }
.bf-button:hover { transform: translateY(-2px); }
.bf-button--primary { color: #17110a !important; background: var(--bf-gradient-button); box-shadow: 0 12px 30px rgba(196,132,51,.22); }
.bf-button svg { width: 17px; height: 17px; }

/* 3. ANNOUNCEMENT + NAVIGATION ------------------------------------------ */
.bf-announcement {
  min-height: 38px; padding: 7px var(--bf-space-3); display: flex; align-items: center; justify-content: center; gap: var(--bf-space-2);
  text-align: center; color: var(--bf-gold); background: var(--bf-bg-strip); font-size: var(--bf-font-small); letter-spacing: .055em; line-height: 1.4; text-transform: uppercase;
}
.bf-announcement-line { flex: 0 0 18px; height: 1px; background: #946e3d; }
.bf-header { display: flex; align-items: center; justify-content: space-between; gap: var(--bf-space-5); min-height: 78px; }
.bf-nav { display: flex; align-items: center; gap: var(--bf-space-6); color: #d4cec4; font-size: var(--bf-font-body); }
.bf-nav a { transition: color .2s; }
.bf-nav a:hover, .bf-nav a.is-active { color: var(--bf-gold); }

/* 4. CAMPAIGN HERO ------------------------------------------------------ */
.bf-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 476px;
  border: 1px solid #2a241c; border-radius: var(--bf-radius-hero);
  background: var(--bf-gradient-hero); box-shadow: var(--bf-shadow-hero);
}
.bf-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 86% 3%, rgba(228,177,101,.25), transparent 35%),radial-gradient(ellipse at 20% 110%, rgba(143,95,38,.10), transparent 40%); }
.bf-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .20;
  background-image: url('../images/contour-lines.svg'); background-repeat: no-repeat; background-position: 110% center; background-size: 810px auto;
}
.bf-hero-glow { position: absolute; right: -175px; top: -235px; width: 440px; height: 440px; border: 1px solid rgba(229,190,131,.16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(229,190,131,.035),0 0 0 100px rgba(229,190,131,.022); pointer-events: none; }
.bf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: 52px; padding: var(--bf-space-10) 68px; }
.bf-eyebrow { margin-bottom: var(--bf-space-4); }
.bf-hero-heading { margin: 0 0 var(--bf-space-4); font-size: var(--bf-font-hero); line-height: 1.02; letter-spacing: -.061em; }
.bf-hero-heading span { display: block; color: var(--bf-gold); }
.bf-lead { max-width: 500px; margin-bottom: var(--bf-space-5); color: var(--bf-text-body); line-height: 1.65; }
.bf-actions { display: flex; flex-wrap: wrap; gap: var(--bf-space-2); }

/* 5. COUNTDOWN (shared panel + timer cell styles) ----------------------- */
.bf-countdown {
  min-width: 0; padding: 26px var(--bf-space-5) 22px; border: 1px solid rgba(255,255,255,.27); border-radius: var(--bf-radius-panel);
  background: linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.055));
  box-shadow: 0 20px 40px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px);
}
.bf-countdown-title { margin: 0 0 var(--bf-space-3); color: var(--bf-gold); text-align: center; text-transform: uppercase; font-size: var(--bf-font-small); letter-spacing: .055em; line-height: 1.4; }
.bf-timer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--bf-space-1); }
.bf-timer-cell { min-width: 0; padding: 14px 4px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--bf-radius-control); text-align: center; background: rgba(5,5,5,.83); }
.bf-timer-cell strong { display: block; color: #faf5eb; font-size: clamp(28px,3vw,42px); line-height: 1.14; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bf-timer-cell span { display: block; margin-top: 6px; color: #d4cec4; font-size: var(--bf-font-small); line-height: 1.3; text-transform: uppercase; }
.bf-countdown-note { margin: 5px 0 0; color: #d4cec4; font-size: var(--bf-font-small); line-height: 1.5; text-align: center; padding-top:15px;}
.bf-countdown[data-status='ended'] .bf-timer-grid { opacity: .5; }

/* 6. CONTEXT + SECTION HEADINGS ----------------------------------------- */
.bf-trust {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px var(--bf-space-4);
  margin: 22px 0 34px; padding: var(--bf-space-2) 0; border-bottom: 1px solid var(--bf-border);
  color: var(--bf-text-muted); font-size: var(--bf-font-small); line-height: 1.5;
}
.bf-trust-dot { flex: 0 0 3px; width: 3px; height: 3px; border-radius: 50%; background: #99774e; }
.bf-section-heading { margin-bottom: var(--bf-space-4); }

/* 7. COLLECTION CARDS — single reusable component ---------------------- */
.bf-collection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--bf-space-3); }
.bf-collection-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(240px, 1.2fr);
  align-items: center; min-height: 240px;
  padding: var(--bf-card-pad); border: 1px solid var(--bf-border-card); border-radius: var(--bf-radius-card);
  background: var(--bf-surface-strong); box-shadow: var(--bf-shadow-card); color: var(--bf-text-on-dark);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bf-collection-card:hover { transform: translateY(-2px); border-color: #806039; box-shadow: 0 18px 42px rgba(0,0,0,.32); }
/* Full-bleed image, shifted right. The alpha fade prevents a hard left edge. */
.bf-collection-card::before {
  content: ""; position: absolute;
  inset: 0 calc(-1 * var(--bf-card-image-bleed)) 0 0;
  z-index: -2;
  background-image: var(--bf-collection-image, none);
  background-repeat: no-repeat; background-size: cover;
  background-position: var(--bf-card-image-position);
  -webkit-mask-image: var(--bf-card-image-fade);
  mask-image: var(--bf-card-image-fade);
  transform: translateX(var(--bf-card-image-shift));
  transition: filter .45s ease, transform .45s ease;
}
/* Readability only on the left; product remains bright on the right. */
.bf-collection-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bf-gradient-card);
}
.bf-collection-info {
  grid-column: 1; position: relative; z-index: 1; min-width: 0; max-width: none;
  height: var(--bf-card-content-height); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  align-self: center;
}
.bf-collection-info h3 { margin: 0; font-size: var(--bf-font-card-heading); line-height: 1.12; letter-spacing: -.042em; }
.bf-collection-link { display: inline-flex; align-items: center; gap: 10px; color: #f5f2ee; font-size: var(--bf-font-body); line-height: 1.25; white-space: nowrap; text-decoration:underline;}
.bf-round-icon { /*width: 30px; height: 30px;*/ flex: 0 0 30px; border: 0px solid rgba(255,255,255,.62); border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.18); }
.bf-round-icon svg { width: 16px; height: 16px; }
/* Plain gold offer text; the card gradient provides contrast, not a glass panel. */
.bf-collection-offer {
  grid-column: 2; position: relative; z-index: 1;
  top: auto; left: auto; transform: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  height: var(--bf-card-content-height); gap: 0; width: max-content;
  align-self: center;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  white-space: nowrap; pointer-events: none;
  text-shadow: 0 3px 16px rgba(0,0,0,.70), 0 1px 5px rgba(0,0,0,.55);
  padding-left:20px;
}
 .bf-offer-value { display: flex; align-items: baseline; gap: 0; color: var(--bf-gold); }
.bf-offer-value strong { font-size: var(--bf-font-discount); line-height: .94; letter-spacing: -.072em; }
.bf-offer-line { display: flex; align-items: baseline; gap: 8px; }
.bf-offer-off { color: var(--bf-gold); font-size: var(--bf-font-small); line-height: 1.2; font-weight: var(--bf-weight-bold); text-transform: uppercase; }
.bf-offer-caption { color: #f1e9dc; font-size: var(--bf-font-small); line-height: 1.25; }
/* Effect applies to photography only. Text and 20% panel always stay sharp. */
@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
  .bf-collection-card:hover::before {
    filter: blur(var(--bf-card-hover-blur)) brightness(.85);
    transform: translateX(var(--bf-card-image-shift)) scale(1.035);
  }
}

/* 8. FAQ + FOOTER ------------------------------------------------------ */
.bf-faq { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 50px; margin-top: 44px; padding: 34px 0 46px; border-top: 1px solid var(--bf-border); }
.bf-faq h2 { font-size: 26px; }
.bf-faq details { border-bottom: 1px solid var(--bf-border); }
.bf-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--bf-space-3); padding: 15px 0; color: #f3eee6; font-size: var(--bf-font-body); line-height: 1.5; cursor: pointer; }
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after { content: '+'; color: var(--bf-gold); flex: 0 0 auto; font-size: 22px; line-height: 1; }
.bf-faq details[open] summary::after { content: '−'; }
.bf-faq details p { margin: 0 0 var(--bf-space-3); color: #c9c2b7; font-size: var(--bf-font-body); line-height: 1.65; }
.bf-faq details p a { color: var(--bf-gold); text-decoration: underline; text-underline-offset: 3px; }
.bf-footer { padding: 26px 0; border-top: 1px solid var(--bf-border); background: var(--bf-bg-strip); }
.bf-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--bf-space-3); }
.bf-footer .bf-logo { width: 172px; }
.bf-footer small, .bf-footer a:last-child { color: var(--bf-text-muted); font-size: var(--bf-font-small); line-height: 1.5; }

/* 9. RESPONSIVE RULES — grouped by breakpoint, no layered patchwork ------ */
@media (max-width: 1100px) {
  .bf-hero-grid { padding: 54px 44px; gap: var(--bf-space-7); }
  .bf-collection-grid { grid-template-columns: 1fr; }
  .bf-collection-card { min-height: 236px; }
  .bf-collection-info { max-width: none; }
}
@media (max-width: 900px) {
  .bf-page { --bf-page-gutter: 20px; }
  .bf-nav { display: none; }
  .bf-header { min-height: 72px; }
  .bf-hero { min-height: auto; }
  .bf-hero-grid { grid-template-columns: minmax(0,1fr); padding: var(--bf-space-9); gap: var(--bf-space-7); }
  .bf-countdown { width: min(100%,600px); }
  .bf-faq { grid-template-columns: 1fr; gap: var(--bf-space-4); }
}
@media (max-width: 600px) {
  .bf-page { --bf-page-gutter: 14px; --bf-card-pad: 24px; }
  .bf-announcement { letter-spacing: .015em; gap: var(--bf-space-1); }
  .bf-announcement-line { flex-basis: 12px; }
  .bf-header { min-height: 68px; gap: 10px; }
  .bf-logo { width: 162px; }
  .bf-hero { border-radius: 24px; }
  .bf-hero-grid { padding: 36px 24px 26px; gap: var(--bf-space-6); }
  .bf-eyebrow { margin-bottom: var(--bf-space-3); }
  .bf-hero-heading { margin-bottom: 18px; font-size: clamp(52px,13vw,68px); letter-spacing: -.065em; }
  .bf-lead { margin-bottom: 22px; }
  .bf-button { width: 100%; }
  .bf-countdown { padding: var(--bf-space-4) var(--bf-space-3); border-radius: 20px; }
  .bf-timer-cell strong { font-size: 35px; }
  .bf-trust { margin: 14px 0 28px; gap: 8px 14px; }
  .bf-section-heading { margin-bottom: 18px; }
  .bf-page h2 { font-size: 27px; }
  .bf-collection-grid { gap: 14px; }
  .bf-collection-card {
    display: flex; min-height: 250px; flex-direction: column; align-items: flex-start; justify-content: space-between;
    gap: 0; padding: var(--bf-card-pad); border-radius: 21px;
  }
  .bf-collection-card::before {
    inset: 0; background-position: 72% center;
    -webkit-mask-image: none; mask-image: none;
    transform: none;
  }
  .bf-collection-card::after { background: var(--bf-gradient-card-mobile); }
  /* Mobile remains simple, with aligned discount, title and CTA — no offer panel. */
  .bf-collection-offer {
    position: relative; order: 1; inset: auto; transform: none; align-self: flex-start;
    flex: 0 0 auto; height: auto; justify-content: flex-start; margin: 0; gap: 4px; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .bf-offer-value { gap: 7px; }
  .bf-offer-value strong { font-size: 44px; }
  .bf-collection-info { position: relative; order: 2; display: block; height: auto; flex: 0 0 auto; width: 100%; max-width: 100%; margin-top: auto; padding: 0; }
  .bf-collection-info h3 { margin-bottom: var(--bf-space-2); font-size: 23px; line-height: 1.23; letter-spacing: -.03em; }
  .bf-collection-link { gap: 10px; }
  .bf-faq { margin-top: 34px; padding-top: 28px; padding-bottom: 38px; }
  .bf-footer-inner { align-items: flex-start; flex-direction: column; gap: var(--bf-space-2); }
}
@media (max-width: 480px) {
  .bf-timer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bf-timer-cell { padding: 12px var(--bf-space-1); }
  .bf-timer-cell strong { font-size: 37px; }
}
@media (max-width: 360px) {
  .bf-page { --bf-card-pad: 20px; }
  .bf-hero-grid { padding-inline: var(--bf-space-4); }
  .bf-hero-heading { font-size: 50px; }
  .bf-collection-card { min-height: 242px; }
  .bf-offer-value strong { font-size: 41px; }
  .bf-collection-info h3 { font-size: 22px; }
  .bf-collection-card::before { background-position: 73% center; }
}
@supports (corner-shape: squircle) {
  .bf-hero, .bf-countdown, .bf-timer-cell, .bf-collection-card { corner-shape: squircle; }
}
@media (prefers-reduced-motion: reduce) {
  /* Respect reduced motion: no animated transitions or image zoom. */
  .bf-page *, .bf-page *::before, .bf-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Keep the photographic blur on hover, applied instantly without movement. */
  @media (min-width: 601px) and (hover: hover) and (pointer: fine) {
    .bf-collection-card:hover::before {
      filter: blur(var(--bf-card-hover-blur)) brightness(.85);
      transform: translateX(var(--bf-card-image-shift));
    }
  }
}
