/* ============================================================
   NISHWIK — SEO/AEO/GEO PAGE COMPONENTS
   Uses ONLY existing brand variables from assets-nishwik-theme.css.
   No new brand colours introduced. Light theme consistent.
   ============================================================ */

.nw-page-hero {
  padding: 130px 0 40px;
  background: linear-gradient(180deg, rgba(1,16,68,0.03), transparent);
}
.nw-page-hero h1 { margin: 14px 0 18px; }
.nw-page-hero .nw-lede { font-size: 18px; max-width: 760px; color: #4a5a7a; line-height: 1.7; }

.nw-section { padding: 40px 0; }
.nw-section h2 { margin-bottom: 18px; }
.nw-section h3 { margin: 22px 0 10px; color: var(--ink) !important; }
.nw-section p { color: #4a5a7a; margin-bottom: 14px; }
.nw-section ul { margin: 0 0 16px 20px; }
.nw-section ul li { color: #4a5a7a; line-height: 1.7; margin-bottom: 8px; }

/* Breadcrumb */
.nw-breadcrumb {
  font-size: 12.5px; color: #6b7280; padding: 96px 0 0; display: flex;
  flex-wrap: wrap; gap: 6px; align-items: center;
}
.nw-breadcrumb a { color: var(--gold); font-weight: 600; }
.nw-breadcrumb a:hover { color: var(--gold2); }
.nw-breadcrumb .sep { color: rgba(0,13,46,0.3); }
.nw-breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* Answer card grid (AEO) */
.nw-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 768px) { .nw-answers { grid-template-columns: 1fr; } }
.nw-answer-card {
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 20px 22px; background: #ffffff;
  box-shadow: 0 2px 18px rgba(0,13,46,0.04);
}
.nw-answer-card h3 {
  font-size: 16px !important; font-weight: 700; margin: 0 0 8px;
  color: var(--ink) !important;
}
.nw-answer-card p { font-size: 14.5px; margin: 0; color: #4a5a7a; }

/* Fact / info cards */
.nw-grid { display: grid; gap: 18px; }
.nw-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.nw-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.nw-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .nw-grid.cols-3, .nw-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .nw-grid.cols-2, .nw-grid.cols-3, .nw-grid.cols-4 { grid-template-columns: 1fr; } }
.nw-card {
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 22px; background: #ffffff; box-shadow: 0 2px 18px rgba(0,13,46,0.04);
  transition: transform .2s ease, box-shadow .3s ease;
}
.nw-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,13,46,0.08); }
.nw-card h3 { font-size: 18px !important; margin: 0 0 10px; }
.nw-card p { font-size: 14.5px; margin: 0; }
.nw-card .nw-card-link { display:inline-block; margin-top:12px; color: var(--gold); font-weight:600; font-size:14px; }
.nw-card .nw-card-link:hover { color: var(--gold2); }

/* Document checklist */
.nw-checklist { list-style: none; margin-left: 0 !important; }
.nw-checklist li { position: relative; padding-left: 28px; }
.nw-checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold2); font-weight: 800;
}

/* Steps */
.nw-steps { counter-reset: nwstep; list-style: none; margin-left: 0 !important; }
.nw-steps li {
  position: relative; padding-left: 44px; margin-bottom: 16px; min-height: 32px;
}
.nw-steps li::before {
  counter-increment: nwstep; content: counter(nwstep);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  background: var(--brand-gradient); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* FAQ accordion */
.nw-faq { display: flex; flex-direction: column; gap: 10px; }
.nw-faq-item {
  border: 1px solid var(--border); border-radius: var(--r);
  background: #ffffff; overflow: hidden;
}
.nw-faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink);
  font-size: 15.5px; list-style: none; position: relative; padding-right: 44px;
}
.nw-faq-item summary::-webkit-details-marker { display: none; }
.nw-faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold2); font-weight: 400;
}
.nw-faq-item[open] summary::after { content: '−'; }
.nw-faq-a { padding: 0 20px 16px; }
.nw-faq-a p { font-size: 14.5px; color: #4a5a7a; margin: 0; }

/* CTA row */
.nw-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 8px; }
.nw-wa-btn {
  background: #25D366 !important; color: #fff !important; font-weight: 700;
}
.nw-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.35); }

/* Lead form */
.nw-lead {
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 28px; background: #ffffff; box-shadow: 0 4px 30px rgba(0,13,46,0.06);
  max-width: 720px;
}
.nw-lead h3 { font-size: 22px !important; margin: 0 0 6px; }
.nw-lead-sub { font-size: 14.5px; color: #4a5a7a; margin-bottom: 18px; }
.nw-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .nw-lead-grid { grid-template-columns: 1fr; } }
.nw-lead-grid label {
  display: flex; flex-direction: column; gap: 6px; font-size: 13px;
  font-weight: 600; color: var(--ink);
}
.nw-lead-grid input, .nw-lead-grid select {
  font-family: inherit; font-size: 14.5px; padding: 11px 13px;
  border: 1px solid rgba(0,13,46,0.16); border-radius: var(--r);
  background: #fff; color: var(--ink); font-weight: 500;
}
.nw-lead-grid input:focus, .nw-lead-grid select:focus {
  outline: 2px solid var(--gold2); outline-offset: 1px; border-color: var(--gold2);
}
.nw-consent { grid-column: 1 / -1; flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.nw-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.nw-consent span { font-size: 13px; color: #4a5a7a; line-height: 1.5; }
.nw-consent a { color: var(--gold); font-weight: 600; }
/* P1-04: optional WhatsApp preference + accessible inline errors */
.nw-consent-optional { margin-top: -4px; }
.nw-lead-error {
  grid-column: 1 / -1; margin: 0; padding: 10px 12px;
  border: 1px solid #b42318; border-left-width: 4px; border-radius: var(--r);
  background: #fef3f2; color: #b42318; font-size: 13.5px; font-weight: 600; line-height: 1.5;
}
.nw-lead-error[hidden] { display: none; }
.nw-lead-grid input[aria-invalid="true"] { border-color: #b42318; }
.nw-consent input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.nw-lead-submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.nw-lead-success {
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.3);
  border-radius: var(--r); padding: 18px 20px; color: var(--ink); font-size: 14.5px;
}
.nw-lead-disclaimer { font-size: 11.5px; color: #6b7280; margin-top: 14px; font-style: italic; line-height: 1.5; }

/* Disclaimer box */
.nw-disclaimer-box {
  border: 1px solid rgba(247,86,41,0.25); background: rgba(247,86,41,0.04);
  border-radius: var(--r); padding: 16px 18px; font-size: 12.5px;
  color: #6b7280; line-height: 1.7;
}
.nw-disclaimer-box strong { color: var(--gold3); }

/* Link clusters (internal linking) */
.nw-linkcluster { display: flex; flex-wrap: wrap; gap: 10px; }
.nw-linkcluster a {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px;
  background: #fff; transition: all .2s;
}
.nw-linkcluster a:hover { border-color: var(--gold2); color: var(--gold2); }

/* Big CTA band */
.nw-cta-band {
  background: var(--brand-gradient); border-radius: var(--r2);
  padding: 40px 36px; text-align: center; color: #fff; margin: 12px 0;
}
.nw-cta-band h2 { color: #fff !important; margin-bottom: 12px; }
.nw-cta-band p { color: rgba(255,255,255,0.9) !important; max-width: 640px; margin: 0 auto 22px; }
.nw-cta-band .btn-ghost { border-color: rgba(255,255,255,0.6) !important; color: #fff !important; }
.nw-cta-band .btn-ghost:hover { background: rgba(255,255,255,0.15) !important; }

/* City index search */
.nw-city-search { margin: 20px 0; }
.nw-city-search input {
  width: 100%; max-width: 480px; font-size: 15px; padding: 13px 16px;
  border: 1px solid rgba(0,13,46,0.16); border-radius: 99px; font-family: inherit;
}
.nw-city-search input:focus { outline: 2px solid var(--gold2); border-color: var(--gold2); }
.nw-city-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 18px; }
@media (max-width: 900px){ .nw-city-list { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .nw-city-list { grid-template-columns: 1fr; } }
.nw-city-list a {
  font-size: 14px; color: var(--ink); padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--r); background:#fff; font-weight: 500; transition: all .2s;
}
.nw-city-list a:hover { border-color: var(--gold2); color: var(--gold2); }
.nw-city-list a .nw-prod { display:block; font-size:11.5px; color:#6b7280; font-weight:600; margin-top:2px; }

/* Trust signals */
.nw-trust { display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media(max-width:600px){ .nw-trust{ grid-template-columns:1fr; } }
.nw-trust-item { display:flex; gap:12px; align-items:flex-start; font-size:14px; color:#4a5a7a; }
.nw-trust-item strong { color: var(--ink); display:block; font-size:13px; margin-bottom:2px; }

/* utility */
.nw-muted { color:#6b7280; font-size:13px; }
.nw-updated { font-size:12.5px; color:#6b7280; margin-top:8px; }
.nw-tier-tag { display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color: var(--gold); border:1px solid var(--border); padding:2px 8px; border-radius:99px; margin-left:6px; }

/* ============================================================
   ACCESSIBILITY & MOBILE HARDENING (cleanup pass)
   Focus states + overflow guards. Uses existing brand vars only.
   ============================================================ */
.nw-faq-item summary:focus-visible,
.nw-linkcluster a:focus-visible,
.nw-city-list a:focus-visible,
.nw-breadcrumb a:focus-visible,
.nw-card .nw-card-link:focus-visible,
.nw-wa-btn:focus-visible,
.nw-lead-submit:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
  border-radius: 6px;
}
.nw-consent input:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
}
/* Prevent any horizontal scroll from new sections on mobile */
main { overflow-x: hidden; }
.nw-answers, .nw-grid, .nw-city-list, .nw-lead-grid, .nw-linkcluster, .nw-cta-row { max-width: 100%; }
.nw-lead, .nw-cta-band { max-width: 100%; }
img { max-width: 100%; height: auto; }
/* Ensure CTA buttons wrap and stay tappable (min 44px height) on mobile */
@media (max-width: 560px) {
  .nw-cta-row .btn, .nw-wa-btn { width: 100%; min-height: 44px; }
  .nw-lead-submit { width: 100%; }
}

/* P1-10: visible loan cost & lender disclosures */
.nw-loan-disclosure h2{font-size:24px;margin:0 0 10px;}
.nw-disc-lead{font-size:14.5px;color:#4a5a7a;max-width:820px;margin:0 0 18px;line-height:1.6;}
.nw-disc-table{width:100%;max-width:960px;border-collapse:collapse;font-size:14px;line-height:1.55;background:#fff;border:1px solid rgba(1,16,68,0.12);border-radius:12px;overflow:hidden;}
.nw-disc-table th,.nw-disc-table td{text-align:left;vertical-align:top;padding:12px 16px;border-top:1px solid rgba(1,16,68,0.08);color:#011044;}
.nw-disc-table tr:first-child th,.nw-disc-table tr:first-child td{border-top:0;}
.nw-disc-table th{width:210px;font-weight:700;background:rgba(1,16,68,0.03);}
.nw-disc-table a{color:#ba025e;font-weight:600;}
.nw-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
@media (max-width:600px){.nw-disc-table th,.nw-disc-table td{display:block;width:auto;}.nw-disc-table td{border-top:0;padding-top:0;}}
