/* Demo Forn Sant Joan / Pastisseria Trens · papel de estraza + tinta chocolate + caramelo torrado.
   Base tintada de tono medio (ninguna demo la usaba). AA: el caramelo #A8672A es decorativo
   (año 1785, rombos, filetes); para texto pequeño sobre estraza va #7A4718 y los botones a #8A5220. */

:root {
  --estraza: #E4D7C0;
  --crema: #F4EBDA;
  --tinta: #2A1F16;
  --secundario: #6B5847;
  --linea: #C9B695;
  --caramelo: #A8672A;        /* decorativo */
  --caramelo-btn: #8A5220;    /* fondo de botón (AA con crema) */
  --caramelo-btn-h: #6E4014;
  --caramelo-texto: #7A4718;  /* texto pequeño/enlaces sobre estraza (AA) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--estraza);
  color: var(--tinta);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
a { color: var(--caramelo-texto); }

/* cinta de propuesta */
.cinta {
  background: var(--tinta);
  color: var(--estraza);
  text-align: center;
  font-size: 13px;
  padding: 8px 14px;
}
.cinta strong { color: #D8A566; font-weight: 600; }

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(228, 215, 192, 0.86);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--linea);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.wordmark { text-decoration: none; color: var(--tinta); display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; }
.wordmark .nom { font-family: 'EB Garamond', serif; font-weight: 700; font-size: 22px; line-height: 1.05; }
.wordmark .sub { font-size: 10px; letter-spacing: 0.22em; color: var(--secundario); margin-top: 2px; }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 4px 12px; text-decoration: none; color: var(--tinta);
  font-weight: 600; font-size: 15px;
}
nav a:hover { color: var(--caramelo-texto); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 26px; border-radius: 999px;
  background: var(--caramelo-btn); color: var(--crema);
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid var(--caramelo-btn);
}
.btn:hover { background: var(--caramelo-btn-h); border-color: var(--caramelo-btn-h); }
.btn-ghost { background: transparent; color: var(--caramelo-texto); border: 2px solid var(--caramelo-btn); }
.btn-ghost:hover { background: rgba(138, 82, 32, 0.09); color: var(--caramelo-texto); }
.btn-nav { min-height: 44px; padding: 8px 18px; font-size: 15px; }

.menu-toggle {
  display: none; width: 48px; height: 48px;
  border: 1px solid var(--linea); border-radius: 10px; background: var(--crema);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--tinta); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--crema);
    border-bottom: 1px solid var(--linea); padding: 8px 18px 18px;
  }
  nav.abierto { display: flex; }
  nav a { min-height: 48px; }
  nav .btn-nav { margin-top: 8px; justify-content: center; }
}

/* hero: mitad superior a dos columnas + mitad inferior banda de fotos */
.hero-top { padding: 52px 18px 44px; }
.hero-grid { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
}
.kicker {
  color: var(--caramelo-texto);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.19em; text-transform: uppercase;
  margin: 0 0 16px;
}
.hero-top h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.hero-top .sub { color: var(--secundario); font-size: 18px; margin: 0 0 26px; max-width: 26em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.any {
  font-family: 'EB Garamond', serif; font-weight: 700;
  font-size: clamp(120px, 18vw, 200px); line-height: 0.9;
  color: var(--caramelo); opacity: 0.9; text-align: center; letter-spacing: -0.02em;
  user-select: none;
}
@media (max-width: 899px) { .any { font-size: clamp(96px, 34vw, 150px); } }

.hero-fotos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.hero-fotos img { width: 100%; height: 240px; object-fit: cover; }
@media (max-width: 640px) { .hero-fotos img { height: 150px; } }

/* separador */
.separador { position: relative; height: 1px; background: var(--linea); margin: 0 18px; }
.separador::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--caramelo);
}

/* secciones */
section { padding: 60px 18px; scroll-margin-top: 92px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.panel-alt { background: var(--crema); }
h2 { font-size: clamp(27px, 3.8vw, 40px); }
.seccion-texto p { color: var(--secundario); max-width: 40em; }
.seccion-texto p strong { color: var(--tinta); }

/* la casa: texto antes que gráfico en móvil */
.split { display: flex; flex-direction: column; gap: 34px; }
@media (min-width: 900px) { .split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } }
.split figure { margin: 0; }
.split figure img { border: 1px solid var(--linea); width: 100%; }

/* el producte */
.productes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .productes { grid-template-columns: repeat(4, 1fr); } }
.producte { background: var(--crema); border: 1px solid var(--linea); padding: 10px 10px 14px; }
.panel-alt .producte { background: var(--estraza); }
.producte img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.producte h3 { font-size: 18px; font-weight: 600; margin: 12px 4px 0; line-height: 1.25; }

/* opinions */
.opinions { background: var(--tinta); color: var(--crema); text-align: center; }
.opinions .nota { font-family: 'EB Garamond', serif; font-weight: 700; font-size: clamp(82px, 13vw, 140px); line-height: 1; margin: 0; }
.opinions .estrella { color: var(--caramelo); font-size: 0.5em; vertical-align: 0.35em; margin-left: 10px; }
.opinions .detalle { color: #C6B7A2; font-size: 17px; margin-top: 10px; }

/* on som */
.on-som .wrap { display: flex; flex-direction: column; gap: 30px; }
@media (min-width: 900px) { .on-som .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; } }
.contacte { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.contacte a { display: inline-flex; align-items: center; min-height: 44px; font-size: 21px; font-weight: 600; color: var(--tinta); text-decoration: none; }
.contacte a:hover { color: var(--caramelo-texto); }
.horari-caixa { background: var(--crema); border: 1px solid var(--linea); padding: 24px 26px; }
.horari-caixa h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.horari-caixa .fila { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; padding: 6px 0; }
.horari-caixa .nota { color: var(--secundario); font-size: 13.5px; margin: 12px 0 0; }

/* footer */
footer { background: var(--tinta); color: #C6B7A2; text-align: center; padding: 32px 18px; font-size: 14px; line-height: 2; }
footer a { color: var(--crema); }
