/*
 * Valutoria — Real Estate Brochure
 * Migrated from valutoria-presentation deck (2026-06-02)
 * Converged with site conventions: outer <section> handles padding/borders.
 * Brand colors locked (navy/gold/phase). Theme via tokens.css.
 */

.re-brochure {
  /* Brand identity */
  --re-navy: #1E3A8A;
  --re-navy-dark: #162D6B;
  --re-gold: #D4AF37;
  --re-gold-mid: #C9A030;
  --re-gold-bg: rgba(212, 175, 55, 0.10);
  --re-gold-line: rgba(212, 175, 55, 0.30);
  --re-gold-border: rgba(212, 175, 55, 0.45);
  --re-phase1: #1E3A8A;
  --re-phase2: #2D5BB0;
  --re-phase3: #D4AF37;
  --re-phase4: #2F855A;

  /* Theme tokens */
  --re-text: rgb(var(--rgb-ink-default));
  --re-muted: rgb(var(--rgb-ink-muted));
  --re-line: rgb(var(--rgb-line));
  --re-title: rgb(var(--rgb-title));
  --re-surface: rgb(var(--rgb-surface));
  --re-surface-raised: rgb(var(--rgb-surface-raised));
  --re-surface-sunken: rgb(var(--rgb-surface-sunken));

  color: var(--re-text);
}

/* ============================================================
   LIFECYCLE FLOW
   Site <section> handles padding / borders; this just lays out
   the phase boxes.
   ============================================================ */
.re-brochure .re-phases {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.re-brochure .re-phase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 18px;
  border-top: 3px solid var(--re-gold-border);
  border-inline: 1px solid var(--re-line);
  border-bottom: 1px solid var(--re-line);
  background: var(--re-surface);
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.re-brochure .re-phase-box[data-phase="1"] { border-top-color: var(--re-phase1); }
.re-brochure .re-phase-box[data-phase="2"] { border-top-color: var(--re-phase2); }
.re-brochure .re-phase-box[data-phase="3"] { border-top-color: var(--re-phase3); }
.re-brochure .re-phase-box[data-phase="4"] { border-top-color: var(--re-phase4); }

.re-brochure .re-ph-num {
  font-family: 'Oxanium', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.re-brochure .re-phase-box[data-phase="1"] .re-ph-num { background: var(--re-phase1); }
.re-brochure .re-phase-box[data-phase="2"] .re-ph-num { background: var(--re-phase2); }
.re-brochure .re-phase-box[data-phase="3"] .re-ph-num { background: var(--re-phase3); }
.re-brochure .re-phase-box[data-phase="4"] .re-ph-num { background: var(--re-phase4); }

.re-brochure .re-phase-box h3 {
  font-family: 'Noto Kufi Arabic', 'Rubik', serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--re-title);
}

.re-brochure .re-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}

.re-brochure .re-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--re-gold-bg);
  color: var(--re-navy);
  white-space: nowrap;
}

[data-theme="dark"] .re-brochure .re-pill {
  color: var(--re-gold);
}

.re-brochure .re-arrow-svg {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--re-gold);
}

/* ============================================================
   MODULE ROWS — 2-col grid inside section wrapper
   ============================================================ */
.re-brochure .re-mod-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.re-brochure .re-mod-row + .re-mod-row > .re-mod-card {
  border-top: 1px solid var(--re-line);
}

.re-brochure .re-mod-card {
  padding: 28px 30px;
  border-inline-start: 1px solid var(--re-line);
  position: relative;
  background: var(--re-surface);
}

.re-brochure .re-mod-card:first-child {
  border-inline-start: none;
}

.re-brochure .re-mod-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--re-gold-line);
}

.re-brochure .re-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oxanium', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--re-navy);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.re-brochure .re-mod-card h2 {
  font-family: 'Noto Kufi Arabic', 'Rubik', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--re-title);
  line-height: 1.4;
  margin: 0;
}

.re-brochure .re-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.re-brochure .re-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.re-brochure .re-point .re-dot {
  color: var(--re-gold);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.85;
  flex-shrink: 0;
}

.re-brochure .re-point .re-txt {
  font-size: 14px;
  line-height: 1.85;
  color: var(--re-text);
}

.re-brochure .re-point .re-txt strong {
  color: var(--re-title);
  font-weight: 600;
}

/* ============================================================
   DIAGRAM CONTAINERS
   ============================================================ */
.re-brochure .re-diagram {
  margin: 16px 0 8px;
  padding: 14px;
  background: var(--re-surface-sunken);
  border: 1px solid var(--re-line);
  display: flex;
  justify-content: center;
  align-items: center;
}

.re-brochure .re-diagram svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   FLOW STRIP
   ============================================================ */
.re-brochure .re-flow-strip {
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.re-brochure .re-fs-item {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--re-navy);
  background: var(--re-surface-sunken);
  border: 1px solid var(--re-line);
  text-align: center;
  white-space: nowrap;
}

.re-brochure .re-fs-item:first-child {
  background: var(--re-navy);
  color: #fff;
  border-color: var(--re-navy);
}

[data-theme="dark"] .re-brochure .re-fs-item {
  color: rgb(var(--rgb-ink-strong));
}

[data-theme="dark"] .re-brochure .re-fs-item:first-child {
  color: #fff;
}

.re-brochure .re-fs-arrow {
  color: var(--re-gold);
  font-size: 16px;
  flex-shrink: 0;
  margin: 0 4px;
}

/* ============================================================
   ASSET COLUMNS
   ============================================================ */
.re-brochure .re-asset-cols {
  margin: 16px 0 8px;
  display: flex;
  gap: 0;
  border: 1px solid var(--re-line);
}

.re-brochure .re-asset-col {
  flex: 1;
  text-align: center;
  border-inline-start: 1px solid var(--re-line);
}

.re-brochure .re-asset-col:first-child {
  border-inline-start: none;
}

.re-brochure .re-asset-col .re-ac-head {
  padding: 9px 6px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--re-navy);
  line-height: 1.3;
}

.re-brochure .re-asset-col:nth-child(2) .re-ac-head { background: #2D5BB0; }
.re-brochure .re-asset-col:nth-child(3) .re-ac-head { background: #3B6EC9; }
.re-brochure .re-asset-col:nth-child(4) .re-ac-head { background: #4F80D4; }

.re-brochure .re-asset-col .re-ac-icon {
  padding: 10px 4px 8px;
  font-size: 20px;
  background: var(--re-surface-raised);
  line-height: 1;
}

.re-brochure .re-asset-col .re-ac-subs {
  padding: 7px 4px 10px;
  background: var(--re-surface);
  border-top: 1px solid var(--re-line);
}

.re-brochure .re-asset-col .re-ac-sub {
  font-size: 11px;
  color: var(--re-muted);
  line-height: 1.65;
  padding: 1px 0;
}

/* ============================================================
   TAGS
   ============================================================ */
.re-brochure .re-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--re-line);
}

.re-brochure .re-tag {
  font-family: 'Oxanium', monospace;
  font-size: 11px;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--re-line);
  color: var(--re-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   COMPARISON / TCO TABLES
   ============================================================ */
.re-brochure .re-comp-table,
.re-brochure .re-tco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 24px;
}

.re-brochure .re-comp-table th,
.re-brochure .re-tco-table th {
  padding: 12px 14px;
  text-align: start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--re-navy);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

.re-brochure .re-comp-table th:first-child,
.re-brochure .re-tco-table th:first-child {
  border-inline-start: none;
}

.re-brochure .re-comp-table th.re-yes-col,
.re-brochure .re-tco-table th.re-highlight {
  background: var(--re-gold-mid);
}

.re-brochure .re-comp-table th.re-no-col {
  background: #94A3B8;
}

.re-brochure .re-comp-table td,
.re-brochure .re-tco-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--re-line);
  border-inline-start: 1px solid var(--re-line);
  line-height: 1.65;
  vertical-align: top;
  color: var(--re-text);
  background: var(--re-surface);
}

.re-brochure .re-comp-table td:first-child,
.re-brochure .re-tco-table td:first-child {
  border-inline-start: none;
}

.re-brochure .re-comp-table td.re-label,
.re-brochure .re-tco-table td.re-label {
  font-weight: 600;
  color: var(--re-title);
  background: var(--re-surface-sunken);
  font-size: 13px;
}

.re-brochure .re-comp-table td.re-yes {
  color: #2F855A;
  font-weight: 600;
}

.re-brochure .re-comp-table td.re-no {
  color: #C53030;
  font-weight: 600;
}

[data-theme="dark"] .re-brochure .re-comp-table td.re-yes {
  color: #68D391;
}

[data-theme="dark"] .re-brochure .re-comp-table td.re-no {
  color: #FC8181;
}

.re-brochure .re-tco-table td.re-highlight-cell {
  background: var(--re-gold-bg);
  font-weight: 700;
  color: var(--re-navy);
}

[data-theme="dark"] .re-brochure .re-tco-table td.re-highlight-cell {
  color: var(--re-gold);
}

.re-brochure .re-tco-table td.re-cost-warn {
  font-weight: 700;
  color: #C53030;
}

[data-theme="dark"] .re-brochure .re-tco-table td.re-cost-warn {
  color: #FC8181;
}

/* ============================================================
   CALLOUTS
   ============================================================ */
.re-brochure .re-why-callout {
  display: flex;
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--re-line);
}

.re-brochure .re-callout-item {
  flex: 1;
  padding: 18px 20px;
  border-inline-start: 1px solid var(--re-line);
  background: var(--re-surface);
}

.re-brochure .re-callout-item:first-child {
  border-inline-start: none;
}

.re-brochure .re-callout-item .re-ci-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--re-gold);
}

.re-brochure .re-callout-item .re-ci-title {
  font-family: 'Noto Kufi Arabic', 'Rubik', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--re-title);
  margin-bottom: 8px;
  line-height: 1.4;
}

.re-brochure .re-callout-item .re-ci-text {
  font-size: 12px;
  color: var(--re-muted);
  line-height: 1.75;
}

/* ============================================================
   BOTTOM INTEGRATION BAR
   ============================================================ */
.re-brochure .re-integration-bar {
  display: flex;
  margin-bottom: 24px;
  border: 1px solid var(--re-line);
}

.re-brochure .re-int-item {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  border-inline-start: 1px solid var(--re-line);
  background: var(--re-surface);
}

.re-brochure .re-int-item:first-child {
  border-inline-start: none;
}

.re-brochure .re-int-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  background: var(--re-surface-sunken);
  border: 1px solid var(--re-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-brochure .re-int-icon svg {
  width: 22px;
  height: 22px;
}

.re-brochure .re-int-item .re-lbl {
  font-size: 13px;
  color: var(--re-muted);
  line-height: 1.6;
  font-weight: 500;
}

.re-brochure .re-summary-text {
  font-size: 15px;
  line-height: 2;
  color: var(--re-text);
  text-align: center;
  padding: 12px 0 4px;
  max-width: 65ch;
  margin: 0 auto;
}

.re-brochure .re-summary-text strong {
  color: var(--re-title);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .re-brochure .re-phases {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .re-brochure .re-arrow-svg svg {
    width: 26px;
    height: 26px;
  }
  .re-brochure .re-phase-box {
    flex: 0 1 auto;
    min-width: 150px;
  }
  .re-brochure .re-mod-row {
    grid-template-columns: 1fr;
  }
  .re-brochure .re-mod-card {
    border-inline-start: none;
    border-bottom: 1px solid var(--re-line);
  }
  .re-brochure .re-mod-card:last-child {
    border-bottom: none;
  }
  .re-brochure .re-integration-bar,
  .re-brochure .re-why-callout {
    flex-wrap: wrap;
  }
  .re-brochure .re-int-item,
  .re-brochure .re-callout-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--re-line);
  }
  .re-brochure .re-comp-table,
  .re-brochure .re-tco-table {
    font-size: 12px;
  }
  .re-brochure .re-comp-table th,
  .re-brochure .re-tco-table th,
  .re-brochure .re-comp-table td,
  .re-brochure .re-tco-table td {
    padding: 9px 10px;
  }
}

@media (max-width: 640px) {
  .re-brochure .re-phase-box {
    min-width: 100%;
  }
  .re-brochure .re-arrow-svg {
    transform: rotate(-90deg);
  }
  /* RTL flow swap: in RTL the original SVG points "forward" left, so on mobile vertical stack invert again */
  [dir="rtl"] .re-brochure .re-arrow-svg,
  html[lang="ar"] .re-brochure .re-arrow-svg,
  html[lang^="ar-"] .re-brochure .re-arrow-svg {
    transform: rotate(90deg);
  }
  .re-brochure .re-int-item,
  .re-brochure .re-callout-item {
    flex: 1 1 100%;
  }
  .re-brochure .re-asset-cols {
    flex-wrap: wrap;
  }
  .re-brochure .re-asset-col {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--re-line);
  }
  .re-brochure .re-mod-card {
    padding: 24px 20px;
  }
}
