/* =====================================================================
   Infinity Roll-Off Boxes - "steel gray & gold" theme
   Same family as Infinity Truck Export (gold #F5B800, Barlow Condensed + Inter, infinity mark),
   but on charcoal/steel GRAY instead of pure black.
   Gold is used as a fill (buttons/badges/bars with dark text) or as text on the dark gray only;
   it is NOT used as text on light gray (too low contrast) - use --gold-ink there.
   Light blue (#5CE1FF) marks SAMPLE / placeholder content, as on the truck site.
   ===================================================================== */
:root {
  --charcoal: #2B2E33;      /* header, footer, dark sections */
  --steel: #3A3F45;         /* secondary dark surfaces */
  --steel-2: #474D54;
  --light: #EEF0F2;         /* content sections */
  --white: #FFFFFF;
  --ink: #1F2328;           /* body text on light (14:1 on #EEF0F2) */
  --ink-2: #4A5058;         /* secondary text on light (7:1) */
  --on-dark: #F3F4F6;
  --on-dark-2: #C9CED4;     /* 8.6:1 on #2B2E33 */
  --line: #D9DDE1;
  --line-dark: rgba(255,255,255,.12);
  --gold: #F5B800;
  --gold-hi: #FFC933;
  --gold-ink: #7A5A00;      /* gold-ish text on light backgrounds (6.3:1 on white) */
  --gold-soft: rgba(245,184,0,.14);
  --ph: #5CE1FF;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31,35,40,.06), 0 8px 24px rgba(31,35,40,.08);
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, system-ui, sans-serif;
  --header-h: 72px;
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--steel); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--on-dark-2); }
.section-head { max-width: 740px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; color: var(--gold-ink); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }
.muted { color: var(--ink-2); }

/* SAMPLE / placeholder markers */
.ph { display: inline-block; color: #0b3a44; background: rgba(92,225,255,.25); border: 1.5px dashed #0e7490; border-radius: 4px; padding: 0 .45em; font-weight: 700; font-size: .82em; letter-spacing: .03em; }
.dark .ph, .site-footer .ph { color: var(--ph); background: rgba(92,225,255,.08); border-color: var(--ph); }

/* Buttons (pill, uppercase - same feel as the truck site) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.6em; border-radius: 999px; font: 800 .86rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.15); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-sm { padding: .6em 1.1em; font-size: .74rem; }

/* Top bar + header */
.top-bar { background: #222428; color: var(--on-dark-2); font-size: .8rem; }
.top-bar .container { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.top-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.top-bar a:hover { color: var(--gold); }
.top-bar .sep { opacity: .4; margin: 0 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(43,46,51,.96); backdrop-filter: blur(10px); border-bottom: 3px solid var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { position: relative; text-decoration: none; color: var(--on-dark-2); font-weight: 600; font-size: .92rem; padding: 6px 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--charcoal) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,46,51,.95) 0%, rgba(43,46,51,.82) 45%, rgba(43,46,51,.35) 100%); }
.hero .container { padding: 104px 0 96px; }
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: var(--on-dark-2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { display: flex; gap: 10px 24px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: 8px; }

/* Grids & cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--gold); }
.cat-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.cat-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: .3em; }
.cat-card ul { padding-left: 18px; color: var(--ink-2); margin: 0 0 20px; }
.cat-card .btn { align-self: flex-start; margin-top: auto; }
.feature { background: var(--charcoal); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; border: 1px solid rgba(245,184,0,.35); }
.feature h3 { color: #fff; }
.feature p { color: var(--on-dark-2); margin: 0; font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 1.3rem/40px var(--font-display); text-align: center; }
.steps p { color: var(--ink-2); }

/* Yard photo gallery */
.yard-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.yard-gallery figure { margin: 0; }
.yard-item { display: block; overflow: hidden; border-radius: var(--radius-sm); background: #D5D9DE; cursor: zoom-in; }
.yard-gallery img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); transition: transform .25s; }
.yard-item:hover img, .yard-item:focus-visible img { transform: scale(1.05); }
.yard-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* CTA band */
.cta-band { background: var(--gold); color: var(--ink); padding: 52px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #3b3200; font-weight: 500; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Inventory page */
.page-head { background: var(--steel); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-head p { color: var(--on-dark-2); margin: 0; max-width: 720px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 800 .8rem var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; color: var(--ink-2); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--charcoal); color: #fff; }
.tab .count { display: inline-block; min-width: 1.6em; margin-left: 6px; padding: 0 .4em; border-radius: 999px; background: var(--light); color: var(--ink-2); font-size: .74rem; }
.tab[aria-selected="true"] .count { background: var(--gold); color: var(--ink); }
.controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.controls select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); font: inherit; background: #fff; color: var(--ink); }
.controls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.result-count { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31,35,40,.16); }
.card-media { position: relative; aspect-ratio: 4/3; background: #dfe3e7; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 10px; bottom: 10px; background: rgba(31,35,40,.8); color: #fff; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font: 800 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge.open-top { background: var(--gold); color: var(--ink); }
.badge.vacuum-box { background: var(--charcoal); color: var(--gold); border: 1px solid var(--gold); }
.badge.sample { background: var(--ph); color: #0b0b0b; }
.badge.sold { background: #b42318; color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.3; }
.specs-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.specs-mini li { background: var(--light); border-radius: 6px; padding: 3px 8px; font-size: .84rem; color: var(--ink-2); }
.specs-mini strong { color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font: 800 1.45rem/1 var(--font-display); color: var(--ink); letter-spacing: .01em; }
.price.call { font-size: 1.15rem; text-transform: uppercase; }
.location { color: var(--ink-2); font-size: .82rem; text-align: right; }
.card.is-sold .card-media img { filter: grayscale(.8); opacity: .75; }
.empty { padding: 40px; text-align: center; color: var(--ink-2); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); grid-column: 1 / -1; }
.sample-note { background: rgba(92,225,255,.14); border: 1.5px dashed #0e7490; color: #0b3a44; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 22px; }

/* Detail page */
.breadcrumb { font-size: .88rem; color: var(--ink-2); margin: 22px 0; }
.breadcrumb a { color: var(--ink-2); }
.detail { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-areas: "gallery info" "desc info"; grid-template-rows: auto 1fr; gap: 30px 36px; align-items: start; }
.detail-gallery { grid-area: gallery; } .detail-info { grid-area: info; } .detail-desc { grid-area: desc; }
.gallery-main { position: relative; background: var(--charcoal); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(31,35,40,.7); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.gallery-nav:hover { background: var(--gold); color: var(--ink); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(31,35,40,.8); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.gallery-main .badges { left: 12px; top: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; opacity: .75; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.detail-info .badges-inline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.detail-price { font: 800 2.2rem/1 var(--font-display); color: var(--ink); margin: 4px 0 18px; padding-left: 12px; border-left: 4px solid var(--gold); }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 44%; color: var(--ink-2); font-weight: 600; }
.spec-table .spec-group th { background: var(--charcoal); color: var(--gold); text-transform: uppercase; font-size: .74rem; letter-spacing: .1em; font-weight: 800; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-desc p { white-space: pre-line; }

/* About / contact */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 800; margin-bottom: 2px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.contact-list .val { color: var(--on-dark); }
form.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9ced4; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-note { font-size: .84rem; color: var(--ink-2); margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-2); padding: 48px 0 24px; font-size: .92rem; border-top: 3px solid var(--gold); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 28px; margin-bottom: 28px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--gold); margin: 0 0 12px; font: 800 .78rem var(--font); text-transform: uppercase; letter-spacing: .16em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 16px; color: #9aa1a9; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; grid-template-areas: "gallery" "info" "desc"; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .yard-gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .logo img { height: 36px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: calc(var(--header-h) + 3px); left: 0; right: 0; background: var(--charcoal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 12px; }
  .top-bar .hide-sm { display: none; }
  .grid-2, .grid-3, .grid-4, .cards, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .yard-gallery { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 48px 0; }
  .hero .container { padding: 64px 0 60px; }
  .hero::before { background: rgba(43,46,51,.82); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 6px; font-size: .72rem; }
  .detail-info { padding: 20px; }
}

/* light cards inside dark sections keep dark text */
.section.dark .contact-form .sample-note { color: #0b3a44; }
.section.dark .contact-form p { color: var(--ink-2); }

/* ---------- Size guide ---------- */
.approx-note { background: #fff8e1; border: 1px solid #f5d77a; border-left: 5px solid var(--gold); color: #3b3200; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin: 0 0 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.jump a:hover { border-color: var(--gold); background: var(--gold-soft); }
.stock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stock-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 5px solid var(--gold); transition: transform .15s; }
.stock-card:hover { transform: translateY(-3px); }
.stock-card .n { font: 800 4rem/1 var(--font-display); color: var(--ink); margin-bottom: 14px; }
.stock-card .n span { font-size: 1.4rem; margin-left: 6px; color: var(--gold-ink); text-transform: uppercase; }
.stock-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .93rem; }
.stock-card dt { color: var(--ink-2); font-weight: 600; }
.stock-card dd { margin: 0; font-weight: 700; }
.stock-card p { color: var(--ink-2); margin: 0; font-size: .93rem; }
.stock-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.size-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.size-table td:last-child { min-width: 380px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table thead th { background: var(--charcoal); color: var(--gold); text-align: left; font: 800 .74rem var(--font); text-transform: uppercase; letter-spacing: .1em; padding: 12px 14px; white-space: nowrap; }
.size-table td, .size-table tbody th { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.size-table tbody th { white-space: nowrap; font-weight: 700; }
.size-table .yd { font: 800 1.9rem/1 var(--font-display); }
.size-table tr.stocked { background: #fffaeb; }
.size-table tr.stocked th { border-left: 5px solid var(--gold); }
.size-table td:nth-child(2), .size-table td:nth-child(3), .size-table td:nth-child(4) { white-space: nowrap; }
.size-table .ex { margin-top: 6px; font-size: .78rem; color: var(--ink-2); }
.badge.stock { display: block; width: max-content; margin-top: 6px; background: var(--gold); color: var(--ink); }
.dark-table { background: var(--charcoal); }
.dark-table .size-table thead th { background: #222428; }
.dark-table .size-table td, .dark-table .size-table tbody th { color: var(--on-dark); border-bottom-color: var(--line-dark); }
.dark-table .size-table tr.stocked { background: rgba(245,184,0,.08); }
.dark-table .size-table .ex { color: var(--on-dark-2); }
.dark-table .size-table td:nth-child(5) { white-space: nowrap; }
.dark-table .size-table td:nth-child(6) { white-space: normal; min-width: 260px; }
.size-aside { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.dim-diagram { width: 100%; height: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.tip { background: #fff; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; color: var(--ink-2); box-shadow: var(--shadow); }
.tip strong { color: var(--ink); display: block; margin-bottom: 2px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--charcoal); }
.section.white .info-card { background: var(--light); box-shadow: none; }
.info-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: .35em; }
.info-card p { color: var(--ink-2); margin: 0; }
.feature-list, .check { margin: 8px 0 0; padding-left: 0; list-style: none; }
.feature-list li { color: var(--on-dark-2); padding: 6px 0; border-bottom: 1px solid var(--line-dark); font-size: .93rem; }
.feature-list li strong { color: #fff; }
.check li { position: relative; padding: 6px 0 6px 28px; color: var(--ink-2); }
.check li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.sources { margin-top: 28px; font-size: .88rem; color: var(--ink-2); }
.sources summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sources p { margin-top: 8px; }
.size-filter-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff8e1; border: 1px solid #f5d77a; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
.size-filter-note[hidden] { display: none; }

/* Home teaser */
.teaser-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.size-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.size-chip { text-decoration: none; background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 22px 18px; border-bottom: 5px solid var(--gold); transition: transform .15s; }
.size-chip:hover { transform: translateY(-3px); }
.size-chip .n { font: 800 3.4rem/1 var(--font-display); color: var(--gold); }
.size-chip .u { font: 800 1.2rem var(--font-display); margin-left: 4px; text-transform: uppercase; }
.size-chip .h { display: block; color: var(--on-dark-2); font-size: .82rem; margin-top: 8px; }
.size-chips .fine { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-2); margin: 0; }

@media (max-width: 1000px) {
  .size-layout, .teaser-grid { grid-template-columns: 1fr; }
  .size-aside { grid-template-columns: 1fr 1fr; }
  .size-aside .dim-diagram { grid-column: 1 / -1; max-width: 520px; }
  .size-table td:last-child { min-width: 260px; }
}
@media (max-width: 760px) {
  .stock-cards { grid-template-columns: 1fr; }
  .size-chips { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .size-chip { padding: 16px 10px; }
  .size-chip .n { font-size: 2.4rem; }
  /* stacked table rows on phones */
  .table-wrap { overflow: visible; box-shadow: none; background: transparent; }
  .size-table thead { display: none; }
  .size-table, .size-table tbody, .size-table tr, .size-table td, .size-table tbody th { display: block; width: 100%; }
  .size-table tr { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
  .dark-table .size-table tr { background: var(--charcoal); }
  .size-table tr.stocked th { border-left: 0; }
  .size-table tr.stocked { border-top: 5px solid var(--gold); }
  .size-table tbody th { background: var(--light); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .dark-table .size-table tbody th { background: #222428; }
  .size-table .badge.stock { margin-top: 0; }
  .size-table td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; white-space: normal !important; padding: 9px 14px; }
  .size-table td::before { content: attr(data-label); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
  .dark-table .size-table td::before { color: var(--gold); }
  .dark-table .size-table td:nth-child(6), .size-table td:last-child { min-width: 0; }
  .size-aside { grid-template-columns: 1fr; }
}

/* Header fit on tablets / small laptops */
@media (max-width: 1100px) { .top-bar .container > div:last-child { display: none; } }
@media (max-width: 980px) and (min-width: 881px) {
  .nav-links { gap: 13px; }
  .nav-links a:not(.btn) { font-size: .82rem; }
  .logo img { height: 34px; }
  .nav-links .btn-sm { padding: .55em .9em; font-size: .68rem; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: calc(var(--header-h) + 3px); left: 0; right: 0; background: var(--charcoal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
  .nav-links .btn { margin-top: 12px; }
  .logo img { height: 40px; }
}
@media (max-width: 760px) { .size-table td .ex { grid-column: 1 / -1; } }

/* ---------- Language toggle (EN | ES) ---------- */
html.i18n-wait body { visibility: hidden; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; overflow: hidden; flex: none; }
.lang-toggle button { background: transparent; color: var(--on-dark-2); border: 0; font: 700 .78rem/1 Inter, system-ui, sans-serif; letter-spacing: .04em; padding: 7px 9px; cursor: pointer; }
.lang-toggle button + button { border-left: 1px solid rgba(255,255,255,.28); }
.lang-toggle button:hover { color: #fff; }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: #1F2328; }
.lang-toggle button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.nav-links .lang-li { display: none; }
@media (max-width: 1240px) and (min-width: 881px) {
  .nav { gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { font-size: .86rem; }
  html[lang="es"] .nav-links { gap: 12px; }
  html[lang="es"] .nav-links a:not(.btn) { font-size: .8rem; }
}
@media (max-width: 880px) {
  .nav .lang-toggle.in-header { margin-left: auto; margin-right: 4px; }
  .nav-links .lang-li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .lang-li::before { content: "Language · Idioma"; color: var(--on-dark-2); font-weight: 600; font-size: .95rem; }
  .nav-links .lang-toggle button { padding: 9px 14px; font-size: .85rem; }
}

@media (max-width: 480px) { .yard-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Photo lightbox ---------- */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,17,20,.97); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-caption { color: #D5D9DE; font-size: .92rem; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--gold); color: #1F2328; outline: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 22px; left: 20px; color: #D5D9DE; font-weight: 600; font-size: .9rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
@media (max-width: 760px) {
  .lightbox { padding: 60px 8px 76px; }
  .lb-img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* Size tables: let the Spanish "aprox. ..." ranges and long headers wrap instead of overflowing */
@media (min-width: 761px) {
  .size-table thead th { white-space: normal; }
  .dark-table .size-table td:nth-child(n+2):nth-child(-n+5) { white-space: normal; min-width: 110px; }
  html[lang="es"] .size-table td:nth-child(n+2):nth-child(-n+4) { white-space: normal; min-width: 120px; }
}
