/* ============================================================
   Y&F Leather — B2B prototype shared stylesheet
   Single source of design truth. Pages must not re-implement
   these components inline; page-specific tweaks go in a small
   <style> block at the top of that page only.
   Palette: warm cream / leather brown / deep charcoal. No AI-style
   gradients, no glassmorphism, no large radii.
   ============================================================ */

:root {
  --bg: #F5F1E8;
  --surface: #FFFFFF;
  --surface-2: #EFE8D9;
  --ink: #211C16;
  --body-c: #3A332B;
  --muted: #63584A;
  --accent: #6B3F17;
  --accent-deep: #4E2E0F;
  --accent-soft: #F0E4D2;
  --line: #DCD2BF;
  --dark: #241E17;
  --dark-2: #2E2820;
  --on-dark: #EFE8DB;
  --on-dark-muted: #C2B5A1;
  --link-on-dark: #D9B98C;
  --serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 2px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.section-dark a { color: var(--link-on-dark); }
.section-dark a:hover { color: #E9CD9E; }
.section-tint { background: var(--surface-2); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--dark); color: var(--on-dark);
  padding: 8px 14px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Icons ---------- */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--dark); color: var(--on-dark-muted); font-size: .82rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.utility-note { letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; }
.utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-links a { color: var(--on-dark-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.utility-links a:hover { color: var(--on-dark); }

/* ---------- Header & nav ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--on-dark);
  background: var(--accent); padding: 8px 10px 6px; border-radius: var(--radius); letter-spacing: .02em;
}
.brand-text { color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: .14em; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--sans); font-weight: 400; font-size: .68rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; text-decoration: none;
  color: var(--ink); font-size: .95rem; border-bottom: 2px solid transparent;
}
.nav-item > a:hover { color: var(--accent); }
.nav-item > a.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.sub-toggle { display: none; }

.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 20px; min-width: 230px; box-shadow: 0 10px 24px rgba(33,28,22,.10);
}
.has-sub:hover .dropdown, .has-sub:focus-within .dropdown { display: flex; }
.dropdown-wide { width: 480px; gap: 28px; }
.dropdown-col { flex: 1; }
.dropdown h4 { font-size: .78rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink); font-size: .92rem; }
.dropdown li a:hover { color: var(--accent); }
.dropdown li a.is-current { color: var(--accent); font-weight: 600; }

.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .ic { width: 13px; height: 13px; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #FFF8EE; }
.btn-primary:hover { background: var(--accent-deep); color: #FFF8EE; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #FFF8EE; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark-ghost { background: transparent; color: var(--on-dark); border-color: rgba(239,232,219,.5); }
.btn-dark-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }

/* ---------- Section headers ---------- */
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.section-dark .kicker { color: var(--link-on-dark); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section-dark .lede { color: var(--on-dark-muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card .ic-lg { color: var(--accent); margin-bottom: 12px; }
.card-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link .ic { width: 14px; height: 14px; transition: transform .15s; }
.card-link:hover .ic { transform: translateX(3px); }

.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); }
.tile h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.tile p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Product placeholder system (canonical; do not invent variants) ---------- */
.ph-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ph {
  position: relative; aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: 12%;
}
.ph .sil { width: 100%; height: auto; max-height: 82%; fill: rgba(30,20,10,.34); }
.ph-tag {
  position: absolute; top: 10px; right: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #FFF9F0; background: rgba(30,20,10,.55); border: 1px solid rgba(255,249,240,.35); padding: 2px 7px; border-radius: var(--radius);
}
.ph-meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ph-code { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: .98rem; }
.ph-mat { font-size: .78rem; color: var(--muted); }
a.ph-code { color: inherit; text-decoration: none; }
a.ph-code:hover { color: var(--accent); }
/* tone variants — leather palette by material */
.ph-fg { background: #8B5E34; }
.ph-tg { background: #A9835B; }
.ph-sp { background: #B08D6E; }
.ph-nb { background: #BFA58A; }
.ph-brown { background: #6E4B2A; }
.ph-dark { background: #5C3D22; }

/* ---------- Photography layer (AI-generated imagery; replace with real product photos at launch) ---------- */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.hero-media { position: relative; overflow: hidden; }
.page-hero.hero-media .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.hero-media .hero-veil { position: absolute; inset: 0; background: rgba(30, 24, 17, .85); }
.page-hero.hero-media .container { position: relative; }

/* ---------- Language switcher ---------- */
.utility-bar { position: relative; z-index: 60; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  color: #FFF9F0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border: 1px solid rgba(255,249,240,.35); border-radius: var(--radius);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--accent); color: #E8C9A0; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 7px); margin: 0; padding: 6px; list-style: none;
  min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(30,24,17,.16); z-index: 70;
}
.lang-switch li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 10px; font-size: .86rem; color: var(--ink); text-decoration: none; border-radius: 2px;
}
.lang-switch li a:hover { background: var(--surface-2); color: var(--accent); }
.lang-switch li a .code-tag { font-size: .7rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.lang-switch li a.is-current { color: var(--accent); font-weight: 700; }
.lang-switch li a.is-current .code-tag { color: var(--accent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--surface-2); color: var(--ink); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:nth-child(even) td { background: #FBF8F1; }
.table .num { font-variant-numeric: tabular-nums; }
.table-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(239,232,219,.25); border: 1px solid rgba(239,232,219,.25); }
.stat { background: var(--dark); padding: 22px 20px; }
.stat .stat-n { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--on-dark); line-height: 1.1; }
.stat .stat-l { font-size: .82rem; color: var(--on-dark-muted); margin-top: 6px; line-height: 1.45; }
.stat-src { font-size: .76rem; color: var(--on-dark-muted); margin-top: 10px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--accent);
  border: 1px solid var(--accent); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--surface);
}
.steps h3 { margin-bottom: 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Filter chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filter-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: .88rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #FFF8EE; }
.chip .ic { width: 14px; height: 14px; }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--body-c); font-size: .95rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.form-field .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #FDFCF8; color: var(--ink); width: 100%;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--body-c); }
.form-check input { margin-top: 4px; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid var(--accent); padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; color: var(--ink); margin-top: 14px; }
.form-success.is-visible { display: block; }
.form-fineprint { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark-2); color: var(--on-dark); padding: 52px 0; border-top: 3px solid var(--accent); }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { margin: 0; color: var(--on-dark-muted); max-width: 58ch; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.site-footer h4 { color: var(--on-dark); font-size: .82rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-brand .brand-text { color: var(--on-dark); }
.footer-brand .brand-text small { color: var(--on-dark-muted); }
.footer-desc { font-size: .86rem; line-height: 1.6; margin-top: 14px; max-width: 34ch; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ic { margin-top: 4px; width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid rgba(239,232,219,.15); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--dark); color: var(--on-dark); padding: 46px 0 42px; }
.page-hero h1 { color: var(--on-dark); margin-bottom: 10px; font-size: 2.1rem; }
.page-hero .lede { color: var(--on-dark-muted); margin-bottom: 0; }
.page-hero .kicker { color: var(--link-on-dark); }

/* ---------- Two-col prose layout ---------- */
.prose-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-box h3 { font-size: 1rem; margin-top: 0; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.check-list .ic { color: var(--accent); margin-top: 3px; width: 17px; height: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .prose-cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  h1 { font-size: 1.85rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 24px 20px; gap: 2px;
    box-shadow: 0 14px 24px rgba(33,28,22,.12); max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .site-nav.nav-open .nav-list { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--surface-2); padding: 13px 4px; }
  .sub-toggle {
    display: inline-flex; position: absolute; right: 4px; top: 9px; background: none; border: none;
    cursor: pointer; padding: 8px; color: var(--muted);
  }
  .sub-toggle .ic { transition: transform .15s; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }
  .dropdown {
    display: none !important; position: static; box-shadow: none; border: none; border-left: 2px solid var(--accent);
    border-radius: 0; margin: 4px 0 8px 12px; padding: 8px 0 8px 14px; width: auto;
  }
  .nav-item.sub-open .dropdown { display: flex !important; flex-direction: column; gap: 10px; }
  .nav-toggle { display: inline-flex; margin-left: 8px; }
  .header-cta { display: none; }
  .header-inner { min-height: 64px; gap: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .stat-band { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .utility-note { display: none; }
}

@media print {
  .utility-bar, .site-header, .site-footer, .cta-band, .breadcrumb { display: none; }
  body { background: #fff; }
}
