/* ═══════════════════════════════════════
   BROCHURE DOWNLOAD PAGE
   Depends on: style.css (tokens, .w, .btn)
   Light theme — clean, editorial, trustworthy
═══════════════════════════════════════ */

/* ══════════════════════════════
   PAGE WRAPPER
══════════════════════════════ */
.bro-page {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.bro-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none; z-index: 0;
}
.bro-page::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.07), transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════
   INNER GRID — equal two columns
══════════════════════════════ */
.bro-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 52px 0 100px;
}

/* ══════════════════════════════
   LEFT COLUMN — fills full width
══════════════════════════════ */
.bro-left {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* stretch to fill full column */
  gap: 0;
  width: 100%;
}

/* ── Eyebrow ── */
.bro-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-4);
  margin-bottom: 20px;
}
.bro-eyebrow-line {
  flex: 1; height: 1px; background: var(--border-2); display: block;
  max-width: 60px;
}

/* ── Brochure Preview Card ──
   Fills the full left column width.
   IMAGE SPECS:
   • Width  : 500 px
   • Height : 400 px
   • Ratio  : 5 : 4
   • Format : JPG / PNG, max 200 KB
   • Django : <img src="{{ brochure.image.url }}" alt="...">
*/
.bro-preview-card {
  width: 100%;           /* fill entire left column */
  height: 420px;         /* fixed height for clean look */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(10,15,40,.05),
    0 8px 28px rgba(10,15,40,.11),
    0 28px 60px rgba(10,15,40,.09);
  transition: transform .5s cubic-bezier(.34,1.4,.64,1), box-shadow .4s ease;
  animation: broFadeUp .6s ease both;
  cursor: default;
  flex-shrink: 0;
}
.bro-preview-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow:
    0 2px 6px rgba(10,15,40,.06),
    0 16px 44px rgba(10,15,40,.15),
    0 48px 80px rgba(10,15,40,.11);
}

/* brochure image — blurred to lock content */
.bro-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  filter: blur(7px) brightness(.9);
  transform: scale(1.05); /* hides blur edges */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* right-edge book shadow */
.bro-preview-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  box-shadow: inset -4px 0 16px rgba(0,0,0,.08);
  pointer-events: none; z-index: 3;
}

/* ── Top ribbon ── */
.bro-ribbon {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: 100px;
  font-size: .65rem; font-weight: 800; letter-spacing: .07em;
  color: var(--text-2); box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.bro-ribbon-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo); animation: blink 1.5s infinite; flex-shrink: 0;
}

/* ── Page badge ── */
.bro-page-badge {
  position: absolute; bottom: 16px; right: 16px; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--text-2); padding: 4px 12px; border-radius: 8px;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Lock Overlay ── */
.bro-lock-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248,249,252,.12);
  backdrop-filter: blur(1.5px);
}
.bro-lock-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,.95);
  border-radius: 22px;
  padding: 30px 36px 26px;
  box-shadow:
    0 4px 24px rgba(10,15,40,.12),
    0 1px 4px rgba(10,15,40,.06);
  text-align: center;
  max-width: 280px;
}
.bro-lock-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--indigo-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo-deep); margin-bottom: 2px;
  animation: lockWiggle 3.5s ease-in-out infinite;
}
.bro-lock-title {
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}
.bro-lock-sub {
  font-size: .77rem; color: var(--text-3); line-height: 1.55;
  max-width: 210px;
}
.bro-lock-arrow {
  font-size: 1.3rem; color: var(--indigo);
  animation: arrowBounce 1.4s ease-in-out infinite; margin-top: 2px;
}

/* ── Image spec note (remove in production) ── */
.bro-img-spec {
  font-size: .62rem; color: var(--text-4); font-style: italic;
  margin-top: 10px; text-align: center;
  background: var(--bg-2); padding: 4px 10px; border-radius: 6px;
  align-self: center;
}

/* ── Trust row ── */
.bro-trust-row {
  display: flex; align-items: center; gap: 0;
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bro-trust-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 12px;
  font-size: .76rem; font-weight: 600; color: var(--text-3);
  transition: background .2s, color .2s;
}
.bro-trust-item:hover { background: var(--indigo-pale); color: var(--indigo-deep); }
.bro-trust-icon { font-size: .9rem; }
.bro-trust-sep {
  width: 1px; height: 28px; background: var(--border); flex-shrink: 0;
}

/* ══════════════════════════════
   RIGHT COLUMN
══════════════════════════════ */
.bro-right {
  display: flex; flex-direction: column; gap: 26px;
  padding-top: 4px;
  animation: broFadeUp .6s .12s ease both;
}

/* ── Heading ── */
.bro-right-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--indigo-dim); color: var(--indigo-deep);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.bro-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo); animation: blink 1.5s infinite;
}
.bro-right-h {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -.025em; color: var(--text);
  margin-bottom: 12px;
}
.bro-right-h em {
  font-style: italic;
  background: linear-gradient(120deg, var(--indigo-deep), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bro-right-h strong { font-weight: 700; }
.bro-right-sub {
  font-size: .9rem; color: var(--text-3); line-height: 1.8; max-width: 440px;
}

/* ── What's Inside ── */
.bro-inside-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 12px;
}
.bro-inside-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bro-inside-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.bro-inside-item:hover {
  border-color: var(--indigo); background: var(--indigo-pale);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.bro-inside-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.bi-blue   { background: var(--teal-dim);          color: var(--teal-deep); }
.bi-orange { background: var(--indigo-dim);         color: var(--indigo-deep); }
.bi-green  { background: rgba(5,150,105,.1);        color: #065f46; }
.bi-teal   { background: rgba(14,165,233,.1);       color: #0369a1; }
.bi-purple { background: rgba(124,58,237,.1);       color: #5b21b6; }
.bi-rose   { background: var(--rose-dim);           color: #92400e; }
.bro-inside-title { font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.bro-inside-sub   { font-size: .68rem; color: var(--text-4); }

/* ══════════════════════════════
   STATS STRIP — LIGHT THEME
   Orange + Blue gradient accent
══════════════════════════════ */
.bro-stats-strip {
  display: flex; align-items: stretch;
  background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
/* gradient top accent bar */
.bro-stats-strip::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--indigo-deep) 0%,
    var(--indigo) 30%,
    var(--teal) 70%,
    var(--teal-deep) 100%
  );
}
.bro-stat {
  flex: 1; padding: 18px 12px; text-align: center;
  transition: background .25s;
  position: relative;
}
.bro-stat:hover { background: rgba(249,115,22,.06); }
.bro-stat-n {
  font-family: var(--font-h); font-size: 1.55rem; font-weight: 700;
  line-height: 1; letter-spacing: -.03em;
  margin-bottom: 5px;
  /* alternating orange / blue gradient per number */
}
/* orange stats */
.bro-stat:nth-child(1) .bro-stat-n,
.bro-stat:nth-child(3) .bro-stat-n {
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* blue stats */
.bro-stat:nth-child(2) .bro-stat-n,
.bro-stat:nth-child(4) .bro-stat-n {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bro-stat-l {
  font-size: .6rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-4);
}
.bro-stat-sep {
  width: 1px; background: var(--border); flex-shrink: 0; align-self: stretch;
  margin: 12px 0;
}

/* ══════════════════════════════
   CTA BOX — WhatsApp
══════════════════════════════ */
.bro-cta-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.bro-cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80);
}
.bro-cta-box-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.bro-wa-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
}
.bro-cta-box-title {
  font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 2px;
}
.bro-cta-box-sub { font-size: .73rem; color: var(--text-3); }

/* WhatsApp button */
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: 100px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-b); font-size: .87rem; font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 18px rgba(34,197,94,.35);
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-wa::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12); opacity: 0;
  transition: opacity .25s; border-radius: inherit;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,.45); }
.btn-wa:hover::after { opacity: 1; }

.bro-wa-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; font-size: .67rem; color: var(--text-4);
}
.bro-wa-note-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; animation: blink 1.5s infinite; flex-shrink: 0;
}

/* ── OR divider ── */
.bro-or { display: flex; align-items: center; gap: 12px; }
.bro-or-line { flex: 1; height: 1px; background: var(--border); }
.bro-or-txt { font-size: .72rem; color: var(--text-4); font-weight: 500; white-space: nowrap; }

/* ── Secondary link ── */
.bro-contact-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font-b); font-size: .83rem; font-weight: 600;
  color: var(--text-2); text-decoration: none;
  box-shadow: var(--shadow);
  transition: all .25s var(--ease);
}
.bro-contact-link:hover {
  border-color: var(--indigo); color: var(--indigo-deep);
  background: var(--indigo-pale); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes broFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lockWiggle {
  0%,100% { transform: rotate(0deg); }
  10%     { transform: rotate(-7deg); }
  20%     { transform: rotate(7deg); }
  30%     { transform: rotate(-4deg); }
  40%     { transform: rotate(4deg); }
  50%     { transform: rotate(0deg); }
}
@keyframes arrowBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ══════════════════════════════
   RESPONSIVE — 1100px
══════════════════════════════ */
@media(max-width:1100px) {
  .bro-inner { gap: 40px; }
}

/* ══════════════════════════════
   RESPONSIVE — 900px
══════════════════════════════ */
@media(max-width:900px) {
  .bro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 72px;
  }
  .bro-left        { align-items: center; }
  .bro-preview-card{ max-width: 520px; width: 100%; height: 380px; }
  .bro-trust-row   { max-width: 520px; width: 100%; }
  .bro-inside-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ══════════════════════════════
   RESPONSIVE — 640px
══════════════════════════════ */
@media(max-width:640px) {
  .bro-page          { padding-top: 72px; }
  .bro-preview-card  { height: 300px; }
  .bro-inside-grid   { grid-template-columns: 1fr 1fr; }
  .bro-stats-strip   { flex-wrap: wrap; }
  .bro-stat          { min-width: 50%; }
  .bro-stat-sep      { display: none; }
  .bro-right-h       { font-size: 1.85rem; }
}

/* ══════════════════════════════
   RESPONSIVE — 480px
══════════════════════════════ */
@media(max-width:480px) {
  .bro-preview-card { height: 260px; }
  .bro-inside-grid  { grid-template-columns: 1fr; }
  .bro-right-h      { font-size: 1.65rem; }
  .bro-cta-box      { padding: 18px 16px 14px; }
  .bro-trust-item span:last-child { display: none; }
}