/* =========================================================
   I SELL MY GOLD — Homepage prototype styles
   Palette taken from the brand logo (gold + navy)
   ========================================================= */

:root {
  /* Navy */
  --navy-900: #0a1a31;
  --navy-800: #10233f;
  --navy-700: #16305a;
  --navy-600: #1d3f72;

  /* Gold */
  --gold-600: #b78d38;
  --gold-500: #c8a24c;
  --gold-400: #d9b968;
  --gold-300: #e8ce8a;

  /* Neutrals */
  --cream: #fbf8f1;
  --cream-2: #f3ece0;
  --ink: #1c2330;
  --muted: #5a6373;
  --line: #e6ddcc;
  --white: #ffffff;

  --success: #1f8a5b;

  --shadow-sm: 0 1px 3px rgba(10, 26, 49, .08), 0 1px 2px rgba(10, 26, 49, .06);
  --shadow-md: 0 8px 24px rgba(10, 26, 49, .10);
  --shadow-lg: 0 20px 50px rgba(10, 26, 49, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-400); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900); box-shadow: 0 8px 20px rgba(183, 141, 56, .35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(183, 141, 56, .45); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost-navy { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--ghost-navy:hover { background: var(--navy-800); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--navy-800); }
.nav a:hover { color: var(--gold-600); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.header__phone span { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }

/* ---------- Hero (Block 1) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(216,185,104,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  color: #eaf0f8; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 15% 110%, rgba(216,185,104,.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 90px) 0;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-400); }
.hero__sub { font-size: 1.2rem; color: #c7d3e6; max-width: 46ch; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #d7e0ef; }
.trust-item .tick { color: var(--gold-400); font-weight: 800; }
.stars { color: var(--gold-400); letter-spacing: 2px; }

/* Quote card / estimator */
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.4);
}
.quote-card h3 { margin-bottom: 4px; }
.quote-card .muted { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--navy-800); }
.field select, .field input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: var(--cream); color: var(--ink);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold-500); background: #fff; }
.estimate {
  margin: 6px 0 16px; padding: 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cream-2), #fff);
  border: 1px dashed var(--gold-500); text-align: center;
}
.estimate .num { font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.estimate .lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.disclaimer { font-size: .74rem; color: var(--muted); margin-top: 10px; text-align: center; }
.rate-status {
  text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted);
  margin: 0 0 12px; letter-spacing: .01em;
}
.rate-status.is-live { color: var(--success); }
.rate-status.is-live::first-letter { color: var(--success); }

/* ---------- Ticker strip ---------- */
.ticker {
  background: var(--navy-900); color: #dfe7f3;
  border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
}
.ticker__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 16px 0; text-align: center; }
.ticker__item { font-size: .92rem; font-weight: 600; }
.ticker__item b { color: var(--gold-400); }

/* ---------- Generic cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: 30px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-900); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Problem block */
.problem { background: var(--cream-2); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 12px; }
.compare__col { border-radius: var(--radius); padding: 26px; }
.compare__col--bad { background: #fff; border: 1px solid var(--line); }
.compare__col--good { background: var(--navy-800); color: #eaf0f8; border: 1px solid var(--navy-700); }
.compare__col--good h3 { color: #fff; }
.compare__col ul { list-style: none; padding: 0; margin: 0; }
.compare__col li { padding: 9px 0 9px 30px; position: relative; }
.compare__col--bad li::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }
.compare__col--good li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-400); font-weight: 800; }
.compare__col--good li { color: #d7e0ef; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}

/* Rates table (Block 5) */
.rates { background: var(--navy-900); color: #eaf0f8; }
.rates h2, .rates .eyebrow { color: #fff; }
.rates .eyebrow { color: var(--gold-400); }
.rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 10px; }
.rate {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(216,185,104,.25); border-radius: var(--radius); padding: 22px; text-align: center;
}
.rate .k { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.rate .v { font-size: 1.9rem; font-weight: 800; color: #fff; margin: 6px 0 2px; }
.rate .u { font-size: .78rem; color: #9fb0ca; }
.rates__note { text-align: center; color: #9fb0ca; font-size: .85rem; margin-top: 20px; }

/* Tests / assay */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.media-frame {
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  background: linear-gradient(160deg, var(--cream-2), #fff); border: 1px solid var(--line);
}
.media-frame img { margin: 0 auto; max-width: 260px; }

/* History / stats */
.history { background: var(--navy-800); color: #eaf0f8; }
.history h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.stat { text-align: center; }
.stat .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--gold-400); }
.stat .l { font-size: .9rem; color: #c7d3e6; }

/* Offer (Block 9) */
.offer-card {
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border: 2px solid var(--gold-500); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.offer-card .ribbon {
  position: absolute; top: 18px; right: -42px; transform: rotate(45deg);
  background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: .78rem;
  padding: 6px 54px; letter-spacing: .06em;
}
.offer-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.offer-list li { padding-left: 34px; position: relative; font-weight: 500; }
.offer-list li::before {
  content: "★"; position: absolute; left: 0; color: var(--gold-600); font-weight: 800;
}

/* Warranty / guarantees */
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guarantee {
  text-align: center; padding: 30px 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.guarantee .seal {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  display: grid; place-items: center; color: var(--navy-900); font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(183,141,56,.35);
}

/* Testimonials / Future (Block 11) */
.future { background: var(--cream-2); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.review .stars { font-size: 1rem; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--ink); }
.review .who { font-weight: 700; color: var(--navy-800); font-style: normal; font-size: .92rem; margin-top: 8px; }

/* Objections (Block 12) */
.objections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.objection { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: 12px; padding: 22px 24px; }
.objection h4 { color: var(--navy-900); margin-bottom: 6px; font-size: 1.05rem; }
.objection p { color: var(--muted); margin: 0; }

/* FAQ (Block 13) */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 40px 20px 0; font-size: 1.08rem; font-weight: 700; color: var(--navy-900);
  position: relative; font-family: inherit;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold-600); transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding: 0 40px 4px 0; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p:first-child { padding-top: 0; }

/* Final CTA */
.final-cta {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(216,185,104,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lead { color: #c7d3e6; }
.final-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: #081527; color: #a9b7cd; padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #a9b7cd; }
.footer a:hover { color: var(--gold-400); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; font-size: .93rem; }
.footer__brand img { height: 40px; margin-bottom: 14px; filter: brightness(1.1); }
.footer__legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: #7f8ea6;
}
.footer__contact p { font-size: .93rem; margin-bottom: 8px; }
.footer__contact b { color: #cfd9e8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); padding: 18px 20px; gap: 14px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .header__phone { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .compare, .objections { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .rate-grid { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__cta .btn, .final-cta__btns .btn { width: 100%; }
  .tabs-nav { flex-wrap: wrap; }
  .tab-btn { flex: 1 1 calc(50% - 6px); }
}

/* ========== TABS ========== */
.tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--navy-900);
  border-bottom-color: var(--gold-300);
}

.tab-btn.active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-600);
}

.tabs-content {
  animation: fadeIn 0.2s ease-in;
}

.tab-pane {
  display: none;
  padding: 22px 0;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: clamp(1.6rem, 5vw, 1.8rem);
  margin: 0 0 20px;
  color: var(--navy-900);
}

.tab-pane h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.tab-pane p {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.7;
}

.tab-pane ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.tab-pane ul li {
  margin: 8px 0;
  color: var(--ink);
}

.tab-pane a {
  color: var(--gold-600);
  text-decoration: none;
  font-weight: 500;
}

.tab-pane a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
