/* Landing y página legal de Nativa. Colores y fuentes: variables --n-* de tema.css (se carga antes).
   Traslado a CSS sin Tailwind de los componentes de la web original de Nativa (Hero, About, Location...). */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--n-bg);
  color: var(--n-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* height: auto para que mande aspect-ratio y no el atributo height del HTML (que solo reserva el hueco) */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

.shell {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.text-suau {
  color: var(--n-ink-soft);
}

.titol-seccio {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.targeta {
  background: var(--n-card);
  border: 1px solid var(--n-wood);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.enllac {
  display: inline-block;
  border-bottom: 1px solid var(--n-wood);
  padding-bottom: 2px;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------- botones */

.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.botones-centro {
  justify-content: center;
  margin-top: 0;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.875rem 1.625rem;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-verd,
.btn-verd:hover {
  background: var(--n-green-deep);
  color: var(--n-bg);
}

.btn-verd:hover {
  background: var(--n-green);
}

.btn-crema,
.btn-crema:hover {
  background: var(--n-bg);
  color: var(--n-ink);
}

.btn-contorno,
.btn-contorno:hover {
  border-color: rgb(251 245 234 / 0.7);
  color: var(--n-on-dark);
  background: rgb(var(--n-scrim) / 0.25);
}

/* ------------------------------------------------------------- cabecera */

.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 236 219 / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--n-wood);
}

.l-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 0.75rem;
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--n-ink);
  text-decoration: none;
}

.l-brand:hover {
  color: var(--n-ink);
}

.l-brand img {
  width: 30px;
  height: 30px;
}

.l-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.625rem);
  font-size: 15px;
  margin-left: auto;
}

.l-nav a {
  color: var(--n-ink);
  text-decoration: none;
  padding-block: 4px;
}

.l-nav a:hover {
  color: var(--n-green);
}

.l-nav a {
  border-bottom: 1.5px solid transparent;
}

.l-nav a[aria-current="page"] {
  border-bottom-color: var(--n-accent-bright);
}

.l-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--n-wood);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.7rem;
  font: 700 0.78rem var(--font-sans);
  color: var(--n-ink-soft);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--n-green-deep);
  color: var(--n-bg);
}

@media (max-width: 640px) {
  .l-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .l-header-right {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 780px);
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 50%;
  background: var(--n-bg-alt);
}

@media (min-width: 768px) {
  .hero-media img,
  .hero-media video {
    object-position: center;
  }
}

/* Velo marrón cálido hacia abajo para leer el texto claro sobre cualquier fotograma */
.hero-velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(var(--n-scrim) / 0.82) 0%,
    rgb(var(--n-scrim) / 0.55) 32%,
    rgb(var(--n-scrim) / 0.12) 62%,
    transparent 85%
  );
}

.hero-contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(4rem, 14vh, 8rem);
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
}

.hero-contenido > * {
  max-width: 46ch;
}

.hero-titulo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--n-on-dark);
}

.hero-tagline {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6875rem, 4.4vw, 2.875rem);
  line-height: 1.08;
  color: var(--n-pink-neon);
}

.hero-descripcion {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.15625rem);
  line-height: 1.62;
  color: rgb(251 245 234 / 0.9);
  text-wrap: pretty;
}

/* ------------------------------------------------------------- hojas (máscaras coloreadas con --n-leaf) */

.fulles {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: var(--n-leaf);
  mask-repeat: no-repeat;
}

.fulles-cantonada {
  mask-image: url("/img/leaves-corner-mask.png");
  mask-size: contain;
  mask-position: right bottom;
  top: 0;
  right: 0;
  height: min(62%, 560px);
  width: 92%;
  opacity: 0.3;
  transform: scaleY(-1);
}

@media (min-width: 1024px) {
  .fulles-cantonada {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    height: 88%;
    width: 52%;
    transform: scaleX(-1);
  }
}

.fulles-franja {
  mask-image: url("/img/leaves-border-mask.png");
  mask-size: max(100%, 1200px) auto;
  mask-position: center bottom;
  inset-inline: 0;
  bottom: 0;
  height: clamp(220px, 34vw, 560px);
  opacity: 0.4;
}

/* ------------------------------------------------------------- sobre nosotros */

.about {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--n-wood);
  background: var(--n-bg-alt);
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3.75rem);
  padding-block: clamp(2.5rem, 6vw, 5.25rem);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.about-foto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 72%;
  border-radius: 20px;
}

.about p {
  font-size: 17px;
  line-height: 1.66;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.about-punts {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.about-punts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.about-punts li > span:first-child {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--n-accent-deep);
}

/* ------------------------------------------------------------- take away */

.takeaway {
  padding-block: clamp(2.5rem, 6vw, 5.25rem);
}

.takeaway-targeta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.625rem, 3.5vw, 2.75rem);
}

@media (min-width: 900px) {
  .takeaway-targeta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.takeaway-foto {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.takeaway p {
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 40ch;
  text-wrap: pretty;
}

.destacados {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.destacados li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.destacados img,
.destacado-sin-foto {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--n-bg-alt);
}

.destacado-nombre {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15.5px;
}

.destacado-precio {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.takeaway .btn {
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------- dónde estamos */

.on-som {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--n-wood);
  background: var(--n-bg-alt);
}

.on-som-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.5rem, 6vw, 5.25rem);
  padding-bottom: clamp(5rem, 11vw, 9rem);
}

@media (min-width: 1024px) {
  .on-som-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.on-som-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.on-som .titol-seccio {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  margin-bottom: 1.75rem;
}

.dades {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 16.5px;
  line-height: 1.55;
}

.dades dt {
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--n-ink-soft);
}

.dades dd > .enllac {
  display: block;
  width: fit-content;
  margin-top: 0.5rem;
  font-size: 14.5px;
}

.dades dd > a[data-config-tel] {
  margin-top: 0;
  font-size: inherit;
}

.horario {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 0.5rem 1.5rem;
  font-variant-numeric: tabular-nums;
}

.horario li {
  display: contents;
}

.horario-tramos {
  display: flex;
  flex-direction: column;
  color: var(--n-ink-soft);
}

.mapa {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--n-wood);
  background: var(--n-bg-alt) url("/media/nativa-facana-1200.webp") center / cover;
}

@media (min-width: 1024px) {
  .mapa {
    aspect-ratio: auto;
    min-height: 340px;
  }
}

.mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mapa-boton {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  font: inherit;
  background: rgb(246 236 219 / 0.82);
  backdrop-filter: blur(3px);
}

.mapa-aviso {
  font-size: 13px;
  color: var(--n-ink-soft);
  max-width: 32ch;
  text-align: center;
}

/* ------------------------------------------------------------- cierre */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--n-green-deep) url("/img/vegetacio.jpg") center / cover;
}

.closing-contenido {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7.25rem);
  text-align: center;
}

.closing-tagline,
.closing-titulo {
  text-shadow:
    0 0 3px rgb(var(--n-scrim) / 0.9),
    0 1px 2px rgb(var(--n-scrim) / 0.8),
    0 0 22px rgb(var(--n-scrim) / 0.65);
}

.closing-tagline {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.625rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--n-pink-neon);
}

.closing-titulo {
  margin: 0 auto 26px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 4.6vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--n-on-dark);
}

/* ------------------------------------------------------------- pie */

.l-footer {
  border-top: 1px solid var(--n-wood);
}

.l-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.75rem;
  font-size: 14px;
  color: var(--n-ink-soft);
}

.l-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.l-footer-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--n-ink);
}

.l-footer-marca img {
  width: 38px;
  height: 38px;
}

.l-footer a[data-config-tel] {
  font-weight: 600;
  color: var(--n-ink);
}

/* ------------------------------------------------------------- página legal */

.legal {
  padding-block: clamp(2.125rem, 5.5vw, 4.25rem);
}

.legal-texto {
  max-width: 68ch;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.legal-fecha {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--n-ink-soft);
}

.legal-aviso,
.legal-pendiente-bloque {
  margin-top: 1.5rem;
  border: 1px dashed var(--n-wood);
  border-radius: 18px;
  background: var(--n-card);
  padding: 1rem 1.25rem;
  font-size: 15px;
  line-height: 1.6;
}

.legal-indice {
  margin-top: 2rem;
  border-block: 1px solid var(--n-wood);
  padding-block: 1rem;
}

.legal-indice p {
  margin-bottom: 0.5rem;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n-accent-deep);
}

.legal-indice ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 15.5px;
}

.legal-indice a {
  border-bottom: 1px solid var(--n-wood);
  padding-bottom: 2px;
  text-decoration: none;
}

.legal section {
  margin-top: 3rem;
}

.legal h2 {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--n-accent);
}

.legal h3 {
  margin: 1.75rem 0 0.625rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
}

.legal section p,
.legal section ul {
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.legal section ul {
  padding-left: 1.25rem;
}

.legal section li {
  margin-bottom: 0.5rem;
}

.legal section li::marker {
  color: var(--n-accent-deep);
}

.legal mark {
  border: 1px dashed var(--n-accent-deep);
  border-radius: 6px;
  background: var(--n-accent-soft);
  padding: 0 0.375rem;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--n-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
