/* ============================================================
   RUB A DUB CO., LTD. — Corporate site
   Distilled from the store site's global stylesheet (same design
   tokens, same tone). This is a standalone stylesheet for a
   static, build-free corporate site — not a byte-for-byte port.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --charcoal: #1a1a1a;
  --smoke: #2a2a2a;
  --ash: #444444;
  --mist: #888888;
  --silver: #bbbbbb;
  --white: #f5f3ee;
  --cream: #e8e4db;

  --yellow: #c8a84b;
  --yellow-dim: #8a7030;

  --font-heading: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  --container: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* The gateway page (index.html) is deliberately white-on-white to match the
   logo artwork; it sets this class on <body> instead of overriding tokens. */
body.gateway { background: #ffffff; color: var(--black); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  line-height: 1;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

section { padding: clamp(40px, 8vw, 90px) 0; }

.label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mist);
}

.section-header { margin-bottom: 40px; }
.section-header .label { margin-bottom: 10px; }
.section-header h2 { font-size: clamp(32px, 6vw, 64px); }

/* ── Back link / top bar ── */
.back-bar {
  padding: 24px clamp(20px, 5vw, 60px) 0;
  max-width: var(--container);
  margin: 0 auto;
}
.back-to-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mist);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.back-to-brand:hover { color: var(--white); }

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.lang-switch a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-switch a.active, .lang-switch a:hover { color: var(--white); }
.lang-switch span { color: var(--mist); font-size: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--white); color: var(--black); font-weight: bold; }
.btn-primary:hover { background: var(--yellow); color: var(--black); }
.btn-primary:disabled { background: var(--ash); color: var(--charcoal); cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ── Section backgrounds ── */
.section-black { background: var(--black); }
.section-ink { background: var(--ink); }

/* ── Info cards / tables (company facts, OEM steps) ── */
.info-card { background: var(--ink); padding: 32px; }
.section-black .info-card { background: var(--ink); }
.info-card h4 { font-size: 18px; letter-spacing: 0.08em; color: var(--white); margin-bottom: 16px; }
.info-card p, .info-card li { font-size: 13px; color: var(--mist); line-height: 1.8; font-family: var(--font-jp); }
.info-card ul { padding-left: 20px; margin-top: 8px; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.info-table th, .info-table td { padding: 10px 12px; font-size: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--font-jp); vertical-align: top; }
.info-table th { color: var(--mist); font-weight: normal; letter-spacing: 0.05em; white-space: nowrap; width: 30%; }
.info-table td { color: var(--silver); }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }

/* ── Section sub-headers (COMPANY / REPRESENTATIVE / HISTORY / OEM steps) ── */
.subhead { margin-bottom: 24px; }
.subhead h3 { font-size: clamp(22px, 4vw, 36px); }

/* ── Company profile ── */
.co-lead { max-width: 720px; font-size: 14px; line-height: 2; color: var(--silver); font-family: var(--font-jp); margin-bottom: 32px; }

.co-person { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.co-portrait { width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.08); display: block; }
.co-person-name { font-size: 20px; letter-spacing: 0.06em; color: var(--white); font-family: var(--font-jp); }
.co-person-role { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow-dim); margin: 6px 0 18px; }
.co-person-text p { font-size: 13px; line-height: 2; color: var(--mist); font-family: var(--font-jp); margin-bottom: 12px; max-width: 640px; }
@media (max-width: 700px) {
  .co-person { grid-template-columns: 1fr; }
  .co-portrait { max-width: 180px; }
}

.co-atelier { margin-bottom: 32px; }
.co-atelier img { width: 100%; height: auto; display: block; }
.photo-caption { font-size: 11px; color: var(--ash); margin-top: 8px; letter-spacing: 0.05em; }

.co-history-note { margin-top: 20px; font-size: 12px; color: var(--ash); font-family: var(--font-jp); }
.co-history-note a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }

.story-timeline { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 28px; margin-top: 8px; }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}
.timeline-year { font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.15em; color: var(--yellow); margin-bottom: 4px; }
.timeline-text { font-size: 13px; color: var(--mist); line-height: 1.8; font-family: var(--font-jp); }

.co-cta { max-width: 760px; }
.co-cta-contact { margin-top: 14px; font-size: 13px; color: var(--silver) !important; }
.co-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── OEM page ── */
.oem-lead { max-width: 680px; font-size: 15px; line-height: 2; color: var(--silver); font-family: var(--font-jp); margin-bottom: 8px; }
.oem-list { list-style: none; }
.oem-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: var(--silver);
  font-family: var(--font-jp);
}
.oem-list li:last-child { border-bottom: none; }
.oem-list li strong { color: var(--white); font-weight: normal; font-family: var(--font-heading); letter-spacing: 0.04em; margin-right: 10px; }

.oem-steps { counter-reset: step; display: grid; gap: 2px; margin-top: 8px; }
.oem-step {
  counter-increment: step;
  background: var(--ink);
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.oem-step::before {
  content: counter(step);
  font-family: var(--font-heading);
  font-size: 32px;
  color: rgba(255,255,255,0.14);
  flex: 0 0 auto;
}
.oem-step-text h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.oem-step-text p { font-size: 13px; color: var(--mist); line-height: 1.7; font-family: var(--font-jp); }

/* ── Contact form ── */
.contact-form { max-width: 620px; margin: 0 auto; }
.contact-intro { font-size: 14px; color: var(--mist); line-height: 1.8; margin-bottom: 32px; font-family: var(--font-jp); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-jp);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.3); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-status { font-size: 12px; color: var(--yellow); margin-top: 12px; font-family: var(--font-jp); min-height: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Footer (minimal) ── */
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 40px;
  margin-top: 0;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer p, footer.site-footer a {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.05em;
  text-decoration: none;
}
footer.site-footer a:hover { color: var(--silver); }

/* ── Privacy page ── */
.policy h4 { margin-top: 26px; margin-bottom: 8px; font-size: 15px; color: var(--white); font-family: var(--font-heading); letter-spacing: 0.05em; }
.policy h4:first-of-type { margin-top: 4px; }
.policy p { margin-bottom: 8px; }
.policy-date { margin-top: 24px; font-size: 11px !important; color: var(--ash) !important; }

/* ── 404 page ── */
.notfound { text-align: center; padding: 140px 0; }
.notfound h2 { font-size: clamp(60px, 12vw, 140px); color: rgba(255,255,255,0.1); margin-bottom: 16px; }
.notfound p { font-size: 14px; color: var(--mist); font-family: var(--font-jp); margin-bottom: 28px; }

/* ── Fade-in (progressive enhancement, mirrors Base.astro's IO script) ── */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
