/* =========================================================
   Granés Meat Quality — stylesheet
   Maps cleanly to WordPress theme structure:
   - :root tokens  → could live in theme.json / variables.css
   - .site-header  → header.php
   - .site-footer  → footer.php
   - .hero, .pillars, .cats-illustrated, ... → template parts
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --wine-900: #3d1822;
  --wine-800: #4d1f2a;
  --wine-700: #5c1f30;
  --wine-600: #7a2238;
  --wine-500: #a52743;   /* the bright crimson seen on building / icons */
  --wine-400: #b94a63;

  --cream-50:  #f6efdd;
  --cream-100: #ede1c6;
  --cream-200: #e8dcc4;
  --cream-300: #d9c9a8;

  --ink:       #2b1118;
  --paper:     #f6efdd;
  --hairline:  rgba(77,31,42,0.18);

  /* Type */
  --font-display: "Oswald", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;

  --container: 1320px;
  --gutter: 32px;

  --radius-pill: 999px;
  --radius-sm: 4px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-50);
}
img,svg { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; margin: 0; line-height: 1.05; text-transform: uppercase; }
.h-display { font-size: clamp(40px, 5.6vw, 88px); font-weight: 600; letter-spacing: 0.005em; }
.h-section { font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; }
.h-eyebrow { font-family: var(--font-body); text-transform: uppercase; font-size: 12px; letter-spacing: 0.18em; font-weight: 600; }
.body-lead { font-size: 18px; line-height: 1.55; }
.tag-pill {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background .15s, color .15s;
}
.tag-pill:hover { background: var(--wine-700); color: var(--cream-50); border-color: var(--wine-700); }
.btn-pill {
  display: inline-block;
  border: 1.5px solid currentColor;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: background .15s, color .15s;
  background: transparent;
}
.btn-pill:hover { background: currentColor; }
.btn-pill:hover > * { color: var(--wine-700); }
.btn-pill.on-dark:hover { color: var(--wine-700) !important; background: var(--cream-50); border-color: var(--cream-50); }
.btn-pill.on-light:hover { color: var(--cream-50) !important; background: var(--wine-700); border-color: var(--wine-700); }

/* ---------- Header (= header.php) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.site-header.on-light { color: var(--wine-800); }
.site-header.on-dark  { color: var(--cream-50); }
.site-header.is-sticky {
  position: fixed;
  background: var(--wine-800);
  color: var(--cream-50);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.brand { display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.brand svg { width: 110px; height: auto; }
.brand .meat-quality { font-style: italic; font-size: 13px; letter-spacing: 0.02em; margin-top: -6px; padding-left: 4px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 18px;
}
.primary-nav a {
  position: relative;
  font-size: 17px;
  letter-spacing: 0.01em;
  padding-bottom: 6px;
}
.primary-nav a.is-active { font-weight: 700; }
.primary-nav a.is-active::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height: 2px; background: currentColor;
}
.primary-nav a:hover { opacity: .75; }

.lang-toggle {
  display: inline-flex;
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.lang-toggle button.is-active { background: currentColor; }
.lang-toggle button.is-active > span { color: var(--wine-700); }
.site-header.on-light .lang-toggle button.is-active > span { color: var(--cream-50); }
.site-header.is-sticky .lang-toggle button.is-active > span { color: var(--wine-800); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display:block; width:18px; height:1.5px; background: currentColor; position: relative;
}
.menu-toggle span::before { content:""; position:absolute; top:-6px; left:0; right:0; }
.menu-toggle span::after  { content:""; position:absolute; top: 6px; left:0; right:0; }

/* ---------- Footer (= footer.php) ---------- */
.site-footer {
  background: var(--cream-200);
  color: var(--wine-800);
  padding: 96px 0 56px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  /* paper noise feel */
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(rgba(77,31,42,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .9;
  pointer-events:none;
}
.site-footer > * { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.9fr;
  gap: 56px;
}
.footer-col h4 { font-family: var(--font-body); text-transform: none; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.7; }
.footer-col ul { margin:0; padding:0; list-style:none; }
.footer-col .addr-block + .addr-block { margin-top: 18px; }
.footer-col .phones { margin-top: 14px; font-weight: 600; }
.footer-col .phones a { display:block; }
.footer-social {
  display:flex; gap: 10px; margin-top: 18px;
}
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wine-500);
  color: var(--cream-50);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.footer-social a:hover { background: var(--wine-700); }
.footer-social svg { width: 14px; height: 14px; }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: 56px;
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; opacity: .75;
}

/* ---------- Placeholder images ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(77,31,42,0.08) 0 8px, rgba(77,31,42,0.04) 8px 16px),
    var(--cream-200);
  color: var(--wine-800);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(77,31,42,0.12);
  overflow: hidden;
}
.ph::before {
  content: "IMG";
  position: absolute;
  top: 10px; left: 12px;
  font-size: 10px;
  opacity: .6;
  letter-spacing: 0.18em;
}
.ph .ph-label {
  background: rgba(246,239,221,0.85);
  padding: 8px 14px;
  border-radius: 2px;
  max-width: 78%;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, rgba(246,239,221,0.07) 0 8px, rgba(246,239,221,0.03) 8px 16px),
    var(--wine-800);
  color: var(--cream-50);
  border-color: rgba(246,239,221,0.18);
}
.ph.dark::before { color: var(--cream-50); }
.ph.dark .ph-label {
  background: rgba(61,24,34,0.7);
  color: var(--cream-50);
}

/* ============== Page: Home ============== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: var(--cream-50);
  overflow: hidden;
}
.hero .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero .slide.is-active { opacity: 1; }
.hero .slide::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,12,18,0.55) 0%, rgba(38,12,18,0.25) 30%, rgba(38,12,18,0.55) 100%);
}
.hero .ph { width:100%; height:100%; border: 0; }
.hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display:flex; align-items:center; justify-content:center;
  text-align: center;
  flex-direction: column;
  padding-bottom: 80px;
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-ctas { display:flex; gap: 18px; margin-top: 36px; }
.hero-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display:flex; gap: 10px; z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--cream-50);
  background: transparent; padding: 0;
}
.hero-dots button.is-active { background: var(--cream-50); }

/* Pillars row */
.pillars {
  background: var(--cream-200);
  padding: 96px 0;
}
.pillars .grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pillars h2 {
  font-family: var(--font-display);
  color: var(--wine-800);
  text-transform: none;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 16ch;
  margin-bottom: 28px;
  font-weight: 400;
}
.pillars .ctas { display:flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 40px; }
.pillars-icons { display:flex; gap: 22px; flex-wrap: wrap; color: var(--wine-700); }
.pillar-icon { width: 64px; text-align: center; }
.pillar-icon .ico { width: 44px; height: 44px; margin: 0 auto 6px; }
.pillar-icon .lbl { font-size: 10px; line-height: 1.25; }
.pillars .photo { aspect-ratio: 4/5; }

/* Categories illustrated */
.cats-illustrated {
  background: var(--cream-50);
  padding: 100px 0 96px;
}
.cats-illustrated .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.cats-illustrated h2 {
  grid-column: 5 / span 4;
  text-align: center;
  font-family: var(--font-display);
  color: var(--wine-800);
  font-size: clamp(40px, 4vw, 60px);
  text-transform: uppercase;
  margin: 0;
}
.cat-illu {
  display:flex; flex-direction:column; align-items:center; text-align:center;
  color: var(--wine-700);
}
.cat-illu .badge {
  margin-top: 8px;
  background: var(--cream-300);
  color: var(--wine-800);
  padding: 4px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  position: relative;
}
.cat-illu .badge::before,
.cat-illu .badge::after {
  content:""; position:absolute; top:0; bottom:0; width:6px;
  background: var(--cream-300);
  filter: brightness(0.85);
}
.cat-illu .badge::before { left:-6px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 50% 50%); }
.cat-illu .badge::after  { right:-6px; clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%); }
.cat-illu svg { width: 130px; height: 100px; }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 56px;
  margin-top: 16px;
}
.cats-illustrated .actions {
  text-align: center;
  margin-top: 56px;
  display:flex; gap: 28px; justify-content: center;
}
.cats-illustrated .actions a { color: var(--wine-700); }
.cats-illustrated .actions a:not(.tag-pill):hover { text-decoration: underline; }

/* History strip */
.history {
  background: var(--cream-50);
  padding: 80px 0;
}
.history .grid {
  display:grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.history h2 {
  font-family: var(--font-display);
  color: var(--wine-800);
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 28px;
}
.history p { max-width: 44ch; }
.history .photo { aspect-ratio: 4/5; }

/* Values band (dark) */
.values {
  position: relative;
  background: var(--wine-800);
  color: var(--cream-50);
  padding: 80px 0;
  overflow: hidden;
}
.values::before {
  content:"";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(77,31,42,0.7), rgba(77,31,42,0.7));
}
.values .bg-ph {
  position: absolute; inset: 0;
  opacity: .45;
}
.values .inner { position: relative; z-index: 2; }
.values .logomark {
  text-align: center;
  margin-bottom: 56px;
}
.values .logomark svg { width: 96px; margin: 0 auto; fill: var(--cream-50); }
.values-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 56px;
  border-top: 1px solid rgba(246,239,221,0.25);
  border-bottom: 1px solid rgba(246,239,221,0.25);
  padding: 36px 0;
}
.value-item h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.value-item p { font-size: 13.5px; opacity: .82; margin: 6px 0 0; }

/* Providers */
.providers {
  background: var(--cream-50);
  padding: 88px 0;
  text-align: center;
}
.providers h2 {
  font-family: var(--font-display);
  color: var(--wine-800);
  font-size: clamp(34px, 3.2vw, 48px);
  text-transform: uppercase;
  max-width: 14ch;
  margin: 0 auto 24px;
  line-height: 1.05;
}
.providers p { max-width: 52ch; margin: 0 auto 48px; }
.providers .logos {
  display:flex; align-items:center; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.providers .logo-ph {
  width: 130px; height: 56px;
  background: rgba(77,31,42,0.08);
  display:flex; align-items:center; justify-content: center;
  color: var(--wine-800);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

/* Map section */
.map-section {
  position: relative;
  background: var(--wine-700);
  color: var(--cream-50);
  padding: 64px 0 88px;
  overflow: hidden;
}
.map-section::before {
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(246,239,221,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,239,221,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events:none;
}
.map-section .inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  min-height: 580px;
}
.map-section .map-figure {
  position: relative;
  min-height: 520px;
}
.map-section .map-figure .map-blob {
  position: absolute; inset: 0;
  background: var(--wine-500);
  clip-path: polygon(8% 18%, 35% 8%, 58% 14%, 72% 22%, 82% 38%, 90% 60%, 85% 78%, 70% 92%, 48% 96%, 30% 90%, 18% 78%, 6% 60%, 0% 40%);
  mix-blend-mode: normal;
  opacity: 0.95;
}
.map-section .map-pin {
  position: absolute;
  color: var(--cream-50);
  font-size: 13px;
  letter-spacing: 0.02em;
  display:flex; align-items:center; gap: 8px;
}
.map-section .map-pin::before {
  content:""; width: 9px; height: 9px; border-radius: 50%; background: var(--cream-50);
  box-shadow: 0 0 0 4px rgba(246,239,221,0.18);
}
.map-section h2 {
  font-family: var(--font-display);
  color: var(--cream-50);
  font-size: clamp(34px, 3.4vw, 52px);
  text-transform: uppercase;
  max-width: 14ch;
  line-height: 1.05;
}

/* ============== Page: Nosaltres ============== */
.about-hero {
  position: relative;
  background: var(--wine-800);
  color: var(--cream-50);
  min-height: 720px;
  overflow: hidden;
  padding-top: 200px;
  padding-bottom: 80px;
}
.about-hero .bg-ph {
  position:absolute; inset:0;
  opacity: .45;
}
.about-hero .inner { position: relative; z-index: 2; }
.timeline {
  position: relative;
  margin-top: 24px;
}
.timeline .line {
  position: absolute; top: 8px; left: 0; right: 0; height: 1px;
  background: rgba(246,239,221,0.6);
}
.timeline .nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.timeline .node {
  position: relative;
  padding-top: 30px;
}
.timeline .node::before {
  content:""; position:absolute; top: 1px; left: 0;
  width: 14px; height: 14px; border-radius:50%;
  background: var(--cream-50);
  transform: translate(0,-50%);
}
.timeline .year {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.timeline .node.is-active .year { font-weight: 700; }
.timeline .copy {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 32ch;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity .3s;
}
.timeline .node.is-active .copy { opacity: 1; height: auto; }

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4px;
  background: var(--cream-50);
  padding: 0;
}
.about-gallery .ph { aspect-ratio: 3/4; }
.about-gallery .ph.center { aspect-ratio: 16/12; }

.about-info {
  padding: 96px 0;
  background: var(--cream-200);
  position: relative;
}
.about-info::before {
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(77,31,42,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events:none;
}
.about-info .grid {
  position: relative;
  display:grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 48px;
}

/* ============== Page: Catàleg ============== */
.cat-hero {
  background: var(--cream-50);
  padding-top: 200px;
  padding-bottom: 32px;
  text-align: center;
}
.cat-hero .h-display { color: var(--wine-800); }
.cat-hero .sub {
  margin-top: 28px;
}
.cat-hero .sub .btn-pill { color: var(--wine-700); }

.cat-feature {
  background: var(--cream-50);
  padding: 32px 0 80px;
}
.cat-feature .frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
}
.cat-feature .photo { aspect-ratio: 16/7; }

/* Editorial alternating layout (cataleg category index) */
.cat-rows {
  background: var(--cream-50);
  padding: 64px 0 96px;
}
.cat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.cat-row:nth-child(even) .text-col { order: 2; }
.cat-row .text-col h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  text-transform: uppercase;
  color: var(--wine-800);
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 14px;
}
.cat-row .text-col .logo-mini { width: 56px; margin-bottom: 14px; opacity: .85; }
.cat-row .text-col .logo-mini svg { width: 100%; fill: var(--wine-700); }
.cat-row .text-col p { max-width: 44ch; font-size: 15px; line-height: 1.6; }
.cat-row .photo { aspect-ratio: 5/4; }

.cat-bottom {
  background: var(--cream-50);
  padding: 60px 0 80px;
}
.cat-bottom .grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.cat-bottom h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 36px);
  text-transform: uppercase;
  color: var(--wine-800);
  margin-bottom: 16px;
}
.cat-bottom .phones { font-size: 22px; line-height: 1.4; color: var(--wine-700); }
.cat-bottom .email { color: var(--wine-700); font-size: 18px; }

/* Catalog index — cards grid */
.cat-index {
  background: var(--cream-50);
  padding-top: 168px;
  padding-bottom: 96px;
}
.cat-index .head { text-align: center; margin-bottom: 56px; }
.cat-index h1 {
  font-family: var(--font-display);
  color: var(--wine-800);
  font-size: clamp(40px, 4vw, 64px);
  margin-bottom: 16px;
}
.cat-index .head p { max-width: 52ch; margin: 0 auto; color: var(--wine-800); }
.cat-index .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
  color: var(--cream-50);
  background: var(--wine-800);
}
.cat-card .photo {
  position: absolute; inset: 0;
}
.cat-card .photo::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(45,15,25,0.85) 100%);
}
.cat-card .label {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.cat-card .label h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
}
.cat-card .arrow {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cream-50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cat-card:hover .arrow { background: var(--cream-50); color: var(--wine-800); }
.cat-card .arrow svg { width: 14px; height: 14px; }

/* Catalog category detail */
.catdet-hero {
  position: relative;
  background: var(--wine-800);
  color: var(--cream-50);
  padding-top: 200px;
  padding-bottom: 100px;
  overflow: hidden;
}
.catdet-hero .bg-ph { position: absolute; inset: 0; opacity: .35; }
.catdet-hero .inner { position: relative; z-index: 2; display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.catdet-hero .crumbs { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; opacity: .8; }
.catdet-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  margin-bottom: 20px;
}
.catdet-hero p { max-width: 44ch; font-size: 16px; line-height: 1.6; opacity: .92; }
.catdet-hero .specs {
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px 32px;
  margin-top: 36px;
}
.catdet-hero .spec h4 {
  font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; opacity: .65; margin-bottom: 6px;
}
.catdet-hero .spec p { font-size: 14px; margin: 0; }

.product-grid {
  background: var(--cream-50);
  padding: 96px 0;
}
.product-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  color: var(--wine-800);
  margin-bottom: 36px;
}
.product-grid .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card { background: var(--cream-100); }
.product-card .photo { aspect-ratio: 1/1; }
.product-card .meta { padding: 16px 18px 22px; }
.product-card .meta h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--wine-800);
  margin-bottom: 4px;
  letter-spacing: 0;
}
.product-card .meta p { font-size: 13px; color: var(--ink); opacity: .75; margin: 0; }
.product-card .meta .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wine-700);
}

.cta-strip {
  background: var(--wine-800);
  color: var(--cream-50);
  padding: 64px 0;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  margin-bottom: 22px;
}
.cta-strip .btn-pill { color: var(--cream-50); }

/* ============== Page: Contacte ============== */
.contact-page {
  background: var(--cream-200);
  min-height: 100vh;
  padding-top: 0;
  position: relative;
}
.contact-page::before {
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(77,31,42,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events:none;
}
.contact-page > * { position: relative; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  padding-top: 220px;
}
.contact-image {
  position: relative;
  overflow: hidden;
  background: var(--wine-600);
  min-height: 700px;
}
.contact-image .ph {
  width: 100%; height: 100%;
  filter: hue-rotate(-10deg) saturate(0.7);
  border: 0;
}
.contact-image::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(rgba(165,39,67,0.55), rgba(165,39,67,0.55));
  mix-blend-mode: multiply;
}
.contact-form-block {
  padding: 0 64px 96px;
}
.contact-form-block h1 {
  font-family: var(--font-display);
  color: var(--cream-50);
  font-size: clamp(48px, 5vw, 72px);
  margin-bottom: 32px;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 0 var(--cream-50);
  color: #ffffff;
}
.contact-info {
  color: var(--wine-700);
  text-align: center;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 40px;
}
.contact-info a { display:block; }
.contact-info .email { font-size: 22px; margin-top: 8px; }
.contact-intro { text-align: center; color: var(--wine-700); margin-bottom: 32px; max-width: 50ch; margin-left:auto; margin-right:auto; }

.contact-form { display: flex; flex-direction: column; gap: 30px; }
.contact-form .field { position: relative; }
.contact-form label {
  display:block;
  font-size: 18px;
  color: var(--wine-700);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--wine-700);
  background: transparent;
  color: var(--wine-800);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 4px 0 10px;
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 64px; }
.contact-form .row {
  display:flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.captcha-mock {
  width: 240px; height: 60px;
  background: #f7f7f7;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 10px;
  font-size: 13px;
  color: #444;
}
.captcha-mock .box { width: 22px; height: 22px; background: #fff; border: 2px solid #c8c8c8; border-radius: 2px; }
.captcha-mock .logo { margin-left: auto; font-size: 9px; color: #888; text-align:right; line-height:1.2; }
.privacy-check {
  display:flex; align-items:center; gap: 10px;
  color: var(--wine-700);
}
.privacy-check .radio {
  width: 18px; height: 18px; border: 1.5px solid var(--wine-700); border-radius: 50%;
}
.contact-submit {
  margin-top: 8px;
  display:block; width:100%;
  border: 1.5px solid var(--wine-700);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--wine-700);
  padding: 16px;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.contact-submit:hover { background: var(--wine-700); color: var(--cream-50); }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  :root { --gutter: 20px; }

  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--wine-800);
    color: var(--cream-50);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-header.menu-open .primary-nav { max-height: 400px; }
  .primary-nav a {
    width: 100%;
    padding: 16px var(--gutter);
    border-bottom: 1px solid rgba(246,239,221,0.12);
    font-size: 16px;
  }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav .lang-toggle { margin: 16px var(--gutter); }

  .hero { min-height: 560px; height: 80vh; }
  .hero h1 { font-size: 38px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }

  .pillars .grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars .photo { aspect-ratio: 4/3; }

  .cats-illustrated .grid { grid-template-columns: repeat(6, 1fr); }
  .cats-illustrated h2 { grid-column: 1 / -1; margin: 12px 0; font-size: 32px; }
  .cat-illu { grid-column: span 3; }
  .cat-illu svg { width: 100px; height: 80px; }

  .history .grid { grid-template-columns: 1fr; gap: 32px; }
  .history .photo { aspect-ratio: 4/3; }

  .values-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .map-section .inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .map-section .map-figure { min-height: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .about-hero { min-height: 0; padding-top: 140px; padding-bottom: 56px; }
  .timeline .nodes { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .timeline .line { display: none; }
  .timeline .node::before { left: -22px; top: 18px; transform: none; }
  .timeline .node { padding-left: 14px; padding-top: 0; border-left: 1px solid rgba(246,239,221,0.4); margin-left: 14px; }
  .timeline .node .copy { opacity: 1; height: auto; }

  .about-gallery { grid-template-columns: 1fr; }
  .about-gallery .ph,
  .about-gallery .ph.center { aspect-ratio: 4/3; }

  .about-info .grid { grid-template-columns: 1fr; gap: 24px; }

  .cat-index { padding-top: 130px; }
  .cat-index .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card .label h3 { font-size: 22px; }

  .cat-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .cat-row:nth-child(even) .text-col { order: 0; }
  .cat-row .photo { aspect-ratio: 4/3; }

  .cat-bottom .grid { grid-template-columns: 1fr; gap: 32px; }

  .catdet-hero { padding-top: 140px; padding-bottom: 56px; }
  .catdet-hero .inner { grid-template-columns: 1fr; gap: 32px; }
  .catdet-hero h1 { font-size: 56px; }
  .product-grid .grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; padding-top: 140px; }
  .contact-image { min-height: 360px; }
  .contact-form-block { padding: 48px var(--gutter); }
  .contact-form-block h1 { font-size: 40px; }
}

@media (max-width: 520px) {
  .cats-illustrated .grid { grid-template-columns: 1fr 1fr; }
  .cat-illu { grid-column: span 1; }
  .cat-illu svg { width: 90px; height: 70px; }
  .cat-index .grid { grid-template-columns: 1fr; }
  .product-grid .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
