/* visa-wizard site styles · paisa palette · matches .guide network */

:root {
  --pb-bg: #f6efe2;
  --pb-bg2: #ede2c9;
  --pb-paper: #fdfaf2;
  --pb-ink: #1f1a14;
  --pb-ink-soft: #5a4a3a;
  --pb-gold: #c9a84c;
  --pb-gold-deep: #8c6f24;
  --pb-terra: #b04a25;
  --pb-terra-deep: #7d2f12;
  --pb-green: #2d5a3f;
  --pb-red: #b32f2f;
  --pb-line: #1f1a141a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 5rem; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--pb-bg);
  color: var(--pb-ink);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--pb-terra-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--pb-gold-deep); }

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--pb-ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); margin: 1.8rem 0 0.7rem; }
h4 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }

p, ul, ol { margin-bottom: 1.1rem; color: var(--pb-ink); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* ============================================================
   TOP BAND + HEADER
============================================================ */
.pb-top {
  background: var(--pb-ink);
  color: var(--pb-bg);
  font-size: 13px;
  padding: 9px 0;
}
.pb-top .pb-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .pb-wrap { padding: 0 40px; } }
.pb-top a { color: var(--pb-bg); text-decoration: none; opacity: .9; font-weight: 500; }
.pb-top a:hover { color: var(--pb-gold); opacity: 1; }

.site-pb {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pb-line);
}
.site-pb .pb-wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; gap: 18px;
}
.pb-brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--pb-ink);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.pb-brand .pb-dot { color: var(--pb-terra); }
.pb-nav { display: none; gap: 24px; font-size: 14.5px; font-weight: 500; }
.pb-nav a { color: var(--pb-ink); text-decoration: none; padding: 6px 0; }
.pb-nav a:hover { color: var(--pb-terra-deep); }
@media (min-width: 980px) { .pb-nav { display: flex; } }

.pb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--pb-ink);
  background: transparent; color: var(--pb-ink);
  text-decoration: none; cursor: pointer;
  transition: all .15s ease;
  font-family: 'Inter', sans-serif;
}
.pb-btn:hover { background: var(--pb-ink); color: var(--pb-bg); text-decoration: none; }
.pb-btn.pb-gold { background: var(--pb-gold); color: var(--pb-ink); border-color: var(--pb-gold); }
.pb-btn.pb-gold:hover { background: var(--pb-gold-deep); border-color: var(--pb-gold-deep); color: var(--pb-bg); }

/* ============================================================
   MAIN CONTAINERS
============================================================ */
.container { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem; }

.breadcrumb { font-size: 0.9rem; color: var(--pb-ink-soft); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--pb-terra-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   CALLOUTS, TABLES
============================================================ */
.callout {
  background: var(--pb-paper);
  border-left: 4px solid var(--pb-gold);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.callout strong { color: var(--pb-ink); }
.callout.warn { border-left-color: var(--pb-terra); background: #fdf3eb; }
.callout.warn::before {
  content: "⚠ ";
  font-weight: 700;
  color: var(--pb-terra-deep);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}
th { background: var(--pb-ink); color: white; text-align: left; padding: 0.7rem 1rem; font-weight: 600; }
td { padding: 0.65rem 1rem; border-top: 1px solid #eee; vertical-align: top; }
tr:nth-child(even) td { background: #faf8f3; }

@media (max-width: 640px) {
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   WIZARD-SPECIFIC
============================================================ */
.wizard-hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.wizard-hero h1 { margin-bottom: 0.75rem; }
.wizard-hero .subtitle {
  font-size: 1.1rem;
  color: var(--pb-ink-soft);
  margin-bottom: 1rem;
}

.wizard-card {
  background: var(--pb-paper);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 640px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--pb-line);
}
@media (min-width: 720px) {
  .wizard-card { padding: 2.5rem 2.5rem; }
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--pb-ink-soft);
}
.wizard-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--pb-bg2);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress-bar-fill {
  height: 100%;
  background: var(--pb-gold);
  transition: width 0.3s ease;
  border-radius: 999px;
}

.wizard-question {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--pb-ink);
  line-height: 1.3;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wizard-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--pb-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  font-family: inherit;
  color: var(--pb-ink);
  width: 100%;
  transition: all 0.15s ease;
  line-height: 1.45;
}
.wizard-option:hover {
  border-color: var(--pb-gold);
  background: var(--pb-paper);
}
.wizard-option:focus-visible {
  outline: 2px solid var(--pb-terra);
  outline-offset: 1px;
}
.wizard-option.selected {
  border-color: var(--pb-gold);
  background: #faf2dd;
}

.wizard-option-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--pb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--pb-ink-soft);
  background: white;
}
.wizard-option.selected .wizard-option-marker {
  border-color: var(--pb-gold);
  background: var(--pb-gold);
  color: white;
}
.wizard-option-marker::before { content: attr(data-key); }

.wizard-option-text { flex: 1; }
.wizard-option-text small {
  display: block;
  margin-top: 4px;
  color: var(--pb-ink-soft);
  font-size: 13px;
}

.wizard-input {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--pb-line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--pb-ink);
}
.wizard-input:focus {
  outline: none;
  border-color: var(--pb-gold);
  box-shadow: 0 0 0 3px #c9a84c33;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.wizard-actions .pb-btn { padding: 11px 22px; }
.wizard-actions .spacer { flex: 1; }

.wizard-hint {
  font-size: 13px;
  color: var(--pb-ink-soft);
  margin-top: 1rem;
  text-align: center;
}

/* ============================================================
   RESULT PAGE
============================================================ */
.result-header {
  background: linear-gradient(135deg, var(--pb-paper) 0%, var(--pb-bg) 100%);
  border-bottom: 1px solid var(--pb-line);
  padding: 2.5rem 1.25rem 2rem;
}
.result-header-inner { max-width: 760px; margin: 0 auto; }

.result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pb-gold);
  color: var(--pb-ink);
  margin-bottom: 1rem;
}
.result-badge.v { background: #c9d8e8; color: #1a3a52; }
.result-badge.m { background: var(--pb-gold); color: var(--pb-ink); }
.result-badge.r { background: var(--pb-green); color: white; }
.result-badge.pip { background: var(--pb-bg2); color: var(--pb-ink); }

.result-summary {
  font-size: 1.15rem;
  color: var(--pb-ink-soft);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
}
.fact {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--pb-gold);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pb-ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.fact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--pb-ink);
}
.fact-value small { display: block; font-weight: 400; font-size: 13px; color: var(--pb-ink-soft); margin-top: 2px; }

.attorney-block {
  background: var(--pb-paper);
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.attorney-block h3 { margin-top: 0; }

.catalina-block {
  background: var(--pb-ink);
  color: var(--pb-bg);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}
.catalina-block h3 { color: var(--pb-bg); margin-top: 0; }
.catalina-block p { color: #d5cdb8; margin-bottom: 1rem; }

/* ============================================================
   FOOTER
============================================================ */
.site-pb-foot {
  background: #15110c;
  color: #a89677;
  padding: 3rem 0 1.5rem;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4rem;
}
.site-pb-foot .pb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 800px) {
  .site-pb-foot .pb-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-pb-foot h5 {
  color: var(--pb-bg);
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.site-pb-foot ul { list-style: none; padding: 0; margin: 0; }
.site-pb-foot li { margin-bottom: 0.4rem; }
.site-pb-foot a { color: #a89677; text-decoration: none; }
.site-pb-foot a:hover { color: var(--pb-gold); }
.site-pb-foot p { margin: 0 0 0.5rem; }
.site-pb-foot .pb-legal {
  padding-top: 1.5rem;
  border-top: 1px solid #2a241b;
  font-size: 13px;
  color: #7a6a4f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   UTILITY
============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.small { font-size: 0.9rem; color: var(--pb-ink-soft); }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--pb-bg2);
  color: var(--pb-ink);
  margin-right: 4px;
}
.tag.builds-r { background: var(--pb-green); color: white; }
.tag.no-r { background: var(--pb-bg2); color: var(--pb-ink); }

dl.req-list dt {
  font-weight: 600;
  color: var(--pb-ink);
  margin-top: 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
}
dl.req-list dd {
  margin: 0.3rem 0 0 1rem;
  color: var(--pb-ink);
}

/* Print styles */
@media print {
  .pb-top, .site-pb, .site-pb-foot, .catalina-block, .pb-btn, .attorney-block {
    display: none !important;
  }
  body { background: white; }
}
