/* ================================================================
   BASE RESET + GLOBAL STYLES — Property for Equity v3
   ================================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: var(--font-body); font-size: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy);
  font-weight: 600;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--s4); }
}

/* ── SECTION SPACING ── */
.section     { padding: var(--s12) 0; }
.section-md  { padding: var(--s10) 0; }
.section-sm  { padding: var(--s8) 0; }
.bg-ivory    { background: var(--ivory); }
.bg-ivory-mid { background: var(--ivory-mid); }
.bg-navy     { background: var(--navy); }
.bg-white    { background: var(--white); }

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s3);
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  margin-bottom: var(--s4);
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 620px;
}

.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-ivory  { color: var(--ivory); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px 28px;
  border-radius: var(--rfull);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--t-med);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(192,154,91,0.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 6px 24px rgba(192,154,91,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--ivory);
  border-color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.28);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

.btn-sm  { padding: 10px 20px; font-size: var(--text-xs); }
.btn-lg  { padding: 17px 36px; font-size: var(--text-base); }
.btn-full { width: 100%; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r4);
  padding: var(--s7);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-navy {
  background: var(--navy);
  border-color: var(--navy-light);
  color: var(--ivory);
}
.card-gold-border {
  border-color: var(--gold-border);
  border-width: 1.5px;
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--rfull);
  margin: var(--s4) 0 var(--s6);
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 12px;
  border-radius: var(--rfull);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold  { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.badge-navy  { background: var(--navy); color: var(--ivory); }
.badge-green { background: rgba(42,110,69,0.10); color: var(--success); border: 1px solid rgba(42,110,69,0.2); }
.badge-red   { background: rgba(155,53,53,0.10); color: var(--danger); border: 1px solid rgba(155,53,53,0.2); }

/* ── GRID SYSTEM ── */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── STAT ITEM ── */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  margin-top: var(--s2);
  display: block;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: calc(78px + var(--s10)) 0 var(--s10);
  color: var(--white);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--s4);
  max-width: 700px;
}
.page-hero .lead { color: rgba(245,240,232,0.72); max-width: 600px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.5);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(245,240,232,0.65); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { opacity: 0.35; }

/* ── NOTICE / CALLOUT ── */
.callout {
  border-left: 3px solid var(--gold);
  padding: var(--s4) var(--s5);
  background: var(--gold-pale);
  border-radius: 0 var(--r2) var(--r2) 0;
}
.callout p { margin: 0; font-size: var(--text-sm); color: var(--text-mid); }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s5) 0;
  cursor: pointer;
  gap: var(--s4);
  user-select: none;
}
.faq-q h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.faq-icon {
  width: 24px; height: 24px;
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-med);
}
.faq-icon svg { width: 12px; height: 12px; color: var(--gold); transition: transform var(--t-med); }
.faq-item.open .faq-icon { background: var(--gold); border-color: var(--gold); }
.faq-item.open .faq-icon svg { color: white; transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 var(--s5);
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: var(--navy);
  color: var(--ivory);
  padding: var(--s3) var(--s4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
}
.compare-table th:first-child { border-radius: var(--r2) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--r2) 0 0; }
.compare-table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-mid);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--ivory); }
.td-good { color: var(--success); font-weight: 600; }
.td-bad  { color: var(--danger);  font-weight: 600; }
.td-neutral { color: var(--text-muted); }

/* ── STEP PROCESS ── */
.step-item { display: flex; gap: var(--s5); align-items: flex-start; }
.step-num {
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
}
.step-body h3 { font-size: var(--text-lg); margin-bottom: var(--s2); }
.step-body p  { font-size: var(--text-sm); color: var(--text-mid); line-height: 1.75; margin: 0; }

/* ── LEGAL PAGES ── */
.legal-body { max-width: 760px; margin: var(--s10) auto; padding: 0 var(--s6); }
.legal-body h2 { font-size: var(--text-2xl); margin: var(--s7) 0 var(--s3); }
.legal-body p  { font-size: var(--text-sm); color: var(--text-mid); line-height: 1.8; margin-bottom: var(--s4); }
.legal-body ul { margin: var(--s2) 0 var(--s4) var(--s5); }
.legal-body li { font-size: var(--text-sm); color: var(--text-mid); line-height: 1.8; margin-bottom: var(--s2); list-style: disc; }

/* ── UTILITY ── */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .section     { padding: var(--s10) 0; }
  .section-md  { padding: var(--s8) 0; }
}
