/* ============================================================
   WeSellSac — main stylesheet
   Playfair Display headings · Inter body
   Navy #152238 · Amber #E8A23A · Off-white #F7F5F1
   ============================================================ */

/* ---- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #152238;
  --navy-dark:    #0d1926;
  --amber:        #E8A23A;
  --amber-dark:   #d69533;
  --off-white:    #F7F5F1;
  --text:         #1A1A2E;
  --text-mid:     #374151;
  --text-muted:   #6B7280;
  --white:        #FFFFFF;
  --border:       #D1D5DB;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-w:        1100px;
  --section-v:    5rem;
  /* legacy aliases still referenced by a few rules */
  --accent:       var(--navy);
  --accent-dark:  var(--navy-dark);
  --bg:           var(--white);
  --bg-light:     var(--off-white);
  --bg-alt:       #F3F4F6;
}

@media (max-width: 767px) {
  :root { --section-v: 3rem; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }
a:hover { color: var(--amber-dark); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}


/* ---- LAYOUT HELPERS --------------------------------------- */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 600px) {
  .inner { padding: 0 1.25rem; }
}


/* ---- HEADER ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}
.site-logo:hover { color: var(--amber-dark); }

.header-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.header-phone:hover { color: var(--amber-dark); text-decoration: underline; }


/* ---- HERO ------------------------------------------------- */
.hero {
  background: var(--navy);
  padding: var(--section-v) 0;
}

/* Two-column layout */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hero-inner      { flex-direction: row; align-items: center; gap: 4rem; }
  .hero-left       { flex: 0 0 55%; }
  .hero-right      { flex: 0 0 45%; display: flex; flex-direction: column; align-items: center; }
}

.hero-eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 500px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 2px solid transparent;
}

/* btn-primary and btn-secondary are INTENTIONALLY IDENTICAL — A/B test on copy, not style */
.btn-primary,
.btn-secondary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover, .btn-primary:focus-visible,
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--navy);
}

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.52);
  margin: -1.25rem 0 1.5rem;   /* pull up under ctas, then space before license */
  line-height: 1.5;
}

.hero-license {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);   /* WCAG AA against #152238 — required disclosure, do not dim */
  line-height: 1.5;
}

/* Circular photo — right column */
.hero-photo-wrap {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(232,162,58,0.3);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hero-photo-wrap { width: 200px; height: 200px; }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-service-areas {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.65;
}

/* Legacy agent-card — hidden in new layout */
.agent-card  { display: none; }
.agent-photo { display: none; }


/* ---- SHARED SECTION HEADINGS ----------------------------- */
.section-number-source h2,
.section-options h2,
.section-table h2,
.section-form h2,
.section-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}


/* ---- WHERE YOUR NUMBER COMES FROM ----------------------- */
.section-number-source {
  padding: var(--section-v) 0;
  background: var(--white);
}

.section-number-source h2 { color: var(--navy); margin-bottom: 1.25rem; }

.section-number-source .inner {
  max-width: 720px;
  text-align: center;
}

.section-number-source p {
  color: var(--text-mid);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}
.section-number-source p:last-child { margin-bottom: 0; }


/* ---- FOUR OPTIONS ---------------------------------------- */
.section-options {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.section-options h2 { color: var(--navy); }

.options-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* 1-col mobile → 2-col tablet+ */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
}

@media (min-width: 640px) {
  .options-grid { grid-template-columns: 1fr 1fr; }
}

/* Editorial card — no box, just typography */
.option-card {
  background: none;
  border: none;
  padding: 0;
}

.option-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.35rem;
  user-select: none;
}

.option-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.option-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ---- COMPARISON TABLE ------------------------------------- */
.section-table {
  padding: var(--section-v) 0 1.5rem;
  background: var(--white);
}

.section-table h2 { color: var(--navy); margin-bottom: 1.5rem; }

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.9rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.compare-table th:first-child {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.compare-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Alternating rows */
.compare-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.compare-table tr:last-child td { border-bottom: none; }


/* ---- DISCLOSURE BLOCK ------------------------------------ */
/* Footnote beneath the table — REQUIRED, never smaller than body size */
.disclosure {
  padding: 0 0 var(--section-v);
  background: var(--white);
}

.disclosure-box {
  font-size: 1rem;      /* never smaller than body — do not change */
  line-height: 1.65;
  color: var(--text-mid);   /* same weight as normal body copy — do not make smaller or lighter */
  border-left: 3px solid var(--amber);
  padding-left: 1rem;
  max-width: 820px;
}

.disclosure-box p { margin: 0; }


/* ---- OUTCOME CALLOUT (Jer B. vs Opendoor) -------------------- */
.section-outcome {
  padding: var(--section-v) 0;
  background: #FDF8EE;
}

.outcome-callout {
  max-width: 760px;
}

.outcome-numbers {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.outcome-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.outcome-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.outcome-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.outcome-price--low {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(107,114,128,0.45);
}

.outcome-price--high {
  color: var(--navy);
}

.outcome-arrow {
  font-size: 2rem;
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 0.15rem;
}

.outcome-delta {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 1.75rem;
}

.outcome-quote {
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
  max-width: 680px;
}

.outcome-quote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
  font-style: italic;
}

.outcome-attribution {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

.outcome-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}


/* ---- REVIEWS SECTION ----------------------------------------- */
.section-reviews {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.section-reviews h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  display: inline-block;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--amber);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.review-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 18px rgba(232,162,58,0.13);
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.75;
  color: var(--amber);
  opacity: 0.15;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  pointer-events: none;
  user-select: none;
}

.review-stars {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-mid);
  flex: 1;
  margin: 0;
}

.review-attribution {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.reviews-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}


/* ---- FORM ------------------------------------------------ */
.section-form {
  padding: var(--section-v) 0;
  background: var(--navy);
}

.section-form h2 {
  color: var(--white);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.4rem;
}

.form-sub {
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section-form .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lead-form {
  width: 100%;
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.85);
}

label .required-mark {
  color: #fca5a5;
  margin-left: 0.15rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--white);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,162,58,0.25);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: var(--white);
  padding-right: 2rem;
}

textarea { resize: vertical; }

.field-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: -0.5rem 0 1.2rem;
}

.field-error {
  display: none;
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  font-weight: 400;
}

.field-error.visible { display: block; }

input.error, select.error, textarea.error { border-color: #f87171; }

/* Consent checkbox */
.consent-group {
  margin-bottom: 1.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--amber);
  cursor: pointer;
}

.consent-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);   /* WCAG AA against #152238 */
  margin-top: 0.35rem;
  margin-left: 1.6rem;
}

/* Honeypot — visually hidden, inaccessible */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-submit:hover, .btn-submit:focus-visible {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ---- FAQ ACCORDION --------------------------------------- */
.section-faq {
  padding: var(--section-v) 0;
  background: var(--white);
}

.section-faq h2 { color: var(--navy); margin-bottom: 1.25rem; }

.accordion {
  max-width: 680px;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child { border-top: 1px solid var(--border); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  gap: 1rem;
}

.accordion-trigger:hover { color: var(--navy); }

.accordion-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  position: relative;
  color: var(--text-muted);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s;
}

.accordion-icon::before {
  top: 50%; left: 0; right: 0; height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: none;
  padding: 0 0 1rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 600px;
}

.accordion-panel.open { display: block; }


/* ---- FOOTER ---------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  padding: 3rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer .inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.1rem;
  font-family: var(--font);
}

/* Contact line — brighter so the number is easy to find */
.footer-contact {
  margin: 0.6rem 0 1rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--white); text-decoration: underline; }

/* License & disclaimer — dim, standard footer weight */
.footer-license {
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.footer-disclaimer {
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-eho {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .footer-eho { align-items: flex-end; }
}

.eho-logo {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1) opacity(0.5);
}

.eho-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  margin-right: 1rem;
}
.footer-links a:hover { color: var(--white); }


/* ---- THANK YOU PAGE -------------------------------------- */
.thanks-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.thanks-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.thanks-page p {
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 1.5rem;
}


/* ---- STUB PAGES (privacy / terms) ------------------------ */
.stub-page {
  padding: 3rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.stub-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.stub-page p { color: var(--text-mid); margin-bottom: 0.75rem; }
