/* Firefly primary-market page primitives — Boise Regional Template RC1 */
.primary-market-page {
  --market-ink: #071118;
  --market-moss: #526d47;
  --market-glow: #f3af3c;
  --market-paper: #f7f5ed;
  --market-panel: #fffdf7;
  --market-line: rgba(7, 17, 24, 0.14);
}

.primary-market-page main { overflow: clip; }
.primary-market-page .market-shell { width: min(1180px, 100%); margin: 0 auto; }
.primary-market-page .market-kicker { margin: 0 0 12px; color: var(--market-moss); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.primary-market-page .market-section { padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px); }
.primary-market-page .market-section.is-soft { background: var(--market-paper); }
.primary-market-page .market-section.is-dark { color: #f8f7f1; background: var(--market-ink); }
.primary-market-page .market-section h2 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4.2vw, 3.45rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.primary-market-page .market-section-lede { max-width: 65ch; margin: 18px 0 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; }

.market-hero { position: relative; min-height: min(800px, 92svh); padding: 155px clamp(20px, 5vw, 72px) 62px; color: #fff; background: var(--market-ink); }
.market-hero::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(7,17,24,.96) 0%, rgba(7,17,24,.82) 45%, rgba(7,17,24,.18) 78%), linear-gradient(0deg, rgba(7,17,24,.6), transparent 45%); }
.market-hero-media { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.market-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.market-hero-media figcaption { position: absolute; right: 20px; bottom: 18px; z-index: 2; padding: 6px 10px; border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(7,17,24,.58); font-size: .72rem; }
.market-hero-inner { position: relative; z-index: 2; width: min(1180px,100%); margin: 0 auto; }
.market-hero .breadcrumb { margin-bottom: clamp(48px, 9vw, 110px); color: rgba(255,255,255,.74); }
.market-hero .breadcrumb a { color: inherit; }
.market-hero-copy { max-width: 720px; }
.market-hero .market-kicker { color: var(--market-glow); }
.market-hero h1 { max-width: 13ch; margin: 0; font-size: clamp(3rem, 6.6vw, 6.3rem); line-height: .94; letter-spacing: -.055em; text-wrap: balance; }
.market-hero-summary { max-width: 60ch; margin: 24px 0 0; color: rgba(255,255,255,.9); font-size: clamp(1.08rem,1.7vw,1.35rem); line-height: 1.6; }
.market-hero .hero-actions { margin-top: 30px; }
.market-hero .button.secondary { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(7,17,24,.22); backdrop-filter: blur(8px); }
.market-hero .city-phone { color: #fff; }

.market-trust { padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--market-line); background: #fff; }
.market-trust-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: min(1180px,100%); margin: 0 auto; padding: 0; list-style: none; }
.market-trust-list li { position: relative; padding: 24px 28px 24px 48px; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.market-trust-list li::before { position: absolute; top: 27px; left: 24px; width: 10px; height: 10px; border-radius: 50%; content: ""; background: var(--market-glow); box-shadow: 0 0 0 5px rgba(243,175,60,.18); }
.market-trust-list li + li { border-left: 1px solid var(--market-line); }

.market-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); gap: clamp(36px,7vw,96px); align-items: center; }
.market-split.is-reversed > :first-child { order: 2; }
.market-split-copy p { max-width: 62ch; line-height: 1.72; }
.market-feature-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.market-feature-list li { padding: 14px 16px; border-left: 3px solid var(--market-glow); background: rgba(255,255,255,.68); }
.market-media { position: relative; min-height: 430px; margin: 0; overflow: hidden; border-radius: 28px; background: var(--market-ink); box-shadow: 0 28px 70px rgba(7,17,24,.2); }
.market-media picture { display: block; height: 100%; }
.market-media img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.market-media.is-detail img { transform: scale(1.18); object-position: 18% center; }
.market-media figcaption { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(7,17,24,.68); font-size: .72rem; }

.market-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.market-card { min-height: 260px; padding: 30px; border: 1px solid var(--market-line); border-radius: 22px; background: var(--market-panel); box-shadow: 0 18px 50px rgba(7,17,24,.07); }
.market-card-number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 34px; border-radius: 50%; color: var(--market-ink); background: var(--market-glow); font-size: .78rem; font-weight: 800; }
.market-card h3 { margin: 0 0 12px; font-size: 1.22rem; }
.market-card p { margin: 0; line-height: 1.66; }

.market-system-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(38px,7vw,90px); align-items: start; }
.market-system-points { display: grid; gap: 1px; margin: 0; padding: 0; border-radius: 22px; overflow: hidden; list-style: none; background: rgba(255,255,255,.12); }
.market-system-points li { padding: 24px; background: rgba(255,255,255,.06); }
.market-system-points strong { display: block; margin-bottom: 7px; color: var(--market-glow); font-size: 1.02rem; }
.market-system-points span { color: rgba(255,255,255,.78); line-height: 1.55; }

.market-visualizer { position: relative; padding: clamp(54px,8vw,100px) clamp(20px,5vw,72px); background: linear-gradient(135deg,#e9eee1,#fff8e8); }
.market-visualizer-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; width: min(1180px,100%); margin: 0 auto; padding: clamp(30px,5vw,62px); border: 1px solid rgba(82,109,71,.22); border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 28px 80px rgba(7,17,24,.12); }
.market-visualizer h2 { max-width: 15ch; margin: 0; font-size: clamp(2.2rem,4.5vw,4rem); line-height: 1; letter-spacing: -.04em; }
.market-visualizer p { max-width: 58ch; line-height: 1.7; }
.market-visualizer-steps { display: grid; align-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: market-step; }
.market-visualizer-steps li { position: relative; padding: 17px 18px 17px 56px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(7,17,24,.07); }
.market-visualizer-steps li::before { position: absolute; top: 15px; left: 16px; counter-increment: market-step; content: counter(market-step,decimal-leading-zero); color: var(--market-moss); font-weight: 800; }

.market-process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 38px 0 0; padding: 0; list-style: none; }
.market-process li { position: relative; padding: 28px 24px; border-top: 1px solid var(--market-line); }
.market-process li::before { display: block; margin-bottom: 38px; color: var(--market-moss); content: attr(data-step); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.market-process li::after { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; content: ""; background: var(--market-glow); }
.market-process h3 { margin: 0 0 10px; }
.market-process p { margin: 0; line-height: 1.62; }

.market-service-card { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(28px,6vw,80px); align-items: center; padding: clamp(30px,5vw,62px); border: 1px solid var(--market-line); border-radius: 28px; background: #fff; box-shadow: 0 24px 64px rgba(7,17,24,.09); }
.market-service-mark { display: grid; min-height: 260px; place-items: center; border-radius: 22px; color: #fff; background: radial-gradient(circle at 65% 34%,rgba(243,175,60,.92),transparent 17%), radial-gradient(circle at 32% 70%,rgba(82,109,71,.9),transparent 28%), var(--market-ink); }
.market-service-mark span { max-width: 11ch; text-align: center; font-size: clamp(1.7rem,3vw,2.7rem); font-weight: 750; line-height: 1.05; }

.market-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(38px,7vw,96px); align-items: start; }
.market-faq-list details { border-top: 1px solid var(--market-line); }
.market-faq-list details:last-child { border-bottom: 1px solid var(--market-line); }
.market-faq-list summary { min-height: 62px; padding: 20px 44px 20px 0; font-size: 1.02rem; font-weight: 700; cursor: pointer; }
.market-faq-list p { max-width: 66ch; margin: 0; padding: 0 38px 22px 0; line-height: 1.68; }

.market-final { padding: clamp(62px,9vw,118px) clamp(20px,5vw,72px); color: #fff; text-align: center; background: radial-gradient(circle at 50% -10%,rgba(243,175,60,.26),transparent 40%),var(--market-ink); }
.market-final-inner { width: min(920px,100%); margin: 0 auto; }
.market-final h2 { max-width: 14ch; margin: 0 auto; font-size: clamp(2.5rem,6vw,5.2rem); line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.market-final p { max-width: 60ch; margin: 22px auto 0; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.7; }
.market-final .hero-actions { justify-content: center; margin-top: 30px; }
.market-final .button.secondary { border-color: rgba(255,255,255,.44); color: #fff; }
.market-final .city-phone { color: #fff; }

@media (max-width: 980px) {
  .market-hero { padding-top: 137px; }
  .market-trust-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-trust-list li:nth-child(3) { border-left: 0; border-top: 1px solid var(--market-line); }
  .market-trust-list li:nth-child(4) { border-top: 1px solid var(--market-line); }
  .market-split,.market-system-grid,.market-visualizer-panel,.market-service-card,.market-faq { grid-template-columns: 1fr; }
  .market-split.is-reversed > :first-child { order: 0; }
  .market-card-grid { grid-template-columns: 1fr 1fr; }
  .market-process { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .market-hero { min-height: 760px; padding-top: 116px; }
  .market-hero::after { background: linear-gradient(0deg,rgba(7,17,24,.98) 12%,rgba(7,17,24,.74) 65%,rgba(7,17,24,.32)); }
  .market-hero-media img { object-position: 60% center; }
  .market-hero .breadcrumb { margin-bottom: 190px; }
  .market-hero h1 { font-size: clamp(2.7rem,13vw,4rem); }
  .market-hero-media figcaption { top: 82px; right: 10px; bottom: auto; }
  .market-trust-list,.market-card-grid,.market-process { grid-template-columns: 1fr; }
  .market-trust-list li + li { border-left: 0; border-top: 1px solid var(--market-line); }
  .market-media,.market-media img { min-height: 330px; }
  .market-card { min-height: 0; }
  .market-process li { padding-left: 6px; }
  .market-final .hero-actions,.market-hero .hero-actions { align-items: stretch; }
  .market-final .hero-actions .button,.market-hero .hero-actions .button { width: 100%; text-align: center; }
  .market-final .city-phone,.market-hero .city-phone { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-market-page * { scroll-behavior: auto !important; }
}
