/* ═══════════════════════════════════════════════════════════
   VERDUNO AUSTRALIA — SHARED SITE STYLES

   SIZING RULES FOR THIS SITE
   • No fixed pixel layout values. Spacing, type and widths use
     rem, %, vw or clamp() so everything scales with the screen
     and with the visitor's own font-size setting.
   • Grids use auto-fit + minmax(min(100%, Xrem), 1fr) so columns
     collapse on their own — they never overflow a narrow screen.
   • Breakpoints are in em, not px, so they respond to zoom too.
   • The only px left in this file are hairline borders (1px),
     where a fractional rem would render blurry.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --black: #0a0a0a;
  --dark: #111111;
  --charcoal: #1c1c1c;
  --mid: #2e2e2e;
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-muted: #888;

  /* Fluid layout scale — everything below derives from these */
  --nav-height: clamp(4.25rem, 6.5vw, 5.75rem);  /* bar height */
  --gutter:     clamp(1.25rem, 4vw, 3.75rem);    /* page side padding */
  --section-y:  clamp(3.5rem, 7vw, 6.25rem);     /* section top/bottom */
  --gap-lg:     clamp(2rem, 5vw, 5rem);          /* major column gap */
  --gap-md:     clamp(1.5rem, 3vw, 2.75rem);     /* minor column gap */
  --max-width:  87.5rem;                         /* content max (1400px) */
  --hair: rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  padding-top: var(--nav-height);   /* the nav is solid, so content starts below it */
  overflow-x: hidden;               /* belt and braces against sideways scroll */
}

img { max-width: 100%; }

/* Safety net: every photo fills its frame and is cropped to fit, so a source
   of any dimension or aspect ratio can never letterbox, stretch or overflow.
   Each container below sets its own aspect-ratio; this guarantees the fill. */
.tile img,
.panel-head img,
.product-media img,
.value img,
.story-img,
.custom-img,
.season-img,
.one-img,
.about-img,
.sourcing-img,
.sourcing-img-small img { object-fit: cover; display: block; width: 100%; }

/* Layered backgrounds (stock photo over local fallback) never tile */
.page-header, .menu-tile-bg { background-repeat: no-repeat; }

/* ── PHOTO AUDIT BADGE ──
   A numbered marker on every photo, for identifying which images still need
   a better source. Switch the whole thing off with PHOTO_AUDIT in site.js. */
.photo-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 30;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: help;
  pointer-events: auto;
}

/* Photography lives in images/ — see images/README.md for the list.
   Any file not supplied yet renders as a dark panel of the correct size
   rather than a broken-image icon, so layout and labels stay intact.
   site.js swaps a failed src for a blank SVG and adds .img-placeholder. */
img[src^="images/"] {
  background:
    linear-gradient(135deg, #17140f 0%, #241f14 55%, #131110 100%);
}
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(201,168,76,0.05) 0 0.5rem, transparent 0.5rem 1rem),
    linear-gradient(135deg, #17140f 0%, #241f14 55%, #131110 100%);
}

/* Anchor jumps land below the fixed nav rather than under it */
section[id], [id].anchor-target { scroll-margin-top: calc(var(--nav-height) + 1.5rem); }

/* ═══════════════ NAV ═══════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* links · logo · links */
  align-items: center;
  gap: var(--gap-md);
  padding-inline: var(--gutter);
  min-height: var(--nav-height);
  background: var(--black);              /* fully opaque */
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
nav.scrolled { border-bottom-color: rgba(201,168,76,0.3); }

/* Logo — centre column */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
  justify-self: center;
  min-width: 0;
}
.nav-logo svg {
  /* the mark is taller than it is wide, so height leads and width follows */
  height: clamp(1.85rem, 3.2vw, 2.7rem);
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  letter-spacing: 0.1em;
  color: var(--white);
  white-space: nowrap;
}

/* Page links — spread evenly across each half of the bar */
.nav-side {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-evenly;   /* even spacing right across the width */
  min-width: 0;
}

.nav-item { position: static; }

.nav-link {
  display: block;
  padding: 1em 0.5em;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.6rem, 0.95vw, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-link.current { color: var(--gold); }

/* ── MOBILE MENU BUTTON & PANEL ── */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.6em;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--white);
  margin: 0.35rem 0;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }

.mob-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10,10,10,0.99);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 1.5rem var(--gutter) 3.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mob-menu.open { display: block; }
.mob-group { border-bottom: 1px solid var(--hair); padding: 1.1rem 0; }
.mob-page {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
/* ═══════════════ SHARED SECTION STYLES ═══════════════ */
section { padding: var(--section-y) var(--gutter); }

.section-inner { max-width: var(--max-width); margin-inline: auto; }

.section-label {
  font-size: clamp(0.55rem, 0.8vw, 0.62rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2em;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.4em;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.divider {
  width: 3.75rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.9rem;
}
.section-intro {
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  color: rgba(255,255,255,0.65);
  max-width: 42ch;
  line-height: 2;
  margin-bottom: var(--gap-lg);
}

/* Standard page header banner used by all interior pages */
.page-header {
  position: relative;
  padding: var(--section-y) var(--gutter);
  text-align: center;
  background: var(--black);
}
.page-header .section-title { margin-bottom: 0.25em; }
.page-header .divider { margin-inline: auto; }
.page-header .section-intro { margin-inline: auto; margin-bottom: 0; }

/* ═══════════════ CATEGORY TABS (product pages) ═══════════════
   Book-divider style tabs used by meat.html, truffle-caviar.html
   and misc.html. Add a <button class="tab" data-tab="id"> to the
   strip and a matching <div class="tab-panel" id="id"> below it —
   site.js wires up the rest. Tabs share the width evenly and start
   scrolling sideways only once they'd become unreadably narrow.
   ════════════════════════════════════════════════════════════ */
.catalogue { background: var(--dark); padding: 0; }

.tab-strip-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  background: var(--black);
  padding-inline: clamp(0.5rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid rgba(201,168,76,0.4);
}
.tab-strip {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding-top: clamp(0.75rem, 1.6vw, 1.4rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }

/* Each tab is a book divider sticking up out of the page edge */
.tab {
  position: relative;
  flex: 1 1 0;                            /* equal share of the width */
  min-width: clamp(5.5rem, 11vw, 11rem);  /* …until this floor, then scroll */
  text-align: center;
  border: 1px solid rgba(201,168,76,0.28);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  color: rgba(255,255,255,0.68);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: clamp(0.9rem, 1.8vw, 1.45rem) 0.75em clamp(1rem, 1.9vw, 1.55rem);
  cursor: pointer;
  transition: all 0.25s ease;
  bottom: -1px;                           /* sit on the strip's baseline */
}
.tab:hover { color: var(--gold-light); background: rgba(201,168,76,0.09); }

/* Active tab joins the page below — its bottom edge is erased */
.tab.active {
  background: var(--charcoal);
  color: var(--gold);
  border-color: rgba(201,168,76,0.6);
  padding-top: clamp(1.15rem, 2.3vw, 1.85rem);  /* taller, as if pulled out of the book */
  box-shadow: 0 -0.2rem 0.9rem rgba(0,0,0,0.45);
}
.tab.active::after {
  content: '';
  position: absolute;
  left: 1px; right: 1px; bottom: -1px;
  height: 2px;
  background: var(--charcoal);
}

/* ── PANELS ── */
.tab-panel { display: none; background: var(--charcoal); }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(2.75rem, 5.5vw, 5rem) clamp(1.25rem, 2.5vw, 2.5rem) clamp(3.5rem, 7vw, 6.25rem);
}
.panel-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--gap-lg);
  align-items: center;
  margin-bottom: var(--gap-lg);
}
.panel-head img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
  display: block;
}
.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.35em;
}
.panel-title em { font-style: italic; color: var(--gold-light); }
.panel-intro { font-size: clamp(0.78rem, 1.1vw, 0.86rem); color: rgba(255,255,255,0.6); line-height: 2; }

/* ── PRODUCT TILES ── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 3px;
}
.type {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(201,168,76,0.32);
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.type:hover { background: rgba(201,168,76,0.065); }

/* Photo across the top of each tile, sitting under the gold border and
   darkened to the same degree as the tiles elsewhere on the site. */
.type-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  filter: brightness(0.62) grayscale(22%);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.type:hover .type-img { filter: brightness(0.78) grayscale(0%); transform: scale(1.04); }

/* A hairline of gold under the photo ties it to the tile's top border */
.type-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
/* …and the image fades into the tile's own background rather than cutting off */
.type-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(28,28,28,0.55));
  pointer-events: none;
}

.type-body {
  flex: 1 1 auto;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) clamp(1.4rem, 2.6vw, 2.6rem) clamp(1.7rem, 3vw, 2.7rem);
}
.type-grade {
  font-size: clamp(0.56rem, 0.85vw, 0.64rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.type-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.45em;
}
.type-desc { font-size: clamp(0.74rem, 1vw, 0.82rem); color: rgba(255,255,255,0.55); line-height: 2; }
.type-cuts {
  margin-top: 1.3em;
  padding-top: 1em;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: clamp(0.66rem, 0.9vw, 0.74rem);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.9;
}
.type-cuts strong {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85em;
  display: block;
  margin-bottom: 0.5em;
}

.panel-note {
  margin-top: var(--gap-md);
  padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.4rem, 2.6vw, 2.2rem);
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(201,168,76,0.04);
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  color: rgba(255,255,255,0.62);
  line-height: 2;
}
.panel-note a { color: var(--gold); text-decoration: none; }
.panel-note a:hover { color: var(--gold-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 1.1em 2.6em;
  font-size: clamp(0.6rem, 0.85vw, 0.68rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn-solid { background: var(--gold); color: var(--black); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── SHARED CTA BAND ── */
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 0.4em;
}
.cta-title em { font-style: italic; color: var(--gold-light); }
.cta-text {
  font-size: clamp(0.76rem, 1vw, 0.82rem);
  color: rgba(255,255,255,0.55);
  max-width: 46ch;
  margin: 0 auto var(--gap-md);
  line-height: 2;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: var(--section-y) var(--gutter) clamp(2rem, 4vw, 2.5rem);
}
.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.footer-brand p {
  font-size: clamp(0.7rem, 0.95vw, 0.76rem);
  color: var(--text-muted);
  line-height: 2;
  max-width: 34ch;
  margin-top: 1.4em;
}
.footer-col h4 {
  font-size: clamp(0.55rem, 0.8vw, 0.62rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7em; }
.footer-col ul li a {
  font-size: clamp(0.7rem, 0.95vw, 0.76rem);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: clamp(0.58rem, 0.8vw, 0.65rem); color: rgba(255,255,255,0.2); }
.footer-legal { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal:hover { color: var(--gold); }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--text-muted);
  font-size: clamp(0.6rem, 0.85vw, 0.68rem);
  letter-spacing: 0.15em;
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); }
.social-link svg { width: 1.15rem; height: 1.15rem; }

/* ═══════════════ BREAKPOINTS (em-based, so they follow zoom) ═══════════════
   Most layout adapts on its own via clamp() and auto-fit grids.
   The one thing that genuinely needs a switch is swapping the nav
   for the mobile menu.
   ═══════════════════════════════════════════════════════════════════════ */

/* ~860px — nav collapses to the mobile menu */
@media (max-width: 53.75em) {
  .nav-side { display: none; }
  .nav-toggle { display: block; grid-column: 3; }
  .nav-logo { grid-column: 2; }
}

/* ~380px — reclaim room on very small phones */
@media (max-width: 23.75em) {
  .nav-logo-text { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
