/* ============================================================
   BENZOL, catalogue landing page.
   Page-specific layer on top of the site design system (site.css).
   Tokens, type, buttons, cards and footer all come from there;
   nothing here re-declares a brand colour.
   ============================================================ */

/* ============================================================
   HERO, a dark feature band, like the hero on the main site.
   Keeps its dark treatment in light mode (see token re-pin below).
   ============================================================ */
.hero-cat{
  position:relative;padding:clamp(44px,6vw,84px) 0 clamp(56px,7vw,96px);
  background:radial-gradient(120% 120% at 78% 8%,#1c1710 0%,#0a0a0c 58%);
  border-bottom:1px solid var(--line);overflow:hidden;
}
.hero-cat::after{
  content:"";position:absolute;inset:auto 0 -1px 0;height:1px;background:var(--metal);opacity:.5;
}
/* The banner is a 16:9 web banner carrying fine detail (the product icon row,
   the stand type), so it earns more width than a half column. */
.hero-grid{display:grid;grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);
  gap:clamp(28px,4vw,56px);align-items:center}
.hero-grid>*{min-width:0}
.hero-cat h1{font-size:clamp(16px,5vw,34px);margin-top:0;text-transform:uppercase;
  letter-spacing:.005em;line-height:1.12;max-width:none}
/* "BENZOL(R) PRODUCT RANGE." has to survive on one line. The size therefore has
   to track the column, which halves at the two-column breakpoint, so the single
   and two-column cases need different ramps. Values measured, not guessed. */
@media(min-width:901px){
  /* re-measured after the banner was given more width: the text column now
     tops out at 459px, which the headline fills at 27.3px */
  .hero-cat h1{font-size:clamp(18px,2.1vw,27px)}
}
/* The gradient is clipped to the text box, so spanning it over both lines made
   the second line pick up only the dark end of the ramp. Run it across the top
   line on its own, and give the second line a flat gold. */
.hero-cat h1 .hl-metal{
  display:inline-block;
  background:linear-gradient(90deg,var(--gold-hi) 0%,var(--gold) 45%,var(--gold-deep) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-cat h1 .hl-solid{color:var(--gold)}

/* second line of the headline: same voice, quieter */
.hero-sub{
  margin:12px 0 0;font-family:var(--disp);font-weight:600;
  font-size:clamp(13px,1.45vw,17px);letter-spacing:.04em;text-transform:uppercase;
  color:var(--gold);line-height:1.2;
}
html.light .hero-cat .hero-sub{color:var(--gold-hi)}
.hero-cat .lead{margin-top:22px}
.hero-cat .cta-row{margin-top:34px}
.hero-shot{
  border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.12);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.9);background:#000;
}
.hero-shot img{width:100%;height:auto}
@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:38px}
  .hero-shot{order:-1}
}

/* ============================================================
   CATALOGUE CARDS, .card from the system, plus a media well.
   ============================================================ */
.cat{display:flex;flex-direction:column;padding:0;overflow:hidden}
.cat .pm{
  position:relative;aspect-ratio:16/9;background:var(--ink-3);overflow:hidden;flex:none;
  border-bottom:1px solid var(--line);
}
.cat .pm img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
/* Product plates: shot on studio white in the catalogues, so they are shown
   that way. The white Porsche's bodywork is the same pure white as its
   backdrop, which makes a clean cut-out impossible; presenting all three on
   their plate is both faithful and free of masking artefacts. */
.cat.plate .pm{background:#fff}
.cat.plate .pm img{object-fit:cover}
/* take the glare off a white plate sitting on a dark card */
html:not(.light) .cat.plate .pm img{filter:brightness(.95) contrast(1.02)}
.cat:hover .pm img{transform:scale(1.05)}
.cat .cbody{padding:26px 28px 28px;display:flex;flex-direction:column;gap:12px;flex:1}
.cat h3{margin:0}
.cat p{flex:1}
.cat .acts{display:flex;gap:10px;margin-top:8px}
.cat .btn{padding:13px 20px;font-size:14px;flex:1}
.cat .btn.icon{flex:0 0 auto;width:50px;padding:13px 0}
.cat .btn.icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* the master catalogue spans the row and runs horizontally */
.cat.wide{grid-column:1/-1}
@media(min-width:820px){
  .cat.wide{flex-direction:row}
  .cat.wide .pm{width:42%;aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--line)}
  .cat.wide .cbody{padding:36px 40px;justify-content:center;gap:14px}
  .cat.wide h3{font-size:26px}
  .cat.wide p{flex:0 1 auto;max-width:56ch}
  .cat.wide .acts{max-width:400px;margin-top:14px}
}
/* the master shot is a cut-out packshot, let it sit on the card, not in a well */
.cat:hover.wide .pm img{transform:scale(1.03)}

/* ---------- visit / details strip ---------- */
.info-grid{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:18px;align-items:stretch}
.info-grid .card{padding:26px 30px;display:flex;align-items:flex-start;gap:22px}
/* the text column only: this must not also match the icon tile, which would
   stretch it down the whole card */
.info-grid .where>div:not(.ico){display:flex;flex-direction:column;height:100%;min-width:0}
.info-grid .ico{margin-bottom:0;flex:none}
.info-grid h3{font-size:19px;margin:0 0 8px}
.info-grid p{color:var(--muted);font-size:14.5px;margin:0}
.info-grid strong{color:var(--text);font-weight:500}
.where-stand{margin-top:10px!important}
/* Let the event link wrap inside the card at narrow widths and browser zoom. */
.where-dir{margin-top:auto;padding:11px 20px;font-size:14px;align-self:flex-start;
  max-width:100%;white-space:normal;text-align:center;line-height:1.4;overflow-wrap:anywhere}
.where-dir span{white-space:normal}
.where-stand+.where-dir{margin-top:20px}

/* map: tiles stitched at build time, so there is no third-party script or
   iframe sizing to fight, and it renders identically for everyone */
.mapcard{padding:0;overflow:hidden;display:flex;flex-direction:column;margin:0}
.mapcard a{display:block;line-height:0}
.mapcard img{width:100%;height:auto;display:block}
html:not(.light) .mapcard img{filter:invert(.92) hue-rotate(180deg) saturate(.72) brightness(.95)}
.mapcard figcaption{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:12px 18px;border-top:1px solid var(--line);
  font-family:var(--disp);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);
}
.mapcard .mapattr{letter-spacing:.02em;color:var(--faint);text-transform:none;font-family:var(--body);font-size:11px;white-space:nowrap}
.mapcard .mapattr a{color:var(--faint);border-bottom:1px solid transparent}
.mapcard .mapattr a:hover{color:var(--gold);border-color:var(--gold)}

@media(max-width:820px){
  .info-grid{grid-template-columns:1fr}
}

/* ---------- responsive grid for the catalogue cards ---------- */
@media(max-width:1024px){#catalogues .g3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){#catalogues .g3{grid-template-columns:1fr}}

/* ---------- footer trim ---------- */
.foot-brand img{width:170px;margin-bottom:20px}
.foot-brand .lgt{display:none}
html.light .foot-brand .lgt{display:block}
html.light .foot-brand .lgd{display:none}
.foot-grid{grid-template-columns:1.5fr 1fr 1fr 1.1fr}
.foot-addr p{color:var(--muted);font-size:14px;margin:0 0 10px}
.foot-addr a{display:inline;padding:0;border-bottom:1px solid var(--gold)}
.foot-addr a:hover{color:var(--gold)}
@media(max-width:820px){.foot-grid{grid-template-columns:1fr 1fr;gap:32px}}
@media(max-width:520px){.foot-grid{grid-template-columns:1fr}.foot-bot{flex-direction:column;gap:14px;align-items:flex-start}}

/* the German tricolour rule from the banner artwork */
.derule{height:3px;width:132px;border-radius:2px;margin-bottom:14px;
  background:linear-gradient(90deg,#000 0 33.3%,#DD0000 33.3% 66.6%,#FFCE00 66.6% 100%)}
html.light .derule{background:linear-gradient(90deg,#17130E 0 33.3%,#DD0000 33.3% 66.6%,#E8B000 66.6% 100%)}

/* ============================================================
   LIGHT MODE, the hero stays a dark band, matching how the main
   site keeps its hero, pin-cards and statement bands dark.
   Re-pin the tokens locally and set colour so it actually cascades.
   ============================================================ */
html.light .hero-cat{
  --text:#F5F1E8; --muted:#CFC9BE; --faint:#A8A296; color:var(--text);
  --gold:#DCAF50; --gold-hi:#EBD08A; --gold-deep:#C8870A; --gold-tint:rgba(220,175,80,.10);
  --line:#26262C; --line-2:#33333B;
  border-bottom-color:transparent;
}
html.light .hero-cat .btn.ghost{border-color:rgba(255,255,255,.28)}
html.light .cat .pm{background:#F1ECE1}

/* ============================================================
   TOUCH BEHAVIOUR
   Android paints a translucent flash over anything tapped, and because a tap
   also counts as a hover, the card and button hover states stayed stuck on
   afterwards. Kill the flash, keep hover for pointers only, and give keyboard
   users a real focus ring instead of the browser default.
   ============================================================ */
a,button,summary,[role="button"]{-webkit-tap-highlight-color:transparent}

@media(hover:none){
  .card:hover{transform:none;border-color:var(--line)}
  .card.cat:hover{border-color:var(--line)}
  .cat:hover .pm img,.cat:hover.wide .pm img{transform:none}
  .btn:hover{background:transparent;color:var(--gold);border-color:var(--gold);
    transform:none;box-shadow:none}
  .btn.solid:hover{background:var(--metal);color:#120d02;border-color:transparent;
    box-shadow:0 6px 18px rgba(200,135,10,.3)}
  .btn.ghost:hover{border-color:var(--line-2);color:var(--text)}
  .rback:hover{background:transparent;color:var(--muted)}
  .mapcard figcaption a:hover{border-color:transparent}
}

:focus{outline:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.btn:focus-visible{outline-offset:2px}

/* The "\2192" glyph sits low in its own box in this typeface, so the arrow read
   as off-centre even though the box was centred. An SVG is aligned by geometry. */
.btn .arr{display:inline-flex;align-items:center;justify-content:center}
.btn .arr svg{display:block}

/* map caption: at narrow widths both halves wrapped into each other */
.mapcard figcaption{line-height:1.45;row-gap:4px}
.mapcard .mapattr{line-height:1.45}
@media(max-width:560px){
  .mapcard figcaption{flex-direction:column;align-items:flex-start;gap:6px;padding:12px 16px 14px}
}

/* Live event copy stays crisp at every size without altering the supplied artwork. */
.event-art{position:relative;container-type:inline-size}
.event-art picture,.event-art img{display:block}
.event-headline{position:absolute;left:6.5%;top:48%;width:43%;padding-left:2%;border-left:2px solid #e3bb54;color:#fff;font-family:'Big Shoulders',sans-serif;font-size:3.5cqw;line-height:1.1;font-weight:700;text-transform:uppercase}
.event-headline span{color:#e3bb54}
.event-banner-details{display:flex;flex-direction:column;gap:6px;padding:18px 22px;border-top:1px solid #d8af5038;background:#101113;color:#eee8dc;font-size:12px;line-height:1.5}
.event-banner-details strong{color:#e8c774;font-size:14px;font-weight:500}
.info-grid .event-venues p+p{margin-top:18px}
@media(max-width:640px){.event-banner-details{padding:14px 16px}.event-banner-details strong{font-size:13px}}
