/* ==========================================================================
   MidlandAuto UK — main stylesheet
   --------------------------------------------------------------------------
   Mobile-first: base rules target small screens, larger screens are added
   with min-width media queries in section 16.

    1. Design tokens (colours, spacing, fonts)
    2. Base & typography
    3. Language display rules (EN / 日本語)
    4. Layout helpers
    5. Buttons & badges
    6. Top bar, header, navigation, language switch
    7. Language modal (first visit)
    8. Hero sections
    9. Generic cards & feature grids
   10. Car stock cards & filters
   11. Japan export components (route, steps, timeline, checklists)
   12. Tables, FAQ, reviews
   13. Contact page & forms
   14. Legal pages
   15. Call-to-action band & footer
   16. Responsive breakpoints
   17. Reduced motion & print
   ========================================================================== */


/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand colours (same navy + gold direction as the logo) */
  --navy-900: #071a33;
  --navy-800: #0a2342;
  --navy-700: #0d2f5a;
  --navy-500: #2a4f80;
  --gold-500: #c9a548;
  --gold-600: #b48f32;
  --gold-700: #8a6b1c;   /* gold dark enough for text on white (AA) */
  --gold-100: #f6efda;

  /* Neutrals */
  --ink: #142033;
  --text: #2b3647;
  --muted: #586374;      /* 6:1 on white */
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-warm: #faf8f2;

  /* Japan accent (used sparingly on the export section) */
  --jp-red: #bc002d;

  /* Typography — Inter for Latin, system Japanese fonts for kana/kanji */
  --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Shape & depth */
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, 0.06), 0 2px 8px rgba(7, 26, 51, 0.04);
  --shadow: 0 10px 30px rgba(7, 26, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, 0.16);

  /* Layout */
  --container: 1180px;
  --gutter: 1.25rem;
  --section-y: 64px;
  --header-h: 72px;
}


/* 2. BASE & TYPOGRAPHY --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2rem; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* 3. LANGUAGE DISPLAY RULES ---------------------------------------------
   Every translatable piece of text exists twice in the HTML:
     <span lang="en">…</span><span lang="ja">…</span>
   <html data-ui-lang="en|ja"> decides which one is shown. Nothing is
   fetched or generated — this only shows/hides text already in the page.
   Add class "lang-keep" to anything that must show in both modes
   (e.g. the "日本語" button label).
   ------------------------------------------------------------------------ */
html[data-ui-lang="en"] body [lang="ja"]:not(.lang-keep),
html[data-ui-lang="ja"] body [lang="en"]:not(.lang-keep) {
  display: none !important;
}

/* Japanese reads better with more line-height and smaller headings */
html[data-ui-lang="ja"] body { line-height: 1.85; letter-spacing: 0.02em; }
html[data-ui-lang="ja"] h1,
html[data-ui-lang="ja"] h2,
html[data-ui-lang="ja"] h3 { line-height: 1.4; letter-spacing: 0.01em; }
html[data-ui-lang="ja"] h1 { font-size: clamp(1.7rem, 5vw, 2.9rem); }
html[data-ui-lang="ja"] h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
[lang="ja"] { word-break: auto-phrase; line-break: strict; }


/* 4. LAYOUT HELPERS ------------------------------------------------------ */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.86);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }

.section-head { max-width: 760px; margin: 0 0 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.section--dark .eyebrow, .cta-band .eyebrow { color: var(--gold-500); }
html[data-ui-lang="ja"] .eyebrow { letter-spacing: 0.08em; }

.lead { font-size: 1.1rem; color: var(--muted); }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.grid { display: grid; gap: 1.25rem; }
.split { display: grid; gap: 2.5rem; align-items: start; }
.split--center { align-items: center; }
.stack > * + * { margin-top: 1rem; }


/* 5. BUTTONS & BADGES ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px rgba(201, 165, 72, 0.35); }
.btn--primary:hover { background: #d4b25a; color: var(--navy-900); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { border-color: #c9d2df; background: #fff; color: var(--navy-800); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-800); }
.btn--light { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--gold-100);
  color: var(--gold-700);
}
.badge--navy { background: #e7edf6; color: var(--navy-700); }
.badge--jp { background: #fdecef; color: var(--jp-red); }

/* Tiny Japanese flag used inside badges/labels */
.flag-jp {
  display: inline-block;
  width: 18px; height: 12px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  background: radial-gradient(circle, var(--jp-red) 0 3.2px, #fff 3.6px);
}


/* 6. TOP BAR, HEADER, NAVIGATION, LANGUAGE SWITCH ------------------------ */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}
.topbar-tagline { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; flex: none; gap: 1.25rem; align-items: center; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold-500); }
.topbar-info { display: none; }   /* shown on desktop */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { width: auto; height: 52px; }

/* Desktop nav is hidden on mobile and becomes a drop-down panel */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy-800); }
.site-nav a[aria-current="page"] { color: var(--gold-700); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cta { display: none; }

/* EN | 日本語 switch — always visible, top-right */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-btn {
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--navy-700); color: #fff; }
.lang-sep { color: #b5beca; font-size: 0.8rem; padding: 0 1px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }


/* 7. LANGUAGE MODAL (shown once, on first visit) -------------------------- */
.lang-modal {
  width: min(420px, calc(100% - 2rem));
  padding: 2rem 1.75rem 1.75rem;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--text);
}
.lang-modal::backdrop { background: rgba(7, 26, 51, 0.55); backdrop-filter: blur(3px); }
.lang-modal img { height: 60px; width: auto; margin: 0 auto 1rem; }
.lang-modal h2 { font-size: 1.2rem; line-height: 1.5; margin-bottom: 1.25rem; letter-spacing: 0; }
.lang-modal h2 span { display: block; }
.lang-modal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.lang-modal-note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted); }


/* 8. HERO SECTIONS ------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 56px;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(201, 165, 72, 0.16), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 0.5em; }
.hero h1 .accent { color: var(--gold-600); }
.hero .lead { max-width: 620px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-700);
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points li::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%23071a33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Two-offer panel in the home hero: "Buy in the UK" + "Export to Japan" */
.offer-stack { display: grid; gap: 1rem; }
.offer-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.offer-card h2 { font-size: 1.3rem; margin: 0.25rem 0 0.1rem; }
.offer-card p { margin: 0; color: var(--muted); }
.offer-card .offer-link { margin-top: 0.6rem; font-weight: 700; color: var(--navy-700); }
.offer-card--jp {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.offer-card--jp:hover { color: rgba(255, 255, 255, 0.85); }
.offer-card--jp h2 { color: #fff; }
.offer-card--jp p { color: rgba(255, 255, 255, 0.78); }
.offer-card--jp .offer-link { color: var(--gold-500); }
.offer-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-700);
}
.offer-card--jp .offer-icon { background: rgba(255, 255, 255, 0.1); color: var(--gold-500); }
.offer-icon svg { width: 24px; height: 24px; }

/* Inner-page hero */
.page-hero {
  padding-block: 44px 40px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(201, 165, 72, 0.14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
html[data-ui-lang="ja"] .page-hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero--dark {
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(201, 165, 72, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .eyebrow { color: var(--gold-500); }
.page-hero--dark .lead { color: rgba(255, 255, 255, 0.8); }

.breadcrumb { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: #b5beca; }
.breadcrumb a { color: inherit; }
.page-hero--dark .breadcrumb { color: rgba(255, 255, 255, 0.65); }

/* Trust bar under the hero */
.trust-bar { background: var(--navy-800); color: rgba(255, 255, 255, 0.8); }
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  gap: 1rem;
}
.trust-bar li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.92rem; }
.trust-bar strong { display: block; color: #fff; font-size: 0.98rem; }
.trust-bar svg { width: 26px; height: 26px; flex: none; color: var(--gold-500); margin-top: 2px; }


/* 9. GENERIC CARDS & FEATURE GRIDS -------------------------------------- */
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.card--dark p { color: rgba(255, 255, 255, 0.78); }

.icon-badge {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-700);
}
.icon-badge svg { width: 24px; height: 24px; }
.card--dark .icon-badge { background: rgba(201, 165, 72, 0.16); color: var(--gold-500); }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-left: 1.75rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%238a6b1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--dark .tick-list li::before { background-color: rgba(201, 165, 72, 0.2); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.stat span { font-size: 0.85rem; color: var(--muted); }


/* 10. CAR STOCK CARDS & FILTERS ------------------------------------------ */
.car-grid { display: grid; gap: 1.25rem; }

.car-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.car-card[hidden] { display: none; }

/* Placeholder artwork until real photos are added.
   To use a photo: replace the <svg> inside .car-media with
   <img src="assets/cars/your-photo.jpg" alt="…" loading="lazy" width="800" height="500"> */
.car-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
}
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-media svg { width: 72%; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25)); }
.car-media .badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.car-media .badge--jp { left: auto; right: 0.75rem; background: #fff; }
.tile-hatchback { background: linear-gradient(140deg, #2a5f96, #0d2f5a); }
.tile-suv       { background: linear-gradient(140deg, #a07d2c, #5e4614); }
.tile-saloon    { background: linear-gradient(140deg, #3a4556, #0e1828); }
.tile-hybrid    { background: linear-gradient(140deg, #1f7a68, #0d3b4f); }
.tile-estate    { background: linear-gradient(140deg, #66758a, #27364b); }

.car-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.4rem; }
.car-body h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.car-body > p { font-size: 0.93rem; color: var(--muted); }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.car-specs li {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-700);
}
.car-features { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
.car-features strong { color: var(--text); }

.car-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.car-price { font-size: 1.45rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.car-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.car-actions .btn { flex: 1 1 auto; }

/* Body-type filter buttons on the stock page */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.filter-count { margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); }

.price-bands { display: grid; gap: 1rem; }
.price-band { padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.price-band strong { display: block; font-size: 1.15rem; color: var(--navy-800); margin-bottom: 0.25rem; }
.price-band p { margin: 0; font-size: 0.92rem; color: var(--muted); }


/* 11. JAPAN EXPORT COMPONENTS -------------------------------------------- */

/* Prominent home-page band */
.japan-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(201, 165, 72, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.85);
}
.japan-band::after {   /* large decorative rising-sun disc */
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 0, 45, 0.35), rgba(188, 0, 45, 0) 70%);
  pointer-events: none;
}
.japan-band h2, .japan-band h3 { color: #fff; }
.japan-band .eyebrow { color: var(--gold-500); }
.japan-band .container { position: relative; z-index: 1; }

/* UK → Japan route graphic */
.route {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.route-point { display: grid; gap: 0.1rem; text-align: center; min-width: 76px; }
.route-point strong { font-size: 1.05rem; }
.route-point span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.route-line {
  flex: 1;
  height: 2px;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 8px, transparent 8px 14px);
}
.route-line::after {
  content: "";
  position: absolute;
  right: -2px; top: -5px;
  border: 6px solid transparent;
  border-left: 8px solid var(--gold-500);
}
.route-label { display: block; text-align: center; font-size: 0.75rem; color: var(--gold-500); margin-top: 0.35rem; }

/* Numbered process steps (ordered list) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem; top: 1.15rem;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 800;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }
.steps .step-time { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--gold-700); }
.steps--dark > li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.steps--dark > li::before { background: var(--gold-500); color: var(--navy-900); }
.steps--dark p { color: rgba(255, 255, 255, 0.75); }
.steps--dark .step-time { color: var(--gold-500); }

/* Horizontal timeline (rough durations) */
.timeline { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.timeline li strong { color: var(--ink); }
.timeline li span { font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.timeline li.timeline-total { border-left-color: var(--navy-700); background: var(--navy-800); }
.timeline li.timeline-total strong, .timeline li.timeline-total span { color: #fff; }

/* "We handle" / "You handle" responsibility columns */
.duty-card { height: 100%; }
.duty-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.duty-card--ours { border-top: 4px solid var(--gold-500); }
.duty-card--yours { border-top: 4px solid var(--navy-700); }

/* "On this page" jump links under the Japan page hero */
.page-toc { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-toc ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 1rem 0; list-style: none; }
.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.page-toc a:hover { border-color: var(--navy-700); color: var(--navy-800); }

.notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gold-100);
  border: 1px solid #ecdfb6;
  font-size: 0.92rem;
  color: #4f3f12;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold-700); margin-top: 2px; }
.notice p { margin: 0; }


/* 12. TABLES, FAQ, REVIEWS ----------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.95rem; }
caption { padding: 1rem 1.1rem 0; text-align: left; font-weight: 700; color: var(--ink); }
th, td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy-800); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbfd; }
td.num { font-weight: 800; color: var(--navy-800); white-space: nowrap; }

/* FAQ uses native <details>, so all answers are in the HTML */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-700);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.review {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--gold-500); letter-spacing: 2px; font-size: 1rem; margin-bottom: 0.5rem; }
.review blockquote { margin: 0 0 0.75rem; }
.review blockquote p:first-child { font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.review blockquote p { color: var(--muted); }
.review figcaption { font-size: 0.88rem; font-weight: 700; color: var(--navy-700); }


/* 13. CONTACT PAGE & FORMS ------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--gold-700); }
.contact-list strong { display: block; color: var(--ink); font-size: 0.9rem; }

.hours { width: 100%; min-width: 0; font-size: 0.92rem; }
.hours td { padding: 0.4rem 0; border: 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours tbody tr:nth-child(even) { background: none; }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c9d2df;
  border-radius: var(--radius-sm);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(13, 47, 90, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.form-feedback p { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-feedback .is-error { background: #fdecec; color: #a32020; }
.form-feedback .is-success { background: #e8f6ee; color: #11683f; }


/* 14. LEGAL PAGES -------------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal ul { margin-bottom: 1em; }
.legal li + li { margin-top: 0.35rem; }
.legal-meta { font-size: 0.9rem; color: var(--muted); }


/* 15. CALL-TO-ACTION BAND & FOOTER --------------------------------------- */
.cta-band {
  padding-block: 56px;
  background:
    radial-gradient(600px 260px at 100% 100%, rgba(201, 165, 72, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.85);
}
.cta-band-inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.cta-band .btn-row { margin-top: 0; }

.site-footer { background: #06142a; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 56px 32px; }
.footer-logo {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: #fff;
}
.footer-logo img { height: 56px; width: auto; }
.site-footer h2 {
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0; }


/* 16. RESPONSIVE BREAKPOINTS ----------------------------------------------- */

/* Small tablets and large phones */
@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablets */
@media (min-width: 860px) {
  :root { --section-y: 88px; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
  .sticky-md { position: sticky; top: calc(var(--header-h) + 24px); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .page-hero { padding-block: 64px 56px; }
  .cta-band-inner { grid-template-columns: 1.4fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Desktop: full navigation in the header */
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    margin-right: 0.5rem;
  }
  .site-nav ul { display: flex; gap: 0.1rem; }
  .site-nav a { padding: 0.5rem 0.75rem; font-size: 0.95rem; }
  .site-nav a[aria-current="page"] { background: var(--bg-soft); }
  .brand { margin-right: auto; }
  .brand img { height: 56px; }
  .header-cta { display: inline-flex; }
  .topbar-info { display: inline; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .car-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-bands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-bar ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* 17. REDUCED MOTION & PRINT ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .lang-modal, .filter-bar { display: none !important; }
  body { color: #000; }
  .section { padding-block: 24px; }
}
