/* HagerBet homepage — Three Cities, One Journey */

.home-v4 {
  --home-forest: #073b2a;
  --home-forest-deep: #042a1f;
  --home-cream: #f7f3ea;
  --home-gold: #c8a24a;
  --home-line: rgba(7, 59, 42, 0.16);
  background: var(--home-cream);
}

.home-v4 nav {
  background: rgba(247, 243, 234, 0.96);
  border-bottom-color: rgba(7, 59, 42, 0.08);
}

.home-v4 .nav-logo img { height: 38px; }
.home-v4 .nav-logo span { color: var(--home-forest-deep); }
.home-v4 .nav-links { gap: 28px; }
.home-v4 .nav-links > a:not(.btn) { font-size: 13px; }
.home-v4 .nav-links .lang-toggle { margin-left: -4px; }
.home-v4 .menu-toggle i { font-size: 25px; color: var(--home-forest); }
.home-v4 .urgency-banner { background: #151816; }
.home-v4 .urgency-banner a { color: var(--home-gold); }
.home-v4 .urgency-banner .close-banner i { font-size: 16px; }

.home-v4 main { overflow: hidden; }

/* Hero */
.journey-hero {
  position: relative;
  padding: 72px 0 0;
  background: var(--home-forest-deep);
  color: var(--paper);
}

.journey-hero-inner {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.75fr) minmax(620px, 1.25fr);
  align-items: center;
  gap: 48px;
}

.journey-copy {
  position: relative;
  z-index: 3;
  padding: 36px 0 76px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
}

.trust-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gold);
}

.journey-copy h1 {
  max-width: 570px;
  margin-bottom: 28px;
  color: var(--paper);
  font-size: clamp(3.75rem, 6vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.journey-copy h1 em { color: var(--home-gold); }

.journey-copy > p {
  max-width: 510px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.journey-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.journey-actions .btn { min-height: 54px; }
.journey-actions .btn-gold { background: var(--home-gold); color: #132019; }
.journey-actions .btn-gold:hover { background: #dfbc68; transform: translateY(-2px); }
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }

.market-panels {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.9fr 1.08fr 0.9fr;
  align-items: end;
  gap: 2px;
}

.market-panel {
  position: relative;
  height: 610px;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, 0.36);
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.market-panel.featured { height: 690px; }
.market-panel:hover { transform: translateY(-8px); border-color: var(--home-gold); }
.market-panel.featured:hover { transform: translateY(-8px); }

.market-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.market-panel:first-child img { object-position: 48% center; }
.market-panel.featured img { object-position: center; }
.market-panel:last-child img { object-position: center; }
.market-panel:hover img { transform: scale(1.035); }

.market-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 29, 21, 0.42);
}

.market-panel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px 34px;
  background: rgba(4, 42, 31, 0.92);
  border-top: 1px solid rgba(200, 162, 74, 0.55);
}

.market-panel-content strong {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 400;
}

.market-panel-content span { color: rgba(255, 255, 255, 0.74); font-size: 13px; }
.market-panel-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--home-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-line {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 34px;
  color: var(--home-gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

.journey-line::before,
.journey-line::after { content: ""; height: 1px; flex: 1; background: rgba(200, 162, 74, 0.45); }

/* Proof */
.proof-bar { padding: 38px 0; background: var(--home-cream); border-bottom: 1px solid var(--home-line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { display: flex; gap: 18px; padding: 6px 34px; border-right: 1px solid var(--home-line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { padding-right: 0; border-right: 0; }
.proof-item > i { color: var(--home-gold); font-size: 30px; line-height: 1; }
.proof-item div { display: flex; flex-direction: column; gap: 6px; }
.proof-item strong { color: var(--home-forest-deep); font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; }
.proof-item span { max-width: 270px; color: var(--ink-3); font-size: 13px; line-height: 1.55; }

/* Process */
.process-story { padding: 116px 0; background: #fbf8f1; }
.process-story-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: stretch; gap: 74px; }
.process-photo { min-height: 670px; overflow: hidden; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.process-copy { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.process-copy .eyebrow { color: var(--home-gold); margin-bottom: 24px; }
.process-copy h2 { margin-bottom: 18px; font-size: clamp(2.6rem, 4.5vw, 4.35rem); color: var(--home-forest-deep); }
.process-intro { margin-bottom: 38px; font-size: 1rem; }
.process-list { list-style: none; counter-reset: journey; }
.process-list li { counter-increment: journey; display: grid; grid-template-columns: 66px 1fr; gap: 20px; padding: 23px 0; border-top: 1px solid var(--home-line); }
.process-list li:last-child { border-bottom: 1px solid var(--home-line); }
.process-list li::before { content: counter(journey, decimal-leading-zero); color: var(--home-gold); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.process-list li div { display: flex; flex-direction: column; gap: 6px; }
.process-list strong { color: var(--home-forest-deep); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.process-list span { color: var(--ink-3); font-size: 0.94rem; line-height: 1.55; }

/* Markets */
.market-section { padding: 116px 0 124px; background: var(--home-cream); }
.market-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: end; margin-bottom: 76px; }
.market-heading .eyebrow { margin-bottom: 22px; color: var(--home-gold); }
.market-heading h2 { color: var(--home-forest-deep); font-size: clamp(2.7rem, 4.6vw, 4.5rem); }
.market-heading > p { max-width: 520px; padding-bottom: 6px; font-size: 1.02rem; line-height: 1.75; }
.market-editorial { border-top: 1px solid var(--home-line); }
.market-story { display: grid; grid-template-columns: 1.12fr 0.88fr; min-height: 440px; border-bottom: 1px solid var(--home-line); }
.market-story.reverse { grid-template-columns: 0.88fr 1.12fr; }
.market-story.reverse img { order: 2; }
.market-story img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.market-story > div { display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; }
.market-story > div > span { margin-bottom: 12px; color: var(--home-gold); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.market-story h3 { margin-bottom: 18px; color: var(--home-forest-deep); font-size: clamp(2rem, 3.4vw, 3.2rem); }
.market-story p { max-width: 440px; margin-bottom: 30px; font-size: 0.98rem; line-height: 1.7; }
.market-story dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.market-story dl div { padding: 16px 16px 16px 0; }
.market-story dl div + div { padding-left: 20px; border-left: 1px solid var(--home-line); }
.market-story dt { margin-bottom: 5px; color: var(--ink-3); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.market-story dd { color: var(--home-forest-deep); font-family: var(--font-display); font-size: 1.05rem; }
.market-story a,
.text-link { align-self: flex-start; color: var(--home-forest); font-size: 14px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--home-gold); }
.market-story a:hover,
.text-link:hover { color: var(--gold); }

/* Budget */
.budget-section { padding: 100px 0; background: var(--home-forest-deep); color: var(--paper); }
.budget-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; align-items: center; }
.budget-layout .eyebrow { margin-bottom: 22px; color: var(--home-gold); }
.budget-layout h2 { margin-bottom: 18px; color: var(--paper); font-size: clamp(2.4rem, 4vw, 3.7rem); }
.budget-layout > div:first-child > p { max-width: 430px; margin-bottom: 28px; color: rgba(255, 255, 255, 0.68); }
.budget-layout .text-link { color: var(--paper); }
.budget-options { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.budget-options a { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: var(--paper); }
.budget-options a:hover strong { color: var(--home-gold); }
.budget-options a > span { color: var(--home-gold); font-family: var(--font-display); font-size: 1.9rem; }
.budget-options strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; transition: color var(--transition); }
.budget-options small { color: rgba(255, 255, 255, 0.58); font-size: 12px; }

/* FAQ */
.faq-section { padding: 116px 0; background: #fbf8f1; }
.faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 100px; }
.faq-heading .eyebrow { margin-bottom: 22px; color: var(--home-gold); }
.faq-heading h2 { margin-bottom: 20px; color: var(--home-forest-deep); font-size: clamp(2.45rem, 4vw, 3.8rem); }
.faq-heading p { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--home-line); }
.home-v4 .faq-item { border-bottom-color: var(--home-line); }
.home-v4 .faq-question { width: 100%; border: 0; text-align: left; font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; }
.home-v4 .faq-question i { color: var(--home-gold); font-size: 20px; transition: transform var(--transition); }
.home-v4 .faq-item.open .faq-question i { transform: rotate(45deg); }
.home-v4 .faq-answer-inner { font-size: 0.95rem; line-height: 1.7; }

/* Closing CTA */
.home-cta { position: relative; padding: 104px 0; background: var(--home-forest); color: var(--paper); text-align: center; }
.home-cta-inner { max-width: 840px; }
.home-cta span { display: block; margin-bottom: 22px; color: var(--home-gold); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.home-cta h2 { margin-bottom: 20px; color: var(--paper); font-size: clamp(2.6rem, 5vw, 4.7rem); }
.home-cta p { max-width: 560px; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; }
.home-cta .btn-gold { background: var(--home-gold); color: #132019; }
.home-v4 footer { background: var(--home-cream); }

/* Entry motion */
@keyframes journeyEnter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.journey-copy > *, .market-panel { opacity: 0; animation: journeyEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.journey-copy > *:nth-child(1) { animation-delay: 0.06s; }
.journey-copy > *:nth-child(2) { animation-delay: 0.15s; }
.journey-copy > *:nth-child(3) { animation-delay: 0.26s; }
.journey-copy > *:nth-child(4) { animation-delay: 0.36s; }
.market-panel:nth-child(1) { animation-delay: 0.18s; }
.market-panel:nth-child(2) { animation-delay: 0.28s; }
.market-panel:nth-child(3) { animation-delay: 0.38s; }

@media (max-width: 1100px) {
  .journey-hero-inner { grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 30px; }
  .journey-copy h1 { font-size: clamp(3.4rem, 6vw, 5rem); }
  .market-panels { min-height: 590px; }
  .market-panel { height: 520px; }
  .market-panel.featured { height: 590px; }
  .market-panel-content { padding: 24px 18px 28px; }
  .process-story-grid { gap: 50px; }
  .market-story > div { padding: 46px 42px; }
}

@media (min-width: 821px) and (max-width: 968px) {
  .home-v4 .nav-inner { padding: 0 22px; }
  .home-v4 .nav-logo { gap: 7px; font-size: 1.05rem; }
  .home-v4 .nav-logo img { height: 30px; }
  .home-v4 .nav-links {
    display: flex;
    position: static;
    height: auto;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    border: 0;
    background: transparent;
  }
  .home-v4 .nav-links > a:not(.btn) { font-family: var(--font-body); font-size: 11px; }
  .home-v4 .nav-links > a.btn { align-self: auto; margin: 0; padding: 10px 13px; min-height: 40px; font-size: 11px; }
  .home-v4 .nav-links .lang-toggle { margin: 0; gap: 5px; font-size: 10px; }
  .home-v4 .menu-toggle { display: none; }
}

@media (max-width: 820px) {
  .home-v4 .nav-links { background: var(--home-cream); }
  .home-v4 .nav-links .lang-toggle { margin: 10px 0 0; }
  .home-v4 .menu-toggle { display: flex; }
  .journey-hero { padding-top: 58px; }
  .journey-hero-inner { width: min(100% - 48px, 760px); grid-template-columns: 1fr; gap: 18px; }
  .journey-copy { padding: 22px 0 42px; text-align: center; }
  .journey-copy h1, .journey-copy > p { margin-left: auto; margin-right: auto; }
  .journey-actions { justify-content: center; }
  .market-panels { min-height: 520px; }
  .market-panel, .market-panel.featured { height: 500px; }
  .journey-line { width: calc(100% - 48px); }
  .proof-grid { grid-template-columns: 1fr; gap: 0; }
  .proof-item, .proof-item:first-child, .proof-item:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--home-line); }
  .proof-item:last-child { border-bottom: 0; }
  .process-story-grid, .budget-layout, .faq-layout { grid-template-columns: 1fr; gap: 54px; }
  .process-photo { min-height: 520px; }
  .market-heading { grid-template-columns: 1fr; gap: 28px; }
  .market-story, .market-story.reverse { grid-template-columns: 1fr; }
  .market-story.reverse img { order: 0; }
  .market-story img { min-height: 420px; max-height: 520px; }
  .market-story > div { padding: 44px 0 56px; }
  .budget-options a { grid-template-columns: 110px 1fr; }
  .budget-options small { grid-column: 2; }
}

@media (max-width: 640px) {
  .home-v4 .nav-logo span { font-size: 1.2rem; }
  .home-v4 .urgency-banner { padding: 10px 48px 10px 20px; }
  .home-v4 .urgency-banner a { display: block; margin: 2px 0 0; }
  .journey-hero { padding: 34px 0 0; }
  .journey-hero-inner { width: calc(100% - 32px); }
  .journey-copy { text-align: left; }
  .trust-pill { margin-bottom: 26px; }
  .journey-copy h1 { font-size: clamp(3.2rem, 15vw, 4.35rem); }
  .journey-copy > p { font-size: 0.98rem; }
  .journey-actions { justify-content: flex-start; }
  .journey-actions .btn { width: 100%; }
  .market-panels { min-height: 410px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-panel, .market-panel.featured { height: 390px; }
  .market-panel-content { padding: 20px 12px 22px; }
  .market-panel-content strong { font-size: 1.18rem; }
  .market-panel-content span { font-size: 10px; line-height: 1.35; }
  .market-panel-tag { top: 14px; left: 12px; font-size: 8px; }
  .journey-line { width: calc(100% - 32px); gap: 12px; padding: 22px 0 26px; font-size: 9px; }
  .proof-bar { padding: 20px 0; }
  .process-story, .market-section, .faq-section { padding: 76px 0; }
  .process-photo { min-height: 380px; }
  .process-copy h2, .market-heading h2, .faq-heading h2 { font-size: 2.55rem; }
  .process-list li { grid-template-columns: 48px 1fr; gap: 12px; }
  .market-heading { margin-bottom: 48px; }
  .market-story img { min-height: 290px; }
  .market-story > div { padding: 32px 0 44px; }
  .market-story dl { grid-template-columns: 1fr; }
  .market-story dl div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--home-line); }
  .budget-section { padding: 76px 0; }
  .budget-options a { grid-template-columns: 92px 1fr; gap: 14px; }
  .budget-options a > span { font-size: 1.5rem; }
  .budget-options strong { font-size: 1.08rem; }
  .faq-layout { gap: 44px; }
  .home-cta { padding: 78px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-copy > *, .market-panel { opacity: 1; animation: none; }
}
