/* ------------------------------------------------------------------ *
 * Custom styles layered on top of Tailwind (Play CDN).
 * Design tokens mirror the brand palette so non-Tailwind rules stay
 * consistent: Sonoran Gold #E09F3E, Desert Orange #C65D21,
 * Warm Sand #F8F5F0, Charcoal #1F2937, Cactus Green #2E7D32.
 * ------------------------------------------------------------------ */

:root {
  --gold: #E09F3E;
  --gold-dark: #C89035;
  --orange: #C65D21;
  --sand: #F8F5F0;
  --charcoal: #1F2937;
  --body: #374151;
  --cactus: #2E7D32;
  --danger: #CC3333;
  --line: #E5E5E5;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Consistent vertical rhythm inside rich-text prose blocks */
.prose-body p { line-height: 1.75; }

/* ---- FAQ accordion (native <details>) ---------------------------- */
.faq-item { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.faq-item[open] { border-left: 3px solid var(--gold); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; color: var(--charcoal); font-size: 17px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .faq-chevron { transition: transform .25s ease; flex: none; color: var(--gold); }
.faq-item[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 20px; color: var(--body); line-height: 1.75; font-size: 16px; }

/* ---- Comparison table -------------------------------------------- */
.cmp-table { border-collapse: collapse; width: 100%; border-radius: 8px; overflow: hidden; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid #EDE7DD; }
.cmp-table thead th { background: var(--charcoal); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.cmp-table th.cmp-attr, .cmp-table td.cmp-attr { text-align: left; font-weight: 500; color: var(--charcoal); }
.cmp-table thead th.cmp-own { background: var(--orange); position: relative; }
.cmp-table td.cmp-own { background: rgba(224,159,62,.08); border-left: 3px solid var(--gold); border-right: 3px solid var(--gold); font-weight: 700; }
.cmp-table tbody tr:nth-child(even) td:not(.cmp-own) { background: #FAF8F4; }
.cmp-yes { color: var(--cactus); font-weight: 700; }
.cmp-no  { color: var(--danger); font-weight: 700; }
.cmp-partial { color: var(--body); }
.cmp-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--charcoal); font-size: 10px; font-weight: 800;
  letter-spacing: .05em; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---- Form controls ----------------------------------------------- */
.field-input, .field-select, .field-textarea {
  width: 100%; border: 1px solid #CCCCCC; border-radius: 4px; padding: 12px 16px;
  font-size: 15px; color: var(--charcoal); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field-input { height: 48px; }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,159,62,.15);
}

/* ---- Scroll reveal ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover lift used on hub grids */
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }

/* Keep nav mega-menus from causing horizontal scroll on mid widths */
.nav-details > div { will-change: transform; }
