/* ==========================================================================
   NRI Property Guard — Design System & Marketing Site Styles
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #06213b;
  --navy-800: #0b3357;
  --navy-700: #0f4271;
  --navy-600: #14548f;
  --navy-500: #1c6bb0;
  --blue-100: #e8f1fb;
  --blue-50: #f4f9fd;

  --teal-700: #0a6b52;
  --teal-600: #0e8f6b;
  --teal-500: #17a67e;
  --teal-100: #e3f7f0;

  --gold-700: #96700c;
  --gold-600: #b8860f;
  --gold-500: #d4a017;
  --gold-100: #fbf1d9;

  --red-600: #c62d3f;
  --red-100: #fbe7ea;

  --ink-900: #101820;
  --ink-700: #33404a;
  --ink-500: #5b6b76;
  --ink-300: #8fa0aa;
  --ink-100: #e4ebee;
  --ink-50: #f5f8f9;
  --white: #ffffff;

  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(6, 33, 59, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 33, 59, 0.10);
  --shadow-lg: 0 20px 48px rgba(6, 33, 59, 0.16);

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--navy-600); text-decoration: none; }
p a, li a.inline, .lede a { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }
.section-tight { padding: 56px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-100); padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.lede { font-size: 1.15rem; color: var(--ink-500); max-width: 640px; }
.center-col { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--teal-700); color: var(--white); box-shadow: 0 10px 24px rgba(14,143,107,.28); }
.btn-primary:hover { background: #084f3d; transform: translateY(-1px); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline-navy:hover { background: var(--blue-100); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-wa { background: #1FAA55; color: #fff; }
.btn-wa:hover { background: #178a44; }

/* Top notice bar */
.topbar {
  background: var(--navy-900); color: #cfe1f2; font-size: .82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* Nav
   The desktop row (logo + 7 links + 2 CTA buttons) needs more breathing room
   than the page's 1180px content container gives it — at anything from
   roughly 940px up to ~1450px wide, multi-word links like "How It Works" and
   "About Us" used to wrap onto a second line, throwing the whole row out of
   vertical alignment. Fixed by: giving the nav its own wider max-width,
   tightening gaps/font-size just enough to fit, forcing every link and the
   brand name onto one line (white-space: nowrap), and raising the point at
   which it hands off to the mobile menu so a merely-narrow desktop window
   gets the clean single-column menu instead of a half-squeezed row. */
.navbar {
  position: sticky; top: 0; z-index: 500; border-bottom: 1px solid var(--ink-100);
}
/* The frosted-glass background lives on ::before, not on .navbar itself,
   because backdrop-filter on an ancestor makes it the containing block for
   any position:fixed descendant — which silently broke the mobile menu
   drawer below (a real bug found while fixing the desktop nav: the fixed
   overlay was being sized against .navbar's own ~60px height instead of the
   full viewport). Keeping the blur on an empty pseudo-element sidesteps that
   without giving up the effect. */
.navbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; max-width: 1360px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: var(--navy-900); white-space: nowrap; flex-shrink: 0; }
.brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .06em; color: var(--teal-700); text-transform: uppercase; white-space: nowrap; }
.brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.nav-links a { display: inline-block; color: var(--ink-700); font-weight: 500; font-size: .92rem; white-space: nowrap; padding: 6px 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal-600); transform: scaleX(0); transition: transform .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-700); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }
.nav-links a.btn-primary::after { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.only-mobile { display: none; }
@media (max-width: 1240px) {
  .only-mobile { display: list-item; }
  /* --nav-drawer-top is set by main.js from the header's real measured
     height right before the drawer opens (that height varies a lot by
     width, since the topbar text wraps to more lines on narrow phones) —
     the 66px is only a pre-JS fallback so nothing looks broken for an
     instant before the script runs. */
  .nav-links { position: fixed; inset: var(--nav-drawer-top, 66px) 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links a { white-space: normal; padding: 4px 1px; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline-navy { display: none; }
}

/* Hero */
.hero {
  background: radial-gradient(1100px 520px at 85% -10%, rgba(23,166,126,.16), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: #fff; padding: 76px 0 100px; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .lede { color: #cfe1f2; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: var(--radius-pill); font-size: .82rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.hero-stat span { font-size: .8rem; color: #a9c3da; }
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px; color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ink-100); }
.hero-card .row:last-child { border-bottom: none; }
.status-chip { font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.status-verified { background: var(--teal-100); color: var(--teal-700); }
.status-progress { background: var(--gold-100); color: var(--gold-700); }

/* Section header */
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

/* Cards / grids */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon-badge { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--teal-100); color: var(--teal-700); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: .95rem; }

.feature-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-bottom: 20px; align-items: start; }
.feature-row .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-row h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy-900); }
.feature-row p { margin: 0; font-size: .92rem; }

/* Section variants */
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2 { color: #fff; }
.section-navy .lede { color: #b9cee2; }
.section-navy .feature-row h3 { color: #fff; }
.section-navy .feature-row p { color: #cfe0ee; }
.section-tint { background: var(--blue-50); }
.section-teal-tint { background: var(--teal-100); }

/* Stepper / how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--white); border-radius: var(--radius-md); padding: 30px 24px; border: 1px solid var(--ink-100); }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--teal-600); display: block; margin-bottom: 10px; }

/* Timeline (workflow) */
.timeline { border-left: 3px solid var(--ink-100); margin-left: 12px; padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ''; position: absolute; left: -35px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-500); border: 3px solid var(--teal-100); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.timeline-item span.role-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy-600); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow-lg); position: relative; }
.price-card .ribbon { position: absolute; top: -14px; right: 28px; background: var(--gold-500); color: var(--navy-900); font-weight: 700; font-size: .74rem; padding: 6px 16px; border-radius: var(--radius-pill); }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--navy-900); margin: 10px 0 2px; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--ink-500); }
.price-list { list-style: none; padding: 0; margin: 22px 0 28px; flex-grow: 1; }
.price-list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ink-100); font-size: .94rem; }
.price-list li:first-child { border-top: none; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--ink-100); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ink-100); font-size: .92rem; }
table.compare th { background: var(--blue-50); font-family: var(--font-display); color: var(--navy-900); }
table.compare td.yes { color: var(--teal-700); font-weight: 700; }
table.compare td.no { color: var(--ink-500); }

/* Testimonials */
.testi-card { background: #fff; border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--ink-100); }
.testi-stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 12px; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-700); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }

/* FAQ accordion */
.accordion-item { border-bottom: 1px solid var(--ink-100); }
.accordion-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.accordion-q .plus { flex-shrink: 0; transition: transform .2s ease; color: var(--teal-600); }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-a p { padding: 0 4px 20px; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-field .hint { font-size: .78rem; color: var(--ink-500); margin-top: 4px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-100);
  font-family: var(--font-body); font-size: .95rem; background: var(--white); color: var(--ink-900);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 16px; display: none; }
.form-alert.show { display: block; }
.form-alert.error { background: var(--red-100); color: var(--red-600); }
.form-alert.success { background: var(--teal-100); color: var(--teal-700); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-700), var(--teal-600)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6f3e9; }

/* Footer */
footer { background: var(--navy-900); color: #b9cee2; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
footer h3 { color: #fff; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a { color: #b9cee2; font-size: .92rem; }
footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8fa8bd; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: rgba(255,255,255,.18); }

/* WhatsApp floating widget (matches reference: green header, two action buttons) */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  cursor: pointer; border: none;
  /* Perf (Phase 9): was "infinite" — an animation that never settles keeps the
     compositor busy for the entire time a visitor has the tab open (small but
     real, continuous CPU/battery cost on the phones most visitors use), and
     it measurably inflated Lighthouse's Speed Index, which scores how quickly
     the page reaches a final, unchanging visual state. Three pulses is still
     enough to catch the eye on load; it then stops moving. */
  animation: wa-pulse 2.6s ease-out 3;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 900; width: 290px;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100); display: none;
}
.wa-panel.open { display: block; }
.wa-panel-head { background: var(--teal-600); color: #fff; padding: 16px 18px; font-family: var(--font-display); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.wa-panel-head button { background: none; border: none; color: #fff; cursor: pointer; opacity: .85; }
.wa-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #faf9f2; }
.wa-action { display: flex; align-items: center; gap: 12px; background: var(--navy-800); color: #fff; padding: 12px 14px; border-radius: 12px; }
.wa-action:hover { background: var(--navy-900); }
.wa-action .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-action div b { display: block; font-size: .9rem; }
.wa-action div span { font-size: .74rem; opacity: .85; }

/* Badges/logos strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: center; }
.logo-strip span { font-family: var(--font-display); font-weight: 700; color: var(--ink-500); font-size: 1rem; letter-spacing: .02em; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.stack-gap > * + * { margin-top: 16px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.pill-list li { background: var(--blue-100); color: var(--navy-700); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); }
.breadcrumb { font-size: .82rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-500); }
.page-hero { background: var(--blue-50); padding: 60px 0 40px; border-bottom: 1px solid var(--ink-100); }
.page-hero h1 { margin-bottom: 12px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }
