/* ═══════════════════════════════════════════════════════════════
   Âme du Pain · styles.css
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #171210;
  --ink-deep: #100C0A;
  --ink-soft: #1A1511;
  --cream: #F6F0E4;
  --cream-2: #FBF7EF;
  --cream-text: #F5EEE0;
  --cream-mid: #EDE4D2;
  --gold: #A8773F;
  --gold-hover: #C08F4F;
  --gold-soft: #C9A36B;
  --gold-pale: #D9B987;
  --body: #4A4034;
  --muted: #6B5E4A;
  --muted-2: #8A7B63;
  --dark-muted: #A99C86;
  --dark-body: #C7BCA8;
  --dark-label: #9A8B72;
  --hairline: rgba(26, 21, 17, 0.10);
  --hairline-dark: rgba(245, 238, 224, 0.13);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--cream-2); }
img { display: block; max-width: 100%; }
a { transition: color .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease; }
button { font-family: var(--sans); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ── Type helpers ─────────────────────────────────────────── */
.kicker {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.kicker--light { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.5px; text-wrap: balance; }
.display { font-size: clamp(33px, 4.2vw, 50px); line-height: 1.07; margin-top: 16px; }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01s !important; }
  .hero__loafslot, .hero__oven, .stamp, .stamp__spin { animation: none; }
}

/* ═══ NAV ═════════════════════════════════════════════════── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: rgba(23, 18, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245, 238, 224, 0.08);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand img { width: 92px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  text-decoration: none; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dark-body); font-weight: 400;
}
.nav__links a:hover { color: var(--gold-pale); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; border: 1px solid rgba(245, 238, 224, 0.18); border-radius: 3px; padding: 3px; }
.lang-btn {
  cursor: pointer; background: transparent; border: none; border-radius: 2px;
  font-size: 11px; letter-spacing: 1px; color: var(--dark-label); font-weight: 400;
  padding: 5px 8px; transition: all .2s;
}
.lang-btn.is-on { background: rgba(168, 119, 63, 0.95); color: var(--ink); font-weight: 600; }
.nav__cta {
  text-decoration: none; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; background: var(--gold);
  padding: 12px 22px; border-radius: 2px;
}
.nav__cta:hover { background: var(--gold-hover); }

.nav__toggle {
  display: none; cursor: pointer; background: none; border: none;
  width: 40px; height: 40px; position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--cream-text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(23, 18, 16, 0.98); padding: 120px 40px 40px;
  flex-direction: column; gap: 26px;
}
body.nav-open .mobile-menu { display: flex; }
.mobile-menu a {
  text-decoration: none; font-family: var(--serif); font-size: 34px; color: var(--cream-text);
}
.mobile-menu a:hover { color: var(--gold-pale); }

/* ═══ HERO ════════════════════════════════════════════════── */
.hero {
  background: var(--ink); color: var(--cream-text);
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero__speckle {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(rgba(245, 238, 224, 0.13) 1px, transparent 1.5px),
    radial-gradient(rgba(245, 238, 224, 0.07) 1.5px, transparent 2px),
    radial-gradient(rgba(217, 185, 135, 0.10) 1px, transparent 1.5px);
  background-size: 120px 120px, 190px 190px, 260px 260px;
  background-position: 0 0, 60px 80px, 130px 30px;
}
/* the oven light the loaf sits in */
.hero__oven {
  position: absolute; left: 50%; top: 56%; z-index: 0;
  width: min(1180px, 142vw); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(196, 138, 68, 0.30), rgba(168, 119, 63, 0.15) 38%,
    rgba(120, 78, 38, 0.06) 56%, transparent 70%);
  animation: ovenPulse 11s ease-in-out infinite;
}
.hero__seeds { position: absolute; inset: 0; pointer-events: none; }
.hero__seeds--back { z-index: 1; }
.hero__seeds--front { z-index: 3; }

.hero__stage {
  position: relative; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: clamp(84px, 10vh, 116px) 24px clamp(52px, 6.5vh, 76px);
  text-align: center;
}
.hero__kickrow {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: clamp(16px, 2.4vh, 28px);
  animation: floatUp .8s .04s ease both;
}
.hero__kickrow span:first-child, .hero__kickrow span:last-child {
  height: 1px; width: clamp(26px, 6vw, 70px); background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__kickrow span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero__kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; }

.hero__title { margin: 0; font-size: clamp(38px, 6.4vw, 78px); line-height: 1.0; letter-spacing: -0.012em; }
.hero__line { display: block; position: relative; z-index: 4; text-wrap: balance; }
.hero__line { animation: floatUp .9s .12s ease both; }
.hero__line--low { animation-delay: .3s; }
.hero__line em { font-style: italic; color: var(--gold-pale); }

/* the loaf leads, the sentence reads whole underneath it */
.hero__loafslot {
  display: block; position: relative; z-index: 2;
  width: clamp(280px, 46vw, 620px);
  margin: 0 auto clamp(-20px, -1.2vw, -2px);
  animation: loafIn 1.15s .18s cubic-bezier(.2, .72, .2, 1) both,
             loafBreathe 11s 1.4s ease-in-out infinite;
}
.hero__loaf {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.hero__p {
  position: relative; z-index: 4;
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; color: var(--dark-body);
  max-width: 540px; margin: clamp(22px, 3vh, 32px) auto clamp(28px, 3.8vh, 40px);
  text-wrap: pretty;
  animation: floatUp .9s .42s ease both;
}
.hero__actions {
  position: relative; z-index: 4;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: floatUp .9s .54s ease both;
}
.btn-solid {
  text-decoration: none; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); font-weight: 500; background: var(--cream-text);
  padding: 16px 30px; border-radius: 2px;
}
.btn-solid:hover { background: #fff; }
.btn-ghost {
  text-decoration: none; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cream-text); font-weight: 400; border: 1px solid rgba(245, 238, 224, 0.35);
  padding: 16px 30px; border-radius: 2px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-pale); }

.stamp {
  position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(24px, 5vh, 62px);
  z-index: 4; width: 112px; height: 112px;
  animation: floatSoft 9s ease-in-out infinite;
}
.stamp__spin { position: absolute; inset: 0; animation: spinSlow 24s linear infinite; }
.stamp svg { width: 100%; height: 100%; display: block; }
.stamp__letter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 30px; color: var(--cream-text);
}

@keyframes ovenPulse { 0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes loafIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes loafBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.014); } }

@keyframes floatUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ═══ MARQUEE ═════════════════════════════════════════════── */
.marquee {
  background: var(--gold); color: var(--ink); overflow: hidden; padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; white-space: nowrap; }
.marquee__run { display: flex; align-items: center; }
.marquee__word { font-family: var(--serif); font-style: italic; font-size: 22px; padding: 0 6px; letter-spacing: 0.5px; }
.marquee__star { font-style: normal; color: rgba(0, 0, 0, 0.4); padding: 0 18px; font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ SECTIONS ════════════════════════════════════════════── */
.sec { padding: 112px 0; }
.sec--tight { padding: 84px 0; }
.sec--paper { background: var(--cream-2); border-top: 1px solid rgba(26, 21, 17, 0.07); }
.sec--dark { background: var(--ink); color: var(--cream-text); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.sec-head--left { text-align: left; margin: 0 0 52px; max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head--left .sec-head__main { max-width: 560px; }
.sec-head__intro { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 360px; }
.sec--dark .sec-head__intro { color: var(--dark-body); }

/* ── Valors ───────────────────────────────────────────────── */
.valors-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.valor { padding: 8px 38px; text-align: center; border-right: 1px solid var(--hairline); }
.valor:last-child { border-right: none; }
.valor__num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); margin-bottom: 18px; }
.valor__title { font-size: 25px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.2px; }
.valor__text { font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ── Product grid ─────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.prod {
  background: #fff; border: 1px solid rgba(26, 21, 17, 0.09); border-radius: 4px;
  padding: 30px 30px 24px; display: flex; flex-direction: column; min-height: 210px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(26, 21, 17, 0.25); }
.prod__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.prod__name { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: 0.2px; }
.prod__tag {
  flex-shrink: 0; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(168, 119, 63, 0.4);
  padding: 5px 9px; border-radius: 2px; white-space: nowrap; font-weight: 500;
}
.prod__desc { font-size: 14.5px; line-height: 1.7; color: var(--muted); flex: 1; }
.prod__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline);
}
.prod__price { font-family: var(--serif); font-size: 22px; color: var(--ink-soft); }
.prod__add {
  cursor: pointer; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 500; background: transparent;
  border: 1px solid rgba(168, 119, 63, 0.45); padding: 9px 16px; border-radius: 2px;
  transition: all .2s ease;
}
.prod__add:hover { background: var(--gold); color: var(--ink); }
.prod__add.is-in { background: var(--gold); color: var(--ink); }

/* ── Rioplatense ──────────────────────────────────────────── */
.riopla-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.riopla-cards { display: grid; gap: 20px; }
.riopla-card {
  background: rgba(245, 238, 224, 0.035); border: 1px solid var(--hairline-dark);
  border-radius: 4px; padding: 28px 30px;
}
.riopla-card__name { font-size: 26px; font-weight: 600; letter-spacing: 0.2px; color: var(--cream-text); margin-bottom: 12px; }
.riopla-card__desc { font-size: 14.5px; line-height: 1.7; color: var(--dark-muted); }
.riopla-photos { display: grid; gap: 16px; }
.riopla-photos img { width: 100%; border-radius: 4px; object-fit: cover; }
.riopla-photos img:first-child { height: 240px; }
.riopla-photos img:last-child { height: 300px; }
.riopla-sub { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--dark-label); }

/* ── Nosaltres ────────────────────────────────────────────── */
.nos-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.nos-media { position: relative; }
.nos-media > img { width: 100%; height: 440px; object-fit: cover; border-radius: 4px; }
.nos-badge {
  position: absolute; right: -22px; bottom: -22px; width: 160px; height: 160px;
  background: var(--ink); color: var(--cream-text); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
}
.nos-badge strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 46px; line-height: 1; color: var(--gold-pale); }
.nos-badge span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark-body); margin-top: 8px; }
.nos-text h2 { margin-bottom: 28px; }
.nos-text p { font-size: 16.5px; line-height: 1.8; margin-bottom: 22px; }
.nos-sign { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.nos-sign .name { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink-soft); }
.nos-sign .line { height: 1px; width: 40px; background: var(--gold); }
.nos-sign .role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); }

/* ── Galeria ──────────────────────────────────────────────── */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gal-grid figure { overflow: hidden; border-radius: 4px; margin: 0; position: relative; }
.gal-grid img { width: 100%; height: 300px; object-fit: cover; transition: transform .8s ease; }
.gal-grid figure:hover img { transform: scale(1.045); }
.gal-grid figure.wide { grid-column: span 2; }
.gal-grid figure.wide img { height: 340px; }

/* ── Testimonis ───────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.testi { text-align: center; padding: 0 8px; }
.testi__mark { font-family: var(--serif); font-size: 38px; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.testi__text { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.5; color: var(--cream-mid); margin-bottom: 24px; text-wrap: pretty; }
.testi__author { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark-label); }

/* ═══ ENCÀRRECS ═══════════════════════════════════════════── */
.enc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.enc-col { display: grid; gap: 28px; }

.cake-card { background: var(--ink); color: var(--cream-text); border-radius: 4px; padding: 34px 32px 30px; }
.cake-card__title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; color: var(--gold-pale); letter-spacing: 0.3px; }
.cake-card__sub { font-size: 13.5px; line-height: 1.6; color: var(--dark-muted); margin: 7px 0 22px; }
.cake-tabs { display: flex; gap: 6px; border: 1px solid rgba(245, 238, 224, 0.16); border-radius: 3px; padding: 4px; margin-bottom: 28px; }
.cake-tab {
  cursor: pointer; flex: 1; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 500; padding: 11px 8px; border: none; border-radius: 2px;
  background: transparent; color: var(--dark-label); transition: all .2s;
}
.cake-tab.is-on { background: var(--gold); color: var(--ink); }
.cake-steps { display: flex; flex-direction: column; gap: 24px; }
.cake-step__label { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.cake-step__num { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); min-width: 18px; }
.cake-step__name { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer; font-size: 13px; letter-spacing: 0.2px; padding: 9px 15px; border-radius: 2px;
  background: rgba(245, 238, 224, 0.05); color: #E8DFCD; border: 1px solid rgba(245, 238, 224, 0.22);
  font-weight: 400; transition: all .18s;
}
.chip:hover { border-color: var(--gold-soft); }
.chip.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }
.cake-lamina { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.cake-lamina__note { font-size: 12px; line-height: 1.5; color: var(--muted-2); font-style: italic; }
.cake-summary { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(245, 238, 224, 0.14); }
.cake-summary__label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.cake-summary__text { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--cream-mid); margin-top: 9px; text-wrap: pretty; }
.cake-note { font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.5; color: var(--muted-2); margin-top: 18px; }

/* selection (cart) */
.sel-card { background: #fff; border: 1px solid var(--hairline); border-radius: 4px; padding: 30px 30px 26px; }
.sel-card h3 { font-size: 26px; font-weight: 600; margin-bottom: 18px; color: var(--ink-soft); }
.sel-empty { font-size: 14.5px; color: var(--muted); }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.cart-row__name { flex: 1; display: flex; flex-direction: column; }
.cart-row__name span { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.cart-row__name small { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.cart-row__qty { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  cursor: pointer; width: 28px; height: 28px; border-radius: 2px; border: 1px solid rgba(26, 21, 17, 0.2);
  background: transparent; color: var(--ink-soft); font-size: 15px; line-height: 1;
  transition: all .2s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num { min-width: 26px; text-align: center; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.cart-row__amount { font-family: var(--serif); font-size: 18px; color: var(--ink-soft); min-width: 72px; text-align: right; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; }
.cart-total span:first-child { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); }
.cart-total span:last-child { font-family: var(--serif); font-size: 28px; color: var(--ink-soft); }

/* form */
.form-card { background: #fff; border: 1px solid var(--hairline); border-radius: 4px; padding: 36px 34px; }
.form-card h3 { font-size: 26px; font-weight: 600; margin-bottom: 24px; color: var(--ink-soft); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; background: #FAF6EC; border: 1px solid rgba(26, 21, 17, 0.16); border-radius: 2px;
  padding: 13px 14px; color: var(--ink-soft); font-family: var(--sans); font-size: 15px; outline: none;
  transition: border-color .25s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-field input.is-error, .form-field textarea.is-error { border-color: #B04A2E; }
.form-field textarea { resize: vertical; }
.form-submit {
  cursor: pointer; margin-top: 6px; width: 100%; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink); font-weight: 500; background: var(--gold);
  border: none; padding: 16px; border-radius: 2px; transition: background .25s;
}
.form-submit:hover { background: var(--gold-hover); }
.form-note { font-size: 12px; line-height: 1.6; color: var(--muted-2); text-align: center; margin-top: 14px; }
.form-or { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.form-or span:nth-child(2) { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #A39177; }
.form-or span:nth-child(odd) { flex: 1; height: 1px; background: var(--hairline); }
.form-direct { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.form-direct a {
  text-decoration: none; font-size: 12px; letter-spacing: 1px; color: var(--ink-soft); font-weight: 500;
  border: 1px solid rgba(26, 21, 17, 0.22); padding: 11px 18px; border-radius: 2px;
}
.form-direct a:hover { border-color: var(--gold); color: var(--gold); }
.enc-sent { text-align: center; padding: 42px 8px; }
.enc-sent__title { font-family: var(--serif); font-style: italic; font-size: 42px; color: var(--gold); margin-bottom: 18px; }
.enc-sent p { font-size: 16px; line-height: 1.7; }
.enc-sent a {
  display: inline-block; margin-top: 22px; text-decoration: none; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
  background: var(--gold); padding: 13px 24px; border-radius: 2px;
}
.enc-sent a:hover { background: var(--gold-hover); }

/* ═══ ON SOM ══════════════════════════════════════════════── */
.onsom-grid { display: grid; grid-template-columns: 1fr 1fr; }
.onsom-info { padding: 104px 56px; display: flex; flex-direction: column; justify-content: center; }
.onsom-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark-label); margin-bottom: 10px; }
.onsom-block { margin-bottom: 34px; }
.onsom-addr { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--cream-mid); }
.hores__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(245, 238, 224, 0.10); max-width: 380px; }
.hores__day { font-size: 15px; color: var(--dark-body); }
.hores__dots { flex: 1; border-bottom: 1px dotted rgba(245, 238, 224, 0.20); transform: translateY(-4px); }
.hores__time { font-size: 15px; color: var(--cream-mid); }
.onsom-contacts { display: flex; gap: 40px; flex-wrap: wrap; }
.onsom-contacts a { text-decoration: none; font-family: var(--serif); font-size: 22px; color: var(--cream-mid); }
.onsom-contacts a:hover { color: var(--gold-pale); }
.onsom-map { position: relative; min-height: 520px; }
.onsom-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* ═══ FOOTER ══════════════════════════════════════════════── */
.footer { background: var(--ink-deep); color: var(--dark-body); padding: 70px 0 40px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start;
  padding-bottom: 48px; border-bottom: 1px solid rgba(245, 238, 224, 0.10);
}
.footer__logo { width: 180px; opacity: 0.9; margin: 0 0 18px -6px; }
.footer__tag { font-size: 14px; line-height: 1.75; color: var(--muted-2); max-width: 320px; }
.footer__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark-label); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { text-decoration: none; font-size: 15px; color: var(--dark-body); font-weight: 300; }
.footer__links a:hover { color: var(--gold-pale); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; }
.footer__legal { font-size: 12.5px; color: var(--muted); }
.footer__italic { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* ═══ CART FAB ════════════════════════════════════════════── */
.cart-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: 15px 24px; border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: background .25s, transform .25s;
}
.cart-fab:hover { background: var(--gold-hover); }
.cart-fab__star { font-size: 16px; line-height: 1; }
.cart-fab__label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.cart-fab__count {
  font-weight: 600; font-size: 12px; background: var(--ink); color: var(--gold-pale);
  border-radius: 20px; padding: 2px 8px; display: none;
}
.cart-fab.has-items .cart-fab__count { display: inline-block; }
.cart-fab.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ═══ RESPONSIVE ══════════════════════════════════════════── */
@media (max-width: 980px) {
  .hero__stage { padding: 104px 22px 76px; }
  .stamp { display: none; }
  .riopla-grid, .nos-grid, .enc-grid, .onsom-grid { grid-template-columns: 1fr; }
  .onsom-info { padding: 84px 32px; }
  .onsom-map { min-height: 380px; }
  .test-grid { grid-template-columns: 1fr; gap: 40px; }
  .valors-grid { grid-template-columns: 1fr; gap: 8px; }
  .valor { border-right: none; border-bottom: 1px solid var(--hairline); padding: 30px 12px; }
  .valor:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nos-badge { right: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .sec { padding: 76px 0; }
  .hero { min-height: 92svh; }
  .hero__stage { padding: 96px 20px 66px; }
  .hero__kicker { font-size: 11px; letter-spacing: 3px; }
  .hero__loafslot { margin-bottom: -18px; }
  /* dues fotos petites es perden al mòbil: en queda una, més gran */
  .riopla-photos img:first-child { display: none; }
  .riopla-photos img:last-child { height: 360px; object-position: center; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-grid figure.wide { grid-column: span 1; }
  .gal-grid img, .gal-grid figure.wide img { height: 230px; }
  .cart-fab { right: 16px; bottom: 16px; padding: 13px 18px; }
  .cart-fab__label { display: none; }
}
