/* ==========================================================================
   Secondary pages: /offer (inspection funnel), /join (applications),
   /confirmation (after booking) and 404. Loaded after main.css.
   ========================================================================== */

/* ---------- Shared simple header/footer (join) ---------- */
.page-header { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); }
.page-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .page-header__inner { height: 80px; } }
.page-header img { height: 48px; width: auto; display: block; }
@media (min-width: 768px) { .page-header img { height: 58px; } }
.page-header__phone { font-family: var(--font-display); letter-spacing: .12em; font-size: 12px; color: #fff; transition: color .15s; }
@media (min-width: 768px) { .page-header__phone { font-size: 14px; } }
.page-header__phone:hover { color: var(--brand-on-dark); }
.page-footer { background: var(--footer-bg); padding: 32px 0; margin-top: 64px; }
.page-footer__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.7); font-size: 12px; font-family: var(--font-ui); }
@media (min-width: 768px) { .page-footer__inner { flex-direction: row; } }
.page-footer a:hover { color: #fff; }

/* ==========================================================================
   /offer
   ========================================================================== */
.page-offer { font-family: var(--font-body); background: #fff; }
.o-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #eee; z-index: 50; }
.o-progress i { display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--primary), #3db38f); transition: width .5s var(--ease-out-expo); }
.o-header { text-align: center; padding: 20px 16px 16px; border-bottom: 1px solid #f0f0f0; }
.o-logo { height: 84px; width: auto; margin: 0 auto; display: block; }
.o-rating { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--soft); }
.o-rating b { color: var(--ink); font-size: 14px; }
.o-rating .stars svg, .j-reviews__rating .stars svg { width: 12px; height: 12px; }
.o-badges { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.o-badges > div { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border: 1px solid #ececec; border-radius: 6px; padding: 6px 12px; text-align: left; }
.o-badges p { font-size: 10px; color: var(--soft); line-height: 1.25; }
.o-badges b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 12px; }
.o-stepline { margin-top: 12px; font-size: 12px; color: var(--soft); }
.o-stepline b { font-family: var(--font-display); color: var(--primary); letter-spacing: .1em; }
.o-main { position: relative; max-width: 960px; margin: 0 auto; padding: 40px 16px 80px; overflow-x: hidden; }
.o-step { display: none; text-align: center; }
.o-step.is-active { display: block; transition: opacity .3s ease, transform .3s var(--ease-out-expo); }
.o-step.is-exiting { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); }
.o-step.is-entering { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); transition: none; }
.o-title, .o-q { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink); letter-spacing: -1px; line-height: 1; }
.o-title { font-size: clamp(40px, 6vw, 60px); }
.o-q { font-size: clamp(28px, 4.5vw, 36px); margin-bottom: 24px; }
.o-lead { margin-top: 10px; font-size: 18px; font-weight: 300; color: var(--muted); }
.o-qsub { margin: -14px 0 24px; font-size: 14px; color: var(--soft); }
.o-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.o-ticks li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.o-cta { margin-top: 28px; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 20px; padding: 22px 80px; border-radius: 4px; box-shadow: 0 8px 24px rgba(1,74,61,.22); transition: transform .2s, background-color .2s; animation: o-pulse 2.4s ease-in-out 1.5s infinite; }
.o-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
@keyframes o-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(1,74,61,.22); } 50% { box-shadow: 0 8px 32px rgba(1,74,61,.42); } }
.o-small { margin-top: 10px; font-size: 11px; color: var(--soft); }
.o-how { text-align: left; margin: 32px auto 0; max-width: 560px; border-top: 1px solid #f0f0f0; padding-top: 28px; }
.o-kicker { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.o-how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; color: var(--text); }
.o-how i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--brand-tint); color: var(--primary); font-style: normal; font-size: 11px; font-weight: 700; }
.o-marquee { margin: 28px -16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.o-marquee__track { display: flex; gap: 12px; width: max-content; animation: o-marquee 60s linear infinite; }
.o-marquee--photos .o-marquee__track { animation-duration: 40s; animation-direction: reverse; }
.o-marquee:hover .o-marquee__track { animation-play-state: paused; }
@keyframes o-marquee { to { transform: translateX(-50%); } }
/* review marquee: two identical sets, each with trailing spacing, so -50% loops seamlessly */
.o-marquee__track:has(> .o-marquee__set) { gap: 0; }
.o-marquee__set { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.o-marquee .o-review { display: flex; flex-direction: column; border-top: 3px solid var(--primary); }
.o-review .stars svg { width: 12px; height: 12px; }
.o-marquee .o-review small { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
/* show every review in full (no clamping) so nothing is cut short */
.o-marquee .o-review p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.o-review { width: 340px; flex: 0 0 auto; text-align: left; background: #fafafa; border: 1px solid #ececec; border-radius: 8px; padding: 12px; }
.o-review__top { display: flex; justify-content: space-between; align-items: center; }
.o-google { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--soft); }
.o-google svg { width: 12px; height: 12px; }
.o-review p { font-size: 14px; line-height: 1.45; color: var(--text); margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.o-review small { font-size: 11px; color: var(--soft); }
.o-marquee--photos picture { flex: 0 0 auto; }
.o-rating a { color: var(--ink); }
.o-rating__link, .o-rating__phone { display: inline-flex; align-items: center; gap: 6px; }
.o-rating__link:hover span, .o-rating__phone:hover b { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.o-rating__phone svg { width: 13px; height: 13px; }
.o-rating__sep { color: var(--soft); }
.j-reviews { margin-top: 48px; padding-top: 28px; border-top: 1px solid #f0f0f0; }
.j-reviews__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
.j-reviews__rating { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
.j-reviews__rating b { color: var(--ink); }
.j-reviews__rating:hover span { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.o-marquee--join { margin: 16px 0 0; }
.c-foot a { color: inherit; }
.o-marquee--photos img { width: 360px; height: 300px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.o-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto; }
.o-grid button {
  background: var(--primary); color: #fff; border-radius: 6px; padding: 22px 12px; min-height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(1,74,61,.18); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.o-grid button:hover { transform: translateY(-2px); background: var(--primary-hover); }
.o-grid button.is-selected { background: var(--brand-deep); box-shadow: 0 0 0 3px #9fd4c3; }
.o-grid svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.o-grid b { font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; font-size: 16px; text-transform: uppercase; }
.o-grid small { font-size: 11px; opacity: .85; }
.o-fields { max-width: 400px; margin: 0 auto; display: grid; gap: 10px; }
.o-fields__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.o-fields input { width: 100%; border: 2px solid #e8e8e8; border-radius: 6px; padding: 14px; font-size: 16px; font-family: var(--font-body); color: var(--ink); outline: none; transition: border-color .15s; }
.o-fields input:focus { border-color: var(--primary); }
.o-next { margin-top: 32px; width: 100%; max-width: 300px; background: var(--primary); color: #fff; border-radius: 4px; padding: 14px; font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 16px; transition: opacity .2s, background-color .2s; }
.o-next:disabled { opacity: .4; cursor: not-allowed; }
.o-back { position: absolute; top: 12px; left: 16px; font-size: 12px; color: var(--soft); }
@media (min-width: 900px) { .o-back { left: -140px; } }
.o-back:hover { color: var(--primary); }
.page-offer .booking { margin-top: 8px; }
.page-offer .form__alert { margin: 16px auto 0; max-width: 400px; }

/* ==========================================================================
   /join
   ========================================================================== */
.page-join { background: #fff; font-family: var(--font-ui); }
.j-main { padding-top: 48px; min-height: 60vh; }
@media (min-width: 768px) { .j-main { padding-top: 80px; } }
.j-kicker { font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; color: var(--primary); margin-bottom: 16px; }
.j-h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--ink); }
.j-h1 span { color: var(--primary); }
.j-lead { margin-top: 16px; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.j-perks { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .j-perks { grid-template-columns: repeat(3, 1fr); } }
.j-perks > div { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; }
.j-perks i { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; flex-shrink: 0; }
.j-perks i svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.j-perks p { font-size: 12px; color: var(--muted); }
.j-perks b { display: block; font-family: var(--font-display); font-size: 13px; color: var(--ink); letter-spacing: .05em; }
.j-start { margin-top: 32px; background: var(--primary); color: #fff; padding: 14px 24px; border-radius: 2px; font-family: var(--font-display); letter-spacing: .05em; font-size: 16px; text-transform: uppercase; transition: background-color .2s; }
.j-start:hover { background: var(--primary-hover); }
.j-form { max-width: 100%; }
.j-progress { margin-bottom: 32px; }
.j-progress__top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.j-progress__top span:first-child { font-family: var(--font-display); letter-spacing: .2em; }
.j-progress__bar { height: 4px; background: #e6e6e6; border-radius: 2px; overflow: hidden; }
.j-progress__bar i { display: block; height: 100%; width: 10%; background: var(--primary); transition: width .4s ease; }
.j-step { border: 0; padding: 0; margin: 0; min-width: 0; transition: opacity .3s ease, transform .3s ease; }
.j-step.is-entering { opacity: 0; transform: translateX(20px); transition: none; }
.j-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 40px); color: var(--ink); line-height: 1.05; padding: 0; margin-bottom: 8px; }
.j-sub { font-size: 16px; color: var(--muted); margin-bottom: 32px; }
.j-body { display: grid; gap: 12px; margin: 24px 0 32px; }
.j-opt { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 2px solid #e6e6e6; border-radius: 4px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.j-opt:hover { border-color: rgba(1,74,61,.5); }
.j-opt input { position: absolute; opacity: 0; pointer-events: none; }
.j-opt span { font-size: 16px; color: var(--ink); }
.j-opt i { width: 18px; height: 18px; border: 2px solid #d4d4d4; border-radius: 3px; }
.j-opt:has(input:checked) { border-color: var(--primary); background: #f2f8f6; }
.j-opt:has(input:checked) i { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.j-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.j-input { width: 100%; padding: 16px 20px; border: 2px solid #e6e6e6; border-radius: 4px; font-size: 16px; font-family: var(--font-ui); outline: none; }
.j-input:focus { border-color: var(--primary); }
.j-contact label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.j-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .j-row { grid-template-columns: 1fr 1fr; } }
.j-error { color: #c11; font-size: 13px; min-height: 1em; }
.j-nav { display: flex; gap: 12px; }
.j-back { padding: 12px 20px; border: 2px solid #e6e6e6; border-radius: 4px; font-size: 14px; color: var(--ink); }
.j-back:hover { border-color: rgba(1,74,61,.5); }
.j-continue { flex: 1; padding: 12px 20px; border-radius: 4px; background: var(--primary); color: #fff; font-family: var(--font-display); letter-spacing: .1em; font-size: 16px; text-transform: uppercase; }
.j-continue:disabled { background: #f3f3f3; color: var(--muted); cursor: not-allowed; }
.j-done { text-align: center; padding: 48px 0; }
.j-done__tick { width: 72px; margin: 0 auto 24px; }
.j-done__tick path { stroke-dasharray: 50; stroke-dashoffset: 0; }

/* ==========================================================================
   /confirmation
   ========================================================================== */
.page-confirm { background: #fff; }
.c-header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.c-header img { height: 52px; width: auto; display: block; }
.c-back { font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.c-back:hover { color: var(--brand); }
.c-hero { text-align: center; padding: 96px 24px 140px; }
.c-tick { width: 90px; height: 90px; margin: 0 auto 40px; }
.c-tick svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: c-draw .8s var(--ease-out-expo) .1s forwards; }
.c-tick svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: c-draw .4s ease-out .7s forwards; }
@keyframes c-draw { to { stroke-dashoffset: 0; } }
.c-kicker { font-family: var(--font-display); font-size: 11px; letter-spacing: .4em; color: var(--brand); text-transform: uppercase; }
.c-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 6vw, 80px); line-height: 1; color: var(--ink); margin-top: 12px; letter-spacing: -1px; }
.c-lead { margin-top: 16px; color: var(--muted); font-weight: 300; }
.c-next { background: #f7f7f7; padding: 120px 24px; text-align: center; }
.c-h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.5vw, 48px); line-height: 1; margin-top: 16px; }
.c-cards { display: grid; gap: 24px; max-width: 1000px; margin: 48px auto 0; text-align: left; }
@media (min-width: 768px) { .c-cards { grid-template-columns: repeat(3, 1fr); } }
.c-cards > div { background: #fff; border-radius: 4px; padding: 32px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.c-cards b { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--brand); }
.c-cards h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; margin: 12px 0 8px; }
.c-cards p { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }
.c-note { text-align: center; max-width: 820px; margin: 0 auto; padding: 120px 24px; }
.c-note blockquote { margin: 32px 0 0; font-size: 26px; font-style: italic; font-weight: 300; line-height: 1.5; color: var(--ink); }
.c-sign { margin-top: 20px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.c-role { font-size: 12px; color: var(--soft); margin-top: 4px; }
.c-foot { text-align: center; padding: 40px 24px; font-size: 12px; color: var(--soft); border-top: 1px solid #f0f0f0; }

/* ==========================================================================
   404
   ========================================================================== */
.page-404 { min-height: 100vh; display: grid; place-items: center; background: #f4f4f5; font-family: var(--font-ui); }
.nf { text-align: center; }
.nf h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.nf p { font-size: 20px; color: #52525b; margin-bottom: 16px; }
.nf a { color: var(--brand); text-decoration: underline; }
.nf a:hover { color: var(--brand-hover); }

@media (prefers-reduced-motion: reduce) {
  .o-marquee__track, .o-cta { animation: none !important; }
  .o-marquee { overflow-x: auto; }
  .c-tick svg circle, .c-tick svg path { stroke-dashoffset: 0; animation: none; }
}
.o-grid > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
