/* ============================================================================
 * Vidastu NRI — section styles. Layers on tokens.css / chrome.css.
 * Brand: cream #F7F4EE · ink #0E0E0C · sage #6B7A5C · terracotta #B5562C · gold #C9A961
 * All components namespaced .nri-* to avoid collisions with the main site.
 * ==========================================================================*/

/* Safety net: guarantee tokens exist even if loaded standalone. */
:root {
  --bg-cream: #F7F4EE; --bg-paper: #FFFFFF; --ink: #0E0E0C; --ink-soft: #4A4A45;
  --rule: #E8E2D6; --sage: #6B7A5C; --terracotta: #B5562C; --terracotta-deep: #97431F;
  --gold: #C9A961;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --nri-green: #3E7B5D;      /* trust / verified */
  --nri-dusk: #1c2433;       /* deep navy-ink for hero overlays */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.nri { background: var(--bg-cream); color: var(--ink); font-family: var(--f-body); line-height: 1.6; }
.nri-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px){ .nri-wrap { padding: 0 22px; } }
.nri-eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta); margin: 0 0 18px;
}
.nri-section { padding: 92px 0; }
.nri-section--tight { padding: 64px 0; }
@media (max-width:768px){ .nri-section { padding: 60px 0; } }
.nri-h2 {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.04; font-size: clamp(30px, 4.4vw, 54px); margin: 0 0 20px;
}
.nri-h2 em { font-style: italic; color: var(--terracotta); }
.nri-lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 60ch; }
.nri-rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ---- buttons (self-sufficient) ---- */
.nri-btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 17px 30px; border-radius: 999px; font-size: 15px; letter-spacing: 0.01em;
  background: var(--terracotta); color: var(--bg-cream); border: 1px solid var(--terracotta);
  transition: background .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s;
  text-align: center;
}
.nri-btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(149,67,31,.6); }
.nri-btn .arr { transition: transform .35s var(--ease-out); }
.nri-btn:hover .arr { transform: translateX(5px); }
.nri-btn--ghost { background: transparent; color: var(--ink); border-color: rgba(14,14,12,.25); }
.nri-btn--ghost:hover { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); box-shadow:none; }
.nri-btn--wa { background: #25D366; border-color:#25D366; color:#073b1e; }
.nri-btn--wa:hover { background:#1da851; border-color:#1da851; color:#fff; }
.nri-btn--lg { padding: 19px 38px; font-size: 16px; }
.nri-btn--block { width: 100%; justify-content: center; }

/* ============================ HERO ============================ */
.nri-hero {
  position: relative; isolation: isolate; color: var(--bg-cream);
  padding: 168px 0 90px; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(201,169,97,.18) 0%, transparent 55%),
    linear-gradient(160deg, #11161f 0%, #1c2433 45%, #34291f 100%);
}
.nri-hero::after { /* subtle film grain */
  content:""; position:absolute; inset:0; z-index:0; opacity:.5; pointer-events:none;
  background-image: radial-gradient(rgba(247,244,238,.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.nri-hero > .nri-wrap { position: relative; z-index: 2; }
.nri-hero h1 {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.025em;
  line-height: 1.0; font-size: clamp(38px, 6vw, 80px); margin: 16px 0 22px; max-width: 16ch;
}
.nri-hero h1 em { font-style: italic; color: var(--gold); }
.nri-hero .nri-sub { font-size: clamp(17px, 1.7vw, 22px); color: rgba(247,244,238,.82); max-width: 52ch; margin: 0 0 34px; }
.nri-hero .nri-eyebrow { color: var(--gold); }
.nri-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* trust strip */
.nri-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(247,244,238,.16);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(247,244,238,.78);
}
.nri-trust span { display: inline-flex; align-items: center; gap: 8px; }
.nri-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.nri-trust .star { color: var(--gold); }

/* ===================== FEAR / PROMISE CARDS ===================== */
.nri-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width:880px){ .nri-cards { grid-template-columns: 1fr; } }
.nri-card {
  background: var(--bg-paper); border: 1px solid var(--rule); border-radius: 16px;
  padding: 32px 28px; transition: transform .4s var(--ease-out), box-shadow .4s;
}
.nri-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,14,12,.35); }
.nri-card .q { font-family: var(--f-display); font-style: italic; font-size: 22px; line-height: 1.2; margin: 0 0 14px; }
.nri-card .a { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.nri-card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(181,86,44,.10); color: var(--terracotta); margin-bottom: 18px; font-size: 20px;
}

/* ===================== STAT TILES (why now) ===================== */
.nri-on-dark { background: var(--ink); color: var(--bg-cream); }
.nri-on-dark .nri-h2 em { color: var(--gold); }
.nri-on-dark .nri-lead { color: rgba(247,244,238,.72); }
.nri-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 44px; }
@media (max-width:880px){ .nri-stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px){ .nri-stats { grid-template-columns: 1fr; } }
.nri-stat { border: 1px solid rgba(247,244,238,.14); border-radius: 14px; padding: 26px 22px; }
.nri-stat .num { font-family: var(--f-display); font-size: clamp(34px,4vw,46px); line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.nri-stat .lbl { margin-top: 10px; font-size: 14.5px; color: rgba(247,244,238,.86); }
.nri-stat .src { margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: rgba(247,244,238,.45); }

/* ===================== STEPS (remote build) ===================== */
.nri-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 44px; counter-reset: step; }
@media (max-width:980px){ .nri-steps { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width:560px){ .nri-steps { grid-template-columns: 1fr; } }
.nri-step { position: relative; padding: 0 22px; }
.nri-step:not(:last-child)::after { content:""; position:absolute; top:13px; right:0; width:1px; height:calc(100% - 13px); background:var(--rule); }
@media (max-width:980px){ .nri-step::after{ display:none; } }
.nri-step .n {
  counter-increment: step; width: 28px; height: 28px; border-radius: 50%;
  background: var(--terracotta); color: var(--bg-cream); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; margin-bottom: 16px;
}
.nri-step .n::before { content: counter(step); }
.nri-step h4 { font-family: var(--f-display); font-size: 19px; margin: 0 0 8px; font-weight: 500; }
.nri-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.nri-step .see { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing:.04em; color: var(--sage); text-transform: uppercase; }

/* ===================== APPRECIATION CHART ===================== */
.nri-chart-card { background: var(--bg-paper); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.nri-chart-wrap { position: relative; height: 360px; }
@media (max-width:560px){ .nri-chart-wrap { height: 300px; } }
.nri-chart-foot { margin-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); }
.nri-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.nri-toggle button { padding: 9px 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; background: transparent; border:none; }
.nri-toggle button.on { background: var(--ink); color: var(--bg-cream); }

/* ===================== COMPARE (Dubai vs Jewar) ===================== */
.nri-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
@media (max-width:780px){ .nri-compare { grid-template-columns: 1fr; } }
.nri-comp-col { border: 1px solid var(--rule); border-radius: 16px; padding: 30px; background: var(--bg-paper); }
.nri-comp-col.is-jewar { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta) inset; }
.nri-comp-col h3 { font-family: var(--f-display); font-size: 26px; margin: 0 0 6px; }
.nri-comp-col .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing:.08em; text-transform: uppercase; color: var(--ink-soft); }
.nri-comp-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.nri-comp-row .k { color: var(--ink-soft); }
.nri-comp-row .v { font-weight: 600; text-align: right; }

/* ===================== CALCULATOR ===================== */
.nri-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width:880px){ .nri-calc { grid-template-columns: 1fr; } }
.nri-calc-panel { background: var(--bg-paper); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.nri-field { margin-bottom: 20px; }
.nri-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.nri-field .val { font-family: var(--f-mono); color: var(--ink); font-size: 14px; }
.nri-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--rule); outline: none; }
.nri-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--terracotta); cursor: pointer; border: 3px solid var(--bg-paper); box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.nri-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--terracotta); cursor: pointer; border: 3px solid var(--bg-paper); }
.nri-field input[type=number], .nri-field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 9px;
  font: inherit; background: var(--bg-cream); color: var(--ink);
}
.nri-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.nri-seg button { padding: 9px 14px; font-size: 13px; cursor: pointer; background: transparent; border: none; color: var(--ink-soft); }
.nri-seg button.on { background: var(--terracotta); color: var(--bg-cream); }
.nri-result { background: linear-gradient(160deg,#1c2433,#34291f); color: var(--bg-cream); border-radius: 18px; padding: 30px; }
.nri-result .row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(247,244,238,.12); }
.nri-result .row:last-of-type { border-bottom: none; }
.nri-result .row .k { color: rgba(247,244,238,.72); font-size: 14px; }
.nri-result .row .v { font-family: var(--f-display); font-size: 20px; }
.nri-result .big { margin: 8px 0 4px; }
.nri-result .big .v { font-size: clamp(32px,5vw,46px); color: var(--gold); }
.nri-result .gain { color: var(--gold); font-family: var(--f-mono); font-size: 13px; }
.nri-disc { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.6; }
.nri-on-dark .nri-disc, .nri-result .nri-disc { color: rgba(247,244,238,.55); }

/* ===================== TEAM ===================== */
.nri-team { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; margin-top: 40px; }
@media (max-width:680px){ .nri-team { grid-template-columns: 1fr; } }
.nri-person { display: flex; gap: 20px; align-items: center; border: 1px solid var(--rule); border-radius: 16px; padding: 22px; background: var(--bg-paper); }
.nri-person img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; background:#e6dfd0; }
.nri-person h4 { font-family: var(--f-display); font-size: 22px; margin: 0 0 4px; }
.nri-person .role { font-family: var(--f-mono); font-size: 11.5px; letter-spacing:.06em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.nri-person p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===================== PROOF / REVIEWS ===================== */
.nri-reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }
@media (max-width:880px){ .nri-reviews { grid-template-columns: 1fr; } }
.nri-review { border: 1px solid var(--rule); border-radius: 14px; padding: 24px; background: var(--bg-paper); }
.nri-review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.nri-review p { font-size: 15px; margin: 0 0 14px; }
.nri-review .who { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }

/* ===================== FEMA / TRUST BLOCK ===================== */
.nri-fema { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 36px; }
@media (max-width:780px){ .nri-fema { grid-template-columns: 1fr; } }
.nri-fema-item { border-left: 2px solid var(--sage); padding: 6px 0 6px 20px; }
.nri-fema-item h4 { font-family: var(--f-display); font-size: 18px; margin: 0 0 6px; }
.nri-fema-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ===================== LEAD FORM ===================== */
.nri-form-sec { background: var(--ink); color: var(--bg-cream); }
.nri-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width:880px){ .nri-form-grid { grid-template-columns: 1fr; gap: 32px; } }
.nri-form { background: var(--bg-paper); color: var(--ink); border-radius: 18px; padding: 32px; }
.nri-form h3 { font-family: var(--f-display); font-size: 26px; margin: 0 0 6px; }
.nri-form .form-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.nri-form label { display: block; font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.nri-form input, .nri-form select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--rule); border-radius: 10px;
  font: inherit; background: var(--bg-cream); color: var(--ink); margin-bottom: 16px;
}
.nri-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nri-phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.nri-form .fineprint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.nri-thanks { display: none; background: rgba(62,123,93,.08); border: 1px solid var(--nri-green); border-radius: 14px; padding: 28px; text-align: center; }
.nri-thanks h3 { font-family: var(--f-display); color: var(--nri-green); margin: 0 0 8px; }
.nri-form-aside h2 { font-family: var(--f-display); font-size: clamp(28px,3.4vw,42px); line-height: 1.08; margin: 0 0 18px; }
.nri-form-aside .nri-eyebrow { color: var(--gold); }
.nri-form-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.nri-form-aside li { display: flex; gap: 12px; font-size: 15.5px; color: rgba(247,244,238,.85); }
.nri-form-aside li .ck { color: var(--gold); flex: 0 0 auto; }

/* ===================== STICKY MOBILE CTA ===================== */
.nri-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule);
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,.5);
}
.nri-sticky a { padding: 15px 8px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nri-sticky .s-wa { background: #25D366; color: #06371c; }
.nri-sticky .s-cta { background: var(--terracotta); color: var(--bg-cream); }
@media (max-width:768px){ .nri-sticky { display: grid; } body { padding-bottom: 52px; } }

/* ===================== SOURCE FOOTNOTE / DISCLAIMER ===================== */
.nri-sources { margin-top: 28px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.nri-sources b { color: var(--ink); font-weight: 600; }
.nri-badge { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border:1px solid var(--rule); border-radius:999px; font-family:var(--f-mono); font-size:11px; letter-spacing:.05em; color:var(--ink-soft); }
.nri-badge .v { color: var(--nri-green); }

/* reveal on scroll (uses motion.js .reveal pattern if present, else visible) */
.nri-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.nri-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .nri-reveal { opacity:1 !important; transform:none !important; } }

/* ---- self-contained: info-bar (was in site styles.css) ---- */
.info-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--ink);color:rgba(247,244,238,.85);font-family:var(--f-mono);font-size:11.5px;letter-spacing:.04em;padding:8px 40px;position:relative;z-index:51}
.info-bar a{color:var(--gold)}
@media(max-width:768px){.info-bar{padding:8px 22px;font-size:10.5px;justify-content:center;text-align:center}}
