/* ================================================================
   Japan Prime · PREMIUM UPGRADE LAYER
   Loads after styles.css. Pushes the landing toward the "gallery"
   direction: Prata didone display type, relaxed tracking, and a
   handful of refinements. Fully reversible — remove this <link>
   to return to the Montserrat baseline.
   ================================================================ */

/* Prata is a single-weight (400) didone serif. Anywhere the base
   sheet asked --ff-display for heavy weights or UPPERCASE, we relax
   it here so the serif reads elegant rather than cramped. */

:root {
  --ff-display: "Prata", "Times New Roman", Georgia, serif;
  --ff-display-geo: "Montserrat", "Manrope", system-ui, sans-serif; /* kept for anything geometric */
  /* slightly warmer, more refined gold balance for the gallery look */
  --gold: #c8a662;
  --gold-warm: #e6c98c;
}

/* ---- global display normalisation: Prata wants air, not crush ---- */
.hero__title,
.section-head__title,
.process__title,
.request__title,
.trust__title,
.trust__card h3,
.step__body h3,
.faq__summary,
.calc__summary-title,
.calc__total-val,
.quiz-step__title,
.modal__title,
.modal__content h3,
.request__success strong,
.foot__brand-text strong,
.nav__wordmark span {
  font-family: var(--ff-display) !important;
}

/* ---- HERO ---- */
.hero__title {
  font-weight: 400 !important;
  letter-spacing: -0.005em;
  line-height: 1.0;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  max-width: 15ch;
}
.hero__title-line--glow {
  text-shadow: 0 0 26px var(--gold-glow), 0 0 60px rgba(var(--gold-warm-rgb), 0.18);
}
/* ---- NAV WORDMARK ---- */
.nav__wordmark span { font-weight: 400 !important; letter-spacing: 0.18em; font-size: 1.18rem; }

/* ---- SECTION HEADS ---- */
.section-head__title,
.process__title,
.request__title {
  font-weight: 400 !important;
  letter-spacing: -0.008em;
  line-height: 1.05;
}
/* Prata has no native italic — a synthetic slant on a high-contrast
   didone looks broken. Render accent lines upright in gold instead;
   the colour shift carries the emphasis. */
.section-head__title em,
.process__title em,
.request__title em,
.trust__title em {
  font-style: normal !important;
  font-weight: 400 !important;
  color: var(--gold-warm);
}

/* ---- TRUST ---- */
.trust__title {
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 3.8vw, 3rem);
}
.trust__card h3 {
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

/* ---- PROCESS STEPS — drop the all-caps geometric, go serif ---- */
.step__body h3 {
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}
@media (min-width: 961px) {
  .step__body h3 {
    font-weight: 400 !important;
    text-transform: none !important;
    font-size: 1.55rem !important;
  }
}

/* ---- FAQ ---- */
.faq__summary { font-weight: 400 !important; letter-spacing: -0.005em; }

/* ---- CALCULATOR ---- */
.calc__summary-title { font-weight: 400 !important; }
.calc__total-val { font-weight: 400 !important; letter-spacing: -0.005em; }

/* ---- REQUEST / QUIZ ---- */
.quiz-step__title { font-weight: 400 !important; }
.request__success strong { font-weight: 400 !important; }

/* Selected JP monogram and wordmark, shared by header and contacts. */
.brand-logo { display: block; height: auto; object-fit: contain; }
.brand-logo--nav { width: 205px; max-width: 100%; }
.foot__brand { flex-direction: column; gap: 0.75rem; max-width: 100%; }
.brand-logo--footer { width: 360px; max-width: 100%; }
.foot__brand .foot__brand-text { align-items: center; text-align: center; }
@media (max-width: 600px) {
  .brand-logo--nav { width: 175px; }
  .brand-logo--footer { width: 280px; }
}

/* ---- FOOTER WORDMARK ---- */
.foot__brand-text strong { font-weight: 400 !important; letter-spacing: 0.06em; }

/* ---- MODALS ---- */
.modal__title,
.modal__content h3 { font-weight: 400 !important; }

/* ---- BUTTON polish: a hair more refined ---- */
.btn { letter-spacing: 0.02em; }

/* ================================================================
   POLISH PASS — rhythm, accents, numerics (safe, width-agnostic)
   ================================================================ */

/* Keep the mono section tag on one line (was wrapping to two) */
.section-head__meta,
.process__meta { flex-wrap: nowrap; white-space: nowrap; }
.section-head__tag,
.process__meta .section-head__tag { white-space: nowrap; }
.section-head__line,
.process__meta .section-head__line { flex: 0 0 52px; }

/* A touch more air around section heads */
.section-head { gap: 1.6rem; }

/* Gold accent lines: consistent optical weight + spacing */
.section-head__title em,
.process__title em,
.request__title em {
  letter-spacing: -0.005em;
}

/* Tabular numerals everywhere money/specs appear — premium alignment */
.calc__total-val,
.calc__line-val { font-variant-numeric: tabular-nums; }

/* FAQ rows: a little more vertical generosity */
.faq__summary { padding-top: 1.7rem; padding-bottom: 1.7rem; }

/* Trust cards: slightly larger gold icon ring breathing room */
.trust__card { transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.trust__card:hover { transform: translateY(-4px); }

/* Eyebrow: refined tracking to match the serif voice */
.hero__eyebrow { letter-spacing: 0.18em; font-size: 0.7rem; }

/* Calculator total: give the big number presence */
.calc__total-val { line-height: 1.0; }

/* Process step title: tighten lead under it */
.step__body p { margin-top: 0.1rem; }

/* Section lead copy: calmer measure */
.process__lead { color: var(--fg-1); }

/* ---- CALCULATOR / QUIZ — clearer gold affordances ---- */
.calc__btn-group button.is-active {
  border-color: var(--gold) !important;
  color: var(--gold-warm) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.45) !important;
}
.quiz-card input:checked + .quiz-card__box {
  border-color: var(--gold) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.4);
}
/* the headline total: a little more presence */
.calc__total-val {
  color: var(--gold-warm) !important;
  text-shadow: 0 0 26px rgba(var(--gold-warm-rgb), 0.16);
}
/* result rows: subtle hover read */
.calc__line-item { transition: color .3s var(--ease); }
.calc__line-item:hover .calc__line-val { color: var(--gold-warm); }

/* slider: brand-gold across browsers (base only styled -webkit thumb → Firefox showed blue) */
.calc__range { accent-color: var(--gold); }
.calc__range::-moz-range-thumb {
  width: 16px; height: 16px; border: 2px solid var(--bg-1); border-radius: 50%;
  background: var(--gold-warm); box-shadow: 0 0 10px var(--gold-glow); cursor: pointer;
}
.calc__range::-moz-range-progress { background: var(--gold); height: 4px; border-radius: 999px; }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.2), 0 0 12px var(--gold-glow); }
/* Contact icons stay readable without hover. */
.foot__social {
  color: #f5f3ec;
  background: #29251e;
  border: 1px solid #6e6048;
}
.nav__dropdown-icon { color: #f5f3ec; opacity: 1; }
.foot__social:hover,
.foot__social:focus-visible {
  color: #09090b;
  background: #e0c187;
}
.foot__social:focus-visible,
.nav__dropdown-item:focus-visible,
.reviews a:focus-visible { outline: 2px solid #e0c187; outline-offset: 4px; }
#policy-modal .modal__content {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #8b7441 #111113;
}
#policy-modal .modal__content::-webkit-scrollbar { width: 8px; }
#policy-modal .modal__content::-webkit-scrollbar-track { background: #111113; }
#policy-modal .modal__content::-webkit-scrollbar-thumb {
  background: #8b7441;
  border: 2px solid #111113;
  border-radius: 8px;
}
#policy-modal .modal__content::-webkit-scrollbar-thumb:hover { background: #e0c187; }
#policy-modal .modal__content::-webkit-scrollbar-button { display: none; }
.reviews { padding: clamp(5rem, 10vw, 10rem) 0; scroll-margin-top: 90px; }
.reviews__inner { max-width: 100vw; margin-inline: auto; padding-left: calc(max(var(--shell), (100vw - var(--max)) / 2 + var(--shell))); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.reviews__side-info { display: flex; flex-direction: column; gap: 1.5rem; align-self: stretch; }
.reviews__side-info .process__meta { white-space: nowrap; }
.reviews h2 { margin: 0; font: 400 clamp(2rem, 3.8vw, 3.2rem)/0.98 var(--ff-display); }
.reviews h2 em { color: var(--gold-warm); display: block; }
.reviews__empty, .review-card { padding: clamp(1.3rem, 3vw, 2.5rem); border: 1px solid #393329; border-radius: 16px; background: #111113; }
.reviews__empty p { max-width: 65ch; margin-bottom: 1rem; color: var(--fg-1); }
.reviews__empty p:first-child { color: var(--fg-0); font-size: 1.15rem; }
.reviews__empty .btn { margin-top: 0.5rem; white-space: normal; text-align: center; }
.reviews__carousel { min-width: 0; overflow: hidden; padding-top: 2.5rem; }
.reviews__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 380px;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scrollbar-color: #6e6048 #111113;
  padding-right: var(--shell);
  scroll-padding-right: var(--shell);
}
.reviews__grid::-webkit-scrollbar { display: none; }
.reviews__grid.is-enhanced { display: block; padding-right: 0; }
.reviews__rail { display: flex; gap: 2rem; width: max-content; padding-right: var(--shell); transition: none !important; }
.reviews__rail .review-card { flex: 0 0 380px; width: 380px; }
@media (min-width: 961px) {
  .reviews__grid.is-enhanced { overflow: hidden; scroll-snap-type: none; }
}
.reviews__grid:empty { display: none; }
.review-card { position: relative; overflow-wrap: anywhere; min-width: 0; scroll-snap-align: start; padding: 3rem 2.2rem; border-radius: 24px; border: 1px solid #25272c; background: #15171c; color: var(--fg-1); transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.review-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #070809; opacity: 0.6; pointer-events: none; transition: opacity 0.6s var(--ease); }
.review-card.is-active::after { opacity: 0; }
.review-card.is-active { background: #15171c; border-color: #8b7441; }
.review-card::before { content: "“"; display: block; font: 600 4rem/0.8 Georgia, serif; color: var(--gold-warm); margin-bottom: 2.5rem; }
.review-card blockquote { margin: 0; }
.review-card__country { color: var(--fg-2); margin: -0.35rem 0 1.25rem; font-size: 0.9rem; }
.review-card__author { margin-top: 1.5rem; font-weight: 600; }
.review-card__title { color: var(--fg-0); font: 600 1.55rem/1.4 var(--ff-body); margin-bottom: 0.9rem; }
.reviews__controls:not([hidden]) { display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 6rem); }
.reviews__position { min-width: 60px; text-align: center; color: var(--fg-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.reviews__position strong { color: var(--gold-warm); font-weight: 600; }
.reviews__arrow { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--fg-1); font-size: 1.5rem; cursor: pointer; }
.reviews__arrow:hover:not(:disabled) { background: #29251e; border-color: var(--gold-warm); }
.reviews__arrow:disabled { opacity: 0.35; cursor: default; }
.reviews__arrow:focus-visible, .reviews__grid:focus-visible { outline: 2px solid var(--gold-warm); outline-offset: 4px; }
.reviews__invite { margin-top: 0; padding-top: 2.5rem; flex: 1; display: flex; flex-direction: column; gap: 2rem; }
.reviews__invite p { max-width: 42ch; margin-bottom: 1rem; color: var(--fg-1); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; }
.reviews__invite .btn { white-space: normal; text-align: center; width: 100%; margin-top: auto; background: var(--bg-1); }
.review-card cite, .review-card time { display: block; color: var(--gold-warm); font-style: normal; }
@media (max-width: 960px) {
  .reviews__inner { display: flex; flex-direction: column; padding-right: var(--shell); }
  .reviews__side-info, .reviews__carousel { width: 100%; }
  .reviews__carousel { padding-top: 0; }
  .reviews__grid { grid-auto-columns: min(380px, 85%); padding-right: 0; scroll-padding-right: 0; }
  .reviews__rail { width: 100%; padding-right: 0; }
  .reviews__rail .review-card { flex-basis: min(380px, 85%); width: min(380px, 85%); }
}
@media (max-width: 600px) { .reviews__grid { grid-auto-columns: 100%; gap: 1.5rem; } .reviews__rail { gap: 1.5rem; } .reviews__rail .review-card { flex-basis: 100%; width: 100%; } .review-card { padding: 2rem 1.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .beacon, .foot__particles { display: none; }
}
