/* LOCOMOTIVE WHOLESALE INC. — company site */

@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/LibreBaskerville.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #0C2420;
  --green-800: #143D33;
  --green-700: #1C5244;
  --green-100: #E4EDE8;
  --cream: #F6F3EC;
  --cream-dark: #EBE6DA;
  --paper: #FFFCF7;
  --ink: #1C2421;
  --ink-muted: #4F5D57;
  --gold: #C4A35A;
  --gold-soft: #E8D5A3;
  --line: rgba(20, 61, 51, 0.14);
  --shadow: 0 12px 32px rgba(12, 36, 32, 0.08);
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.45em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--green-700); }
a:focus-visible {
  outline: 2px solid var(--green-800);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green-800);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-800);
  min-width: 0;
}
.wordmark:hover { color: var(--green-800); }
.wordmark .mark { color: var(--green-800); flex-shrink: 0; }

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wordmark-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 560;
}
.site-nav a:hover { color: var(--green-800); }

.nav-cta {
  background: var(--green-800);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--green-700); }

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: var(--paper);
}
.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-800);
}

/* Hero */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, #1A4A3E 100%);
  color: #F6F3EC;
  overflow: hidden;
  padding: 96px 0 108px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 213, 163, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 163, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 20% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; margin-left: auto; margin-right: auto; width: min(100% - 40px, var(--max)); }

.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero .lede {
  font-size: 1.15rem;
  color: rgba(246, 243, 236, 0.86);
  max-width: 38em;
  margin-bottom: 2em;
}
.hero .eyebrow { color: var(--gold-soft); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.btn-light {
  background: var(--gold-soft);
  color: var(--green-900);
}
.btn-light:hover { background: #f0e2b8; color: var(--green-900); }

/* About */

.about {
  padding: 96px 0;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.about-copy {
  font-size: 1.08rem;
  color: var(--ink-muted);
}
.about-copy p + p { margin-top: 1em; }

/* Services */

.services {
  padding: 96px 0;
  background: var(--cream);
}

.section-head { margin-bottom: 48px; max-width: 640px; }
.section-lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-top: 0.75em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-muted); }
.card-icon {
  color: var(--green-800);
  margin-bottom: 18px;
}

/* Who we serve */

.serve {
  padding: 96px 0;
  background: var(--green-800);
  color: #F6F3EC;
}
.serve h2, .serve h3 { color: #fff; }
.serve .section-lead { color: rgba(246, 243, 236, 0.8); }
.serve .eyebrow { color: var(--gold-soft); }

.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.serve-item {
  padding: 8px 0;
}
.serve-item p { color: rgba(246, 243, 236, 0.78); }
.serve-icon {
  color: var(--gold-soft);
  margin-bottom: 16px;
}

/* Contact */

.contact {
  padding: 96px 0;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-intro p { color: var(--ink-muted); font-size: 1.05rem; }

.contact-card {
  font-style: normal;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 32px;
}

.contact-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact-row a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--green-800);
}
.contact-row a:hover { text-decoration: underline; }
.contact-row p { margin: 0; font-size: 1.05rem; }

/* Footer */

.site-footer {
  background: var(--green-900);
  color: rgba(246, 243, 236, 0.72);
  padding: 36px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer-name {
  font-family: var(--serif);
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0;
}
.site-footer p { margin: 0; }

/* Responsive */

@media (max-width: 860px) {
  .about-grid,
  .contact-grid,
  .serve-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 72px 0 80px; }
  .about, .services, .products, .serve, .contact, .page-hero { padding: 72px 0; }
  .nav-toggle-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .site-nav a { padding: 12px 4px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .header-inner { position: relative; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .footer-inner { flex-direction: column; gap: 8px; }
  .wordmark-name { font-size: 1.05rem; }
  .hero .lede { font-size: 1.05rem; }
  .header-inner { gap: 8px; }
}

/* Products */

.products {
  padding: 96px 0;
  background: var(--paper);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head-row .section-head { margin-bottom: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-visual {
  background: var(--green-100);
  aspect-ratio: 14 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-visual img,
.product-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 { margin-bottom: 0.4em; }
.product-body p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin-bottom: 0.85em;
}
.product-pack {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.15em;
}
.product-quote {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--green-800);
}
.product-quote:hover { color: var(--green-700); text-decoration: underline; }

.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 70%);
  color: #F6F3EC;
  overflow: hidden;
  padding: 72px 0 80px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.45em; }
.page-hero .lede {
  font-size: 1.1rem;
  color: rgba(246, 243, 236, 0.86);
  max-width: 38em;
  margin-bottom: 0;
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .hero-pattern { opacity: 0.9; }
.page-hero-inner { position: relative; }

.nav-current { color: var(--green-800) !important; }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Launch prep: language switch, Chinese typography, mobile QA fixes */

html { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
.wrap, .hero-inner, .page-hero-inner, .about-grid, .contact-grid,
.card, .product-card, .product-body, .contact-row { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
a[href^="mailto:"], .contact-row a { overflow-wrap: anywhere; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  text-decoration: none;
  color: var(--ink-muted);
  border-radius: 4px;
}
.lang-switch a:hover { color: var(--green-800); }
.lang-switch a[aria-current="page"] {
  color: var(--green-800);
  background: var(--green-100);
}
.lang-sep {
  color: var(--ink-muted);
  padding: 0 2px;
  user-select: none;
}

.product-quote,
.contact-row a,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

:lang(zh-Hans) {
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", Inter, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  font-family: "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", "Libre Baskerville", serif;
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: 600;
}
:lang(zh-Hans) .wordmark-name,
:lang(zh-Hans) .wordmark-sub,
:lang(zh-Hans) .footer-name,
:lang(zh-Hans) .eyebrow,
:lang(zh-Hans) .product-pack,
:lang(zh-Hans) .contact-label,
:lang(zh-Hans) .lang-switch {
  letter-spacing: 0.08em;
}
:lang(zh-Hans) .wordmark-name,
:lang(zh-Hans) .footer-name {
  font-family: var(--serif);
}
:lang(zh-Hans) .wordmark-sub { font-family: var(--sans); letter-spacing: 0.16em; }

/* Tighten the desktop breakpoint so EN/中文 + nav fit; collapse earlier */
@media (max-width: 980px) {
  .nav-toggle-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .site-nav a {
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta { text-align: center; margin-top: 8px; justify-content: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .header-inner { position: relative; }
  .hero { padding: 72px 0 80px; }
  .about, .services, .products, .serve, .contact, .page-hero { padding: 72px 0; }
  .about-grid,
  .contact-grid,
  .serve-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 981px) {
  .nav-toggle-btn { display: none !important; }
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 18px;
    margin-left: auto;
  }
  .header-tools { margin-left: 12px; }
}

@media (max-width: 1040px) and (min-width: 561px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .product-grid,
  .card-grid { grid-template-columns: 1fr; }
}

.wordmark { flex: 0 0 auto; min-width: auto; min-height: 44px; }
.section-lead a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}


/* Draft-v2 only: sample catalog with prices and photos */

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}
.draft-banner {
  background: #C4A35A;
  color: var(--green-900);
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  line-height: 1.45;
}
body.has-draft-banner .site-header {
  position: relative;
  top: auto;
}
body.has-draft-banner { scroll-padding-top: calc(var(--header-h) + 64px); }

.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 8px;
}
.catalog-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 650;
  text-decoration: none;
}
.catalog-nav a:hover { text-decoration: underline; }
.page-hero .catalog-nav a { color: var(--gold-soft); }
.page-hero .catalog-nav a:hover,
.page-hero .catalog-nav a:focus-visible { color: #fff; }

.catalog-group { margin-bottom: 72px; }
.catalog-group:last-child { margin-bottom: 0; }
.catalog-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.catalog-group-head h2 { margin: 0; }
.catalog-group-head a {
  font-weight: 650;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.catalog-group-head a:hover { text-decoration: underline; }

.product-visual { aspect-ratio: 4 / 3; background: #f0eee7; }
.product-visual img,
.product-visual picture,
.product-visual picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45em;
}
.product-specs {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  border-top: 1px solid var(--line);
}
.product-specs li {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
}
.product-specs li span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
}
.product-price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.2em;
}
.product-price-note {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1em;
}

