/* Proposta A — Evolució. Mòbil primer. */
:root {
  --paper: #fffdf8;
  --sand: #f7f0e3;
  --ink: #2a2420;
  --muted: #5f564d;
  --orange: #f19700;          /* color de marca (fons i detalls) */
  --orange-ink: #8f4f00;      /* orange per a text sobre clar (AA) */
  --teal: #379fa6;            /* color de marca */
  --teal-deep: #1b5f65;       /* teal per a text i fons fosc (AA) */
  --teal-soft: #e3f3f4;
  --line: #e6dccb;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(42, 36, 32, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-underline-offset: .2em; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section--sand { background: var(--sand); }
.lead { font-size: 1.15rem; color: var(--muted); }
.pending { background: #fff1c9; color: #5a3d00; padding: 0 .3em; border-radius: 4px; font-size: .92em; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 99; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Botons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font: 700 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn--main { background: var(--orange); color: #2a1700; }
.btn--main:hover { background: #ffad2e; color: #2a1700; }
.btn--ghost { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn--ghost:hover { background: var(--teal-deep); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--teal-deep); }

/* Capçalera */
.topbar { background: var(--teal-deep); color: #fff; font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; }
.lang { display: flex; gap: 4px; }
.lang a { text-decoration: none; padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.lang a[aria-current="true"] { background: #fff; color: var(--teal-deep); }
.site-head { background: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { width: 170px; mix-blend-mode: multiply; }
.nav-toggle { background: none; border: 2px solid var(--ink); border-radius: 10px; min-height: 44px; padding: 0 14px; font: 700 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 14px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-ink); }
.nav a.btn { display: inline-flex; margin-top: 16px; width: 100%; padding: 0 1.4rem; border: 2px solid transparent; color: #2a1700; }
.nav a.btn--main:hover, .nav a.btn--main[aria-current] { background: #ffad2e; color: #2a1700; }

/* Hero */
.hero { background: var(--sand); }
.hero__grid { display: grid; gap: 28px; padding: 32px 0 40px; }
.hero__text .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .98rem; }
.hero__meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; }

/* Menú del dia */
.daily { margin-top: -8px; }
.daily__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.daily__head { background: var(--orange); color: #2a1700; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.daily__head h2 { margin: 0; font-size: 1.7rem; }
.daily__date { font-weight: 700; }
.daily__cols { display: grid; gap: 0; }
.daily__col { padding: 20px; border-bottom: 1px solid var(--line); }
.daily__col h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; color: var(--teal-deep); margin-bottom: .6em; }
.daily__col ul { margin: 0; padding: 0; list-style: none; }
.daily__col li { padding: 7px 0; line-height: 1.4; }
.daily__col li + li { border-top: 1px dashed var(--line); }
.daily__foot { display: grid; gap: 14px; padding: 18px 20px; background: var(--teal-soft); }
.prices { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.prices strong { font: 700 2rem var(--serif); color: var(--teal-deep); }
.prices span { color: var(--muted); }
.daily__foot p { margin: 0; font-size: .98rem; color: var(--ink); }

/* Destacats */
.cards { display: grid; gap: 20px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__date { color: var(--orange-ink); font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); }
.card a.more { margin-top: auto; font-weight: 700; }

/* Banquets */
.split { display: grid; gap: 28px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none; color: var(--ink); min-height: 44px; }
.chips a:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

/* Opinions */
.quotes { display: grid; gap: 20px; margin-top: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { font-weight: 700; color: var(--teal-deep); }
.rating { color: var(--orange-ink); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 8px; }

/* Contacte */
.contact { display: grid; gap: 32px; }
.info { list-style: none; margin: 0 0 20px; padding: 0; }
.info li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info b { display: block; font-size: .95rem; color: var(--muted); font-weight: 600; }
.info a.tel { font: 700 1.6rem var(--serif); text-decoration: none; }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .98rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 2px solid #b9ad9a; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Peu */
.site-foot { background: var(--teal-deep); color: #e9f6f7; padding: 36px 0 28px; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot small { color: #cfe6e8; }

/* Menú de noces */
.page-title { background: var(--sand); padding: 36px 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .95rem; margin-bottom: 12px; color: var(--muted); }
.menu-layout { display: grid; gap: 32px; padding: 40px 0 56px; }
.menu-side { background: var(--teal-soft); border-radius: var(--radius); padding: 22px; align-self: start; order: -1; }
.menu-side .btn { width: 100%; margin-top: 10px; }
.menu-side .price { font: 600 2rem var(--serif); color: var(--teal-deep); margin: 0 0 4px; }
.menu-sec { margin-bottom: 40px; }
.menu-sec > h2 { border-bottom: 3px solid var(--orange); padding-bottom: 8px; display: inline-block; }
.menu-sec h3 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: var(--teal-deep); margin: 26px 0 8px; }
.dishes { list-style: none; margin: 0; padding: 0; columns: 1; }
.dishes li { padding: 8px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; line-height: 1.45; }
.dishes small { color: var(--muted); }
.cakes { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.cakes li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cakes b { display: block; font-family: var(--serif); font-size: 1.1rem; }
.cta-band { background: var(--teal-deep); color: #fff; border-radius: var(--radius); padding: 28px 22px; margin-top: 16px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f3f4; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 720px) {
  .wrap { width: min(1160px, 100% - 64px); }
  .section { padding: 80px 0; }
  .daily__cols { grid-template-columns: repeat(3, 1fr); }
  .daily__col { border-bottom: 0; border-right: 1px solid var(--line); }
  .daily__col:last-child { border-right: 0; }
  .daily__foot { grid-template-columns: 1fr auto; align-items: center; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .dishes { columns: 2; column-gap: 32px; }
  .cakes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; border: 0; padding: 0; background: none; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav a { border: 0; padding: 10px 14px; border-radius: 99px; }
  .nav a:hover { background: var(--sand); }
  .nav a.btn { margin: 0 0 0 10px; width: auto; padding: 0 1.4rem; border-radius: 999px; }
  .hero__grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; padding: 56px 0 72px; }
  .hero__img { aspect-ratio: 5 / 4; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .menu-layout { grid-template-columns: 1fr 300px; gap: 56px; }
  .menu-side { position: sticky; top: 100px; order: 2; }
  .cta-band { padding: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Impressió: menú llest per a paper/PDF */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .site-head, .menu-side .btn, .cta-band, .site-foot, .crumbs, .skip, .no-print { display: none !important; }
  .menu-layout { display: block; padding: 0; }
  .menu-side { background: none; padding: 0; margin-bottom: 16px; border: 0; }
  .page-title { background: none; border: 0; padding: 0 0 8px; }
  .print-head { display: block !important; text-align: center; margin-bottom: 14px; }
  .print-head img { width: 220px; margin: 0 auto; }
  .menu-sec { break-inside: avoid-page; margin-bottom: 18px; }
  .dishes li { padding: 4px 0; }
  a { color: #000; text-decoration: none; }
  .pending { background: none; border: 1px dashed #666; color: #000; }
}
.print-head { display: none; }

.price .pending { white-space: normal; font-size: .55em; display: inline-block; line-height: 1.3; }

/* Coneix el Mediterrània: visita virtual + vídeo */
.media-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 860px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.media { margin: 0; }
.media__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.media__frame img, .media__frame iframe, .media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media__frame video { object-fit: contain; background: #000; }
.media__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; cursor: pointer; color: #fff; font: 700 1.05rem var(--sans); background: linear-gradient(to top, rgba(27, 95, 101, .75), rgba(42, 36, 32, .15)); transition: background .2s; }
.media__play:hover { background: linear-gradient(to top, rgba(27, 95, 101, .9), rgba(42, 36, 32, .3)); }
.media__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #2a1700; font-size: 1.15rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.media figcaption { margin-top: 12px; color: var(--muted); font-size: .98rem; }
.media figcaption strong { color: var(--ink); }
.media__note { font-size: .85rem; }
.media__note a { color: inherit; }

/* Components afegits a l'estructura inicial */
.daily__off { text-align: center; padding: 28px; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 20px 0 28px; }
.contact-list dt { font-weight: 700; color: var(--teal-deep); }
.contact-list dd { margin: 0; }
[hidden] { display: none !important; }

.menu-price { font: 700 1.2rem var(--sans); color: var(--orange-ink); margin: 4px 0 0; }
.menu-note { color: var(--muted); font-style: italic; margin: 10px 0 0; }

/* Pàgines interiors */
.crumbs { font-size: .95rem; margin: 0 0 8px; }
.foot-links { display: block; margin: 6px 0; }
.foot-links a { color: inherit; }
.prose { max-width: 760px; padding-block: 28px 20px; }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.1rem; }
.faq p { margin: 10px 0 0; }
.quotes { display: grid; gap: 20px; padding-block: 28px; columns: 1; }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; align-items: start; } }
.quotes blockquote { margin: 0; padding: 20px 22px; background: var(--sand); border-left: 4px solid var(--orange); border-radius: var(--radius); }
.quotes p { margin: 0 0 10px; }
.quotes footer { font-weight: 700; color: var(--teal-deep); }
.carta { padding-block: 28px 56px; }
.carta__list { list-style: none; margin: 0; padding: 0; }
.carta__list li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.carta__list b { white-space: nowrap; color: var(--teal-deep); }
.carta__list .carta__group { display: block; border: 0; padding: 18px 0 4px; font-weight: 800; color: var(--orange-ink); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.gal { list-style: none; margin: 0; padding: 28px 0 56px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gal { grid-template-columns: repeat(4, 1fr); } }
.gal a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal a:hover img { transform: scale(1.04); }
.gal a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.gal--cats a { aspect-ratio: 3 / 2; }
.gal--cats a span { font-size: 1.05rem; }
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lb::backdrop { background: rgba(0, 0, 0, .88); }
.lb img { display: block; max-width: 96vw; max-height: 86vh; margin: auto; border-radius: 8px; }
.lb p { color: #fff; text-align: center; margin: 10px 0 0; min-height: 1.4em; }
.lb__bar { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.lb__bar button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: 700 1rem var(--sans); cursor: pointer; }

/* Formulari de contacte */
.cform { max-width: 640px; margin: 36px 0; padding: 24px; background: var(--sand); border-radius: var(--radius); display: grid; gap: 14px; }
.cform h2 { margin: 0; }
.cform label { display: block; font-weight: 600; }
.cform input:not([type=checkbox]), .cform textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: 400 1rem/1.5 inherit; background: #fff; color: var(--ink); }
.cform input:focus, .cform textarea:focus { border-color: var(--teal-deep); outline: none; }
.cform__consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cform__consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.cform__hp { position: absolute; left: -9999px; }
.cform__msg { margin: 0; font-weight: 600; }
.cform__msg.is-ok { color: #1d6b3a; }
.cform__msg.is-err { color: #a12a1a; }
