/* ============================================================
   PLEXI — shared design system
   Used by all secondary pages (privacy, terms, blog, rewards,
   settlement agencies, community navigator). The two homepages
   (index.html / he.html) and the calculator landing keep their
   own inline copy of these tokens; values here are kept in sync.
   ============================================================ */
:root {
  --coral:        #E34635;
  --coral-dark:   #C53C2F;
  --cream:        #FAF5F2;
  --ink:          #1a1a1a;
  --muted:        #5D5A57;
  --brown:        #766659;
  --white:        #ffffff;
  --radius:       28px;
  --radius-sm:    14px;
  --maxw:         1180px;
  --font-head:    'Montserrat', system-ui, sans-serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --shadow:       0 18px 50px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; }
.accent { color: var(--coral); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--coral); border: 2px solid var(--coral); }
.btn--ghost:hover { background: var(--coral); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0eae6;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.brand .brand-tag { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 16px; }
.nav-links a.active, .nav-links a:hover { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang { font-size: 13px; color: var(--muted); }
.lang a { padding: 0 5px; }
.lang a.active { color: var(--coral); font-weight: 700; }
.lang a:hover { color: var(--coral); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ===== Section variants ===== */
.sec-coral { background: var(--coral); color: #fff; }
.sec-coral h2, .sec-coral h3 { color: #fff; }
.sec-cream { background: var(--cream); }

/* ===== Page hero (secondary pages) ===== */
.page-hero { padding: 70px 0 30px; background: var(--cream); }
.page-hero .container { max-width: 900px; }
.page-hero .kicker { color: var(--coral); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.page-hero h1 { margin-top: 10px; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ===== Long-form prose (legal pages) ===== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 38px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; color: var(--coral); }
.prose p { color: #333; margin: 12px 0; }
.prose ul { margin: 12px 0 12px 22px; color: #333; }
.prose li { margin: 6px 0; }
.prose .eff-date { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.prose strong { font-weight: 700; }

/* ===== Centered intro ===== */
.intro { text-align: center; max-width: 820px; margin: 0 auto 10px; }
.intro .lead { margin-top: 16px; }
.kicker { color: var(--coral); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }

/* ===== Generic card grid ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--cream); border-radius: var(--radius-sm); padding: 30px 28px; box-shadow: var(--shadow); }
.card h3 { color: var(--coral); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; margin-top: 40px; }
.step { text-align: center; }
.step .step-num { font-family: var(--font-head); font-weight: 800; font-size: 42px; color: var(--coral); }
.step h3 { margin: 8px 0; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Blog grid ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee2db; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--coral), #f08a7e); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px; text-align: center; padding: 20px; }
.blog-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14px; flex: 1; }
.blog-card .meta { color: var(--brown); font-size: 12px; font-weight: 600; margin-top: 16px; text-transform: uppercase; letter-spacing: .5px; }

/* ===== Reward program / directory list cards ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { background: var(--cream); border: 1px solid #eee2db; color: var(--ink); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--coral); color: var(--coral); }
.chip.active { background: var(--coral); color: #fff; border-color: var(--coral); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; margin-top: 36px; }
.item-card { background: #fff; border: 1px solid #eee2db; border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow); }
.item-card h3 { font-size: 19px; margin-bottom: 4px; }
.item-card .company { color: var(--coral); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.item-card .field-label { font-weight: 700; font-size: 13px; margin-top: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--brown); }
.item-card p { color: #444; font-size: 14px; margin-top: 4px; }
.item-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.item-card .tag { background: var(--cream); color: var(--brown); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }

/* ===== Footer ===== */
.site-footer { background: #1c1a19; color: #cfc9c4; padding: 70px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer a:hover { color: var(--coral); }
.footer-list { list-style: none; display: grid; gap: 9px; }
.newsletter { margin-top: 22px; }
.newsletter input[type=email] { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #3a3735; background: #2a2725; color: #fff; margin: 10px 0; font-family: inherit; }
.newsletter label { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #34302d; margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8a8480; }
.footer-bottom a { color: #8a8480; }

/* ===== Scroll reveal (pure CSS, never hides content) ===== */
@keyframes plexiFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { animation: plexiFadeUp .7s ease both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav-right .lang { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* RTL support for Hebrew secondary pages */
[dir="rtl"] .prose ul { margin: 12px 22px 12px 0; }
[dir="rtl"] .footer-bottom { direction: rtl; }
