@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;600;700;800;900&display=swap');

/* ── Default palette — overridden at build time from flyer-config.json ── */
:root {
  --color-primary: #1b5e3a;
  --color-mid:     #2d8a52;
  --color-light:   #e8f5ec;
  --color-accent:  #c8e630;
  --white:         #ffffff;
  --strip-bg:      #111a0e;
  --width:  1080px;
  --height: 1920px;
  --hero-h: 1370px;
  --strip-h: 550px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: var(--width);
  height: var(--height);
  overflow: hidden;
  background: #000;
  font-family: 'Heebo', Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

/* ── Outer flyer frame ─────────────────────────────────────── */
.flyer {
  width: var(--width);
  height: var(--height);
  direction: rtl;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════
   HERO — full-bleed photo, text floats in the dark sky zone
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: var(--hero-h);
  flex-shrink: 0;
  overflow: hidden;
}

/* Full-bleed photo — positioned top so the sky/upper area shows in the text zone */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('assets/hero.jpg') center top / cover no-repeat;
}

/* Dark-to-transparent gradient — editorial technique: readable dark top, open photo below */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.18) 52%,
    rgba(0, 0, 0, 0.00) 70%
  );
}

/* Text content — floats in the upper dark zone, anchored to the RIGHT (RTL start) */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 72px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* RTL column: flex-start = RIGHT edge */
  text-align: right;
  height: 100%;
}

/* Small decorative tagline above the headline — Hebrew RTL, accent colour */
.tagline-top {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 30px;
  opacity: 0.92;
  text-align: right;
}
.tagline-top:empty { display: none; margin-bottom: 0; }

/* Headline — the biggest, boldest thing on the page */
.headline {
  font-size: 100px;
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

/* Subheadline inside a solid colour bar — the editorial signature element */
.subheadline-bar {
  display: inline-block;
  background: var(--color-primary);
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  padding: 13px 30px 15px;
  margin-bottom: 26px;
  border-right: 6px solid var(--color-accent);   /* RTL accent edge */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Optional thin italic tagline — emotional, lifestyle copy */
.tagline-emotional {
  font-size: 30px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 56px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}
.tagline-emotional:empty { display: none; margin-bottom: 0; }

/* Pill CTA button — on the photo, uses accent colour */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 18px 44px;
  border-radius: 999px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.38);
  transition: transform 0.15s;
}

.cta-arrow {
  font-size: 34px;
  font-weight: 300;
  opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM STRIP — compact dark panel with contact / QR / brand
   ══════════════════════════════════════════════════════════════ */
.strip {
  background: var(--strip-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Thin accent line at the border between photo and strip */
.strip-accent-bar {
  height: 4px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.strip-body {
  flex: 1;
  padding: 36px 60px 38px;
  display: flex;
  flex-direction: column;
}

/* Season / date row */
.strip-dates {
  text-align: right;
  margin-bottom: 24px;
}

.strip-date-main {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.strip-date-sub {
  font-size: 25px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 6px;
}

/* Thin rule */
.strip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.11);
  margin-bottom: 24px;
  flex-shrink: 0;
}

/*
  RTL layout: phones first in HTML → RIGHT side (start in RTL)
              QR  second in HTML → LEFT side  (end  in RTL)
*/
.strip-contact-row {
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 44px;
  margin-bottom: 24px;
}

.strip-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.strip-qr img {
  width: 158px;
  height: 158px;
  display: block;
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.strip-qr-label {
  font-size: 19px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* Phone column takes the remaining space on the RIGHT */
.strip-phones {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

/*
  Each phone item (RTL inherited):
  icon is first in HTML → placed on the RIGHT (RTL start)
  number is second      → placed to the LEFT of the icon
  justify-content: flex-start in RTL = pack from the right edge
*/
.strip-phone-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.strip-phone-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strip-phone-icon--wa    { background: #25d366; }
.strip-phone-icon--phone { background: rgba(255, 255, 255, 0.14); }
.strip-phone-icon svg    { width: 24px; height: 24px; }

.strip-phone-number {
  font-size: 46px;
  font-weight: 800;
  color: var(--white);
  direction: ltr;
  unicode-bidi: embed;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.15;
}

/* Brand row */
.strip-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  direction: rtl;
  margin-top: auto;
}

.strip-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  flex-shrink: 0;
}

.strip-club-name {
  flex: 1;
  font-size: 21px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  line-height: 1.4;
}

.strip-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.social-icon svg { width: 24px; height: 24px; }
.social-icon:hover { opacity: 0.85; }

.social-icon--web { background: rgba(255, 255, 255, 0.13); color: var(--white); }
.social-icon--ig  { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: var(--white); }
.social-icon--fb  { background: #1877f2; color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   STICKY CTA — hidden in PNG export, shown in browser only
   ══════════════════════════════════════════════════════════════ */
.sticky-cta { display: none; }

/* ══════════════════════════════════════════════════════════════
   WEB / MOBILE RESPONSIVE  (< 1080px — phone / tablet browser)
   ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1079px) {
  html, body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--strip-bg);
  }

  .flyer {
    width: 100%;
    height: auto;
    overflow: visible;
    padding-bottom: 84px;
  }

  .hero { height: clamp(340px, 92vw, 580px); }

  .hero-content {
    padding: clamp(22px, 5.5vw, 96px) clamp(14px, 3.5vw, 72px) 0;
  }

  .tagline-top {
    font-size: clamp(11px, 2.7vw, 24px);
    margin-bottom: clamp(12px, 3vw, 30px);
  }

  .headline {
    font-size: clamp(34px, 8.8vw, 100px);
    margin-bottom: clamp(10px, 2.5vw, 22px);
  }

  .subheadline-bar {
    font-size: clamp(13px, 3.3vw, 36px);
    padding: clamp(6px, 1.5vw, 13px) clamp(12px, 3vw, 30px) clamp(7px, 1.8vw, 15px);
    margin-bottom: clamp(10px, 2.5vw, 26px);
    border-right-width: clamp(3px, 0.8vw, 6px);
  }

  .tagline-emotional {
    font-size: clamp(13px, 3.2vw, 30px);
    margin-bottom: clamp(18px, 4.5vw, 56px);
  }

  .cta-pill {
    font-size: clamp(15px, 3.7vw, 38px);
    padding: clamp(10px, 2.5vw, 18px) clamp(18px, 4.5vw, 44px);
    gap: clamp(8px, 2vw, 14px);
  }

  .cta-arrow { font-size: clamp(13px, 3.3vw, 34px); }

  .strip-body {
    padding: clamp(14px, 3.5vw, 36px) clamp(12px, 3vw, 60px) clamp(14px, 3.5vw, 38px);
  }

  .strip-date-main  { font-size: clamp(18px, 4.5vw, 44px); }
  .strip-date-sub   { font-size: clamp(11px, 2.8vw, 25px); }
  .strip-dates      { margin-bottom: clamp(12px, 3vw, 24px); }

  .strip-contact-row { gap: clamp(14px, 3.5vw, 44px); margin-bottom: clamp(12px, 3vw, 24px); }

  .strip-qr img {
    width: clamp(76px, 21vw, 158px);
    height: clamp(76px, 21vw, 158px);
  }

  .strip-qr-label { font-size: clamp(10px, 2.5vw, 19px); }
  .strip-phones   { gap: clamp(10px, 2.5vw, 16px); }

  .strip-phone-icon {
    width: clamp(32px, 8vw, 50px);
    height: clamp(32px, 8vw, 50px);
  }

  .strip-phone-icon svg {
    width: clamp(14px, 3.5vw, 24px);
    height: clamp(14px, 3.5vw, 24px);
  }

  .strip-phone-number { font-size: clamp(19px, 4.8vw, 46px); }

  .strip-logo {
    width: clamp(40px, 10vw, 70px);
    height: clamp(40px, 10vw, 70px);
  }

  .strip-club-name { font-size: clamp(11px, 2.8vw, 21px); }

  .social-icon {
    width: clamp(32px, 8vw, 50px);
    height: clamp(32px, 8vw, 50px);
  }

  .social-icon svg {
    width: clamp(14px, 3.5vw, 24px);
    height: clamp(14px, 3.5vw, 24px);
  }

  /* ── Sticky CTA on mobile ── */
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.5vw, 16px);
    background: var(--color-accent);
    color: var(--color-primary);
    padding: clamp(14px, 3.5vw, 20px) clamp(20px, 5vw, 32px);
    padding-bottom: max(clamp(14px, 3.5vw, 20px), env(safe-area-inset-bottom));
    font-family: 'Heebo', Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    direction: rtl;
    animation: cta-pulse 2s ease-in-out infinite;
  }

  .sticky-cta-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .sticky-cta-urgency {
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.7;
    text-transform: uppercase;
  }

  .sticky-cta-text {
    font-size: clamp(17px, 4.2vw, 22px);
    font-weight: 900;
  }

  .sticky-cta-arrow {
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 300;
  }

  @keyframes cta-pulse {
    0%, 100% { box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45); }
    50%       { box-shadow: 0 -4px 36px rgba(200, 230, 48, 0.6); }
  }
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP BROWSER (≥ 1080px)
   ══════════════════════════════════════════════════════════════ */
@media screen and (min-width: 1080px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .flyer { margin-bottom: 90px; }

  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 18px 64px;
    font-family: 'Heebo', Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    direction: rtl;
  }

  .sticky-cta-urgency { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; opacity: 0.7; text-transform: uppercase; }
  .sticky-cta-text    { font-size: 24px; font-weight: 900; }
  .sticky-cta-arrow   { font-size: 26px; font-weight: 300; }
}
