/* Raleway (variable, 400–700), allotjada en local */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/raleway-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/raleway-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Masia de Queralt — estils base */
:root {
  --gold: #e2ca50;
  --gold-dark: #bba52f;
  --ink: #141414;
  --dark: #1d1d1d;
  --muted: #555;
  --bg: #fff;
  --bg-soft: #f6f4ee;
  --radius: 4px;
  --container: 1200px;
  --header-h: 60px;
  --font: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* El giny d'Avaibook (pàgines de reserva) treu el subratllat de tots els enllaços: es manté el nostre */
body a { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 100px) 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.title { color: var(--gold); font-size: clamp(28px, 3.4vw, 40px); }
.title--xl { font-size: clamp(34px, 5vw, 56px); }
.subtitle { color: var(--gold); font-size: 20px; }
.lead { font-size: 20px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Botons */
.btn { display: inline-block; padding: 10px 28px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--gold:hover { background: #a08c22; border-color: #a08c22; }
.section--dark .btn { border-color: #fff; }
/* Un botó principal i enllaços secundaris al costat */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.arrow-link { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow-link::after { content: '→'; display: inline-block; margin-left: .4em; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Capçalera */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); width: min(100% - 32px, 1360px); margin-inline: auto; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: clamp(8px, 2vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a, .nav__label { display: block; padding: 8px 4px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); cursor: default; }
.nav__item > a { cursor: pointer; }
.nav__item > a:hover, .nav__item.is-active > a, .nav__item.is-active > .nav__label { color: #8a8a8a; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav__toggle svg, .lang__btn svg { width: 12px; height: 8px; }
.nav__sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transition: opacity .15s; }
.nav__sub a { display: block; padding: 10px 20px; font-size: 15px; text-decoration: none; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--bg-soft); color: var(--gold-dark); }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-radius: 8px; background: #333; color: #fff; font: 500 14px var(--font); cursor: pointer; }
.lang__list { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 8px; min-width: 150px; display: none; }
.lang.is-open .lang__list { display: block; }
.lang__list a { display: block; padding: 8px 16px; font-size: 14px; text-decoration: none; }
.lang__list a[aria-current] { font-weight: 700; color: var(--gold-dark); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
  :root { --header-h: 52px; }
  .logo img { height: 38px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 32px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid #eee; }
  .nav__item > a, .nav__label { flex: 1; padding: 14px 0; font-size: 18px; }
  .nav__toggle { display: block; }
  .nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
  .nav__sub { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; width: 100%; display: none; padding: 0 0 8px 12px; }
  .nav__item.is-open .nav__sub { display: block; }
  .has-sub:hover .nav__sub { opacity: 1; }
  .lang { margin-top: 24px; align-self: flex-start; }
  .lang__list { position: static; display: none; box-shadow: none; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: -1; }
.hero__content { max-width: 640px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); color: #fff; margin-bottom: .3em; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; }

/* Capçalera de les pàgines interiors: més baixa, amb el títol a baix i un degradat perquè es llegeixi */
.hero--page { min-height: clamp(340px, 60vh, 560px); align-items: flex-end; padding-block: clamp(32px, 6vw, 64px); }
.hero--page::before { background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 70%); }
.hero--page .hero__content { max-width: 820px; }
.hero--page h1 { font-size: clamp(32px, 4.6vw, 56px); }
.hero--page p { margin: 0; }
/* Portada en mòbil: la masia és a la dreta de la foto; s'enquadra allà i el text baixa perquè no la tapi */
@media (max-width: 820px) {
  .hero--home { min-height: min(calc(100svh - var(--header-h)), 760px); align-items: flex-end; padding-bottom: 40px; }
  .hero--home .hero__bg { object-position: 78% 50%; }
  .hero--home::before { background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 70%); }
}
/* Text d'introducció sota la capçalera: centrat a l'escriptori, a l'esquerra al mòbil perquè es llegeixi millor */
@media (max-width: 600px) { .intro { text-align: left; } }


/* Blocs imatge + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Façana del vídeo: foto pròpia + botó; el reproductor de YouTube es carrega en prémer */
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__play img { width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video__play:hover img, .video__play:focus-visible img { opacity: 1; }
.video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(20,20,20,.8); transition: background .2s; }
.video__icon::after { content: ''; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: #c00; }
.gallery-after { margin-top: clamp(32px, 5vw, 56px); }

/* Targetes «per a cada ocasió» */
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.cards--pair { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); max-width: 820px; margin-inline: auto; }
.card a { display: block; height: 100%; text-decoration: none; background: var(--bg-soft); transition: box-shadow .2s; }
.card a:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { margin: 18px 20px 6px; font-size: 21px; color: var(--ink); }
.card p { margin: 0 20px 20px; font-size: 16px; color: var(--muted); }

/* Ressenyes de Google: carrusel horitzontal que es llisca */
.stars { display: inline-block; vertical-align: -1px; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, var(--gold-dark) calc(var(--r) / 5 * 100%), #d6d2c4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reviews__score { font-size: 17px; color: var(--muted); }
.reviews__score strong { color: var(--ink); }
.reviews__list { list-style: none; margin: 32px 0 0; padding: 4px 4px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 85%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.review { display: flex; flex-direction: column; scroll-snap-align: start; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.review__text { margin: 14px 0 16px; flex: 1; }
.review__text p { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 8; line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review__author { margin: 0; font-weight: 600; font-size: 15px; }
.review__author a { text-decoration: none; }
.review__author time { font-weight: 400; color: var(--muted); }
.review__meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.reviews__cta { justify-content: center; margin: 24px 0 0; }

/* Dues columnes amb foto, títol i text */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.actions .btn { margin: 4px; }

/* Disponibilitat */
.availability { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.availability__divider { width: 2px; align-self: stretch; background: #fff; }
.availability__box { background: #fff; color: var(--ink); padding: 20px; min-height: 120px; }
.availability h2:not(.title) { font-size: 20px; color: #fff; text-align: center; }
@media (max-width: 820px) { .availability { grid-template-columns: 1fr; } .availability__divider { display: none; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery--dense { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gallery__item { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--masonry { display: block; columns: 4 220px; column-gap: 12px; }
.gallery--masonry .gallery__item { aspect-ratio: auto; margin-bottom: 12px; break-inside: avoid; }

/* Serveis (icones) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; max-width: 900px; margin: 40px auto 0; text-align: center; }
.services li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 18px; }
.services svg { width: 64px; height: 64px; fill: var(--gold); color: var(--gold); }
@media (max-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }

.checklist { padding-left: 1.2em; }
.checklist li { margin-bottom: .35em; }
.checklist strong { font-weight: 700; }
/* Llistes llargues a tota l'amplada, sota un bloc .split */
.checklist--cols { columns: 3 260px; column-gap: clamp(32px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.checklist--cols li { break-inside: avoid; }

/* Habitacions */
.rooms { display: grid; gap: clamp(32px, 5vw, 56px); }
.room { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.room:nth-child(even) > :first-child { order: 2; }
.room img { width: 100%; aspect-ratio: 718 / 468; object-fit: cover; }
.room h2 { color: var(--gold); font-size: clamp(32px, 4vw, 56px); margin-bottom: .3em; }
.room dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 18px; }
.room dt { font-weight: 600; }
.room dd { margin: 0; }
@media (max-width: 820px) { .room { grid-template-columns: 1fr; } .room:nth-child(even) > :first-child { order: 0; } }

/* Curiositats */
.facts { display: grid; gap: clamp(40px, 6vw, 72px); }
.fact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.fact:nth-child(even) > :first-child { order: 2; }
.fact__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); margin-bottom: .4em; }
.fact__imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fact__imgs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 820px) { .fact { grid-template-columns: 1fr; } .fact:nth-child(even) > :first-child { order: 0; } }

/* Llista de llocs propers */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; list-style: none; padding: 0; }
.places li { background: #fff; padding: 20px 22px; border-left: 3px solid var(--gold); font-size: 16px; }
.places strong { display: block; font-size: 18px; margin-bottom: 4px; }
.places a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold-dark); text-underline-offset: 3px; }

/* Formulari */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #bbb; border-radius: var(--radius); background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form button { justify-self: start; border: 0; cursor: pointer; font: 600 16px var(--font); padding: 12px 36px; background: var(--ink); color: #fff; border-radius: var(--radius); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.map { width: 100%; aspect-ratio: 16 / 7; border: 0; display: block; min-height: 320px; }

.partners { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }

/* Peu */
.site-footer { background: #fff; border-top: 1px solid #eee; padding: 56px 0 24px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.site-footer__title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.site-footer__col p { margin-bottom: 20px; }
.site-footer__logo { width: 110px; margin: 0 auto 8px; }
.site-footer address { font-style: normal; }
.site-footer address a { text-decoration: underline; font-weight: 600; }
.social { display: flex; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 0 0 24px; }
.social img { width: 30px; height: 30px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 auto; max-width: 400px; align-items: center; }
.badges li { flex: 0 0 calc((100% - 30px) / 4); }
.badges img { width: 100%; max-height: 72px; object-fit: contain; }
.site-footer__seo { margin-top: 32px; font-size: 12px; color: #777; text-align: center; }
.site-footer__legal { text-align: center; font-size: 13px; color: #444; margin-top: 16px; padding-inline: 16px; }
.site-footer__legal p { margin: 4px 0; }
.site-footer__legal a { font-weight: 700; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotant */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* Fletxa per tornar a dalt, sobre el WhatsApp; apareix en baixar */
.to-top { position: fixed; right: 31px; bottom: 94px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, visibility .25s, transform .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 16px; }
.lightbox__close { top: 8px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Text legal */
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose a { word-break: break-word; }
.legal { font-size: 16px; }
.legal mark { background: #fde68a; padding: 0 4px; }
.legal__updated { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #ddd; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.prose td:first-child { word-break: break-word; min-width: 140px; }

/* Avís de galetes */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.22); font-size: 15px; }
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 320px; margin: 0; }
.cookies__actions { display: flex; gap: 10px; flex: none; }
.cookies .btn { cursor: pointer; font: 600 15px var(--font); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; list-style: none; padding: 0; margin: 0 0 8px; }

/* Contingut extern (mapa) abans de carregar-lo */
.embed { display: grid; place-items: center; background: var(--bg-soft); text-align: center; padding: 24px 16px; }
.embed__placeholder { max-width: 560px; font-size: 15px; }
.embed__placeholder .btn { cursor: pointer; font: 600 15px var(--font); margin: 4px; }

/* Informació bàsica de protecció de dades del formulari */
.form__legal { font-size: 13px; color: var(--muted); line-height: 1.45; border-top: 1px solid #ddd; padding-top: 16px; }
.form__legal p { margin: 0 0 .4em; }
.form__legal ul { list-style: none; padding: 0; margin: 0 0 .6em; }
/* La insígnia de reCAPTCHA queda sota el botó de WhatsApp: s'amaga i el formulari mostra l'avís que Google demana */
.grecaptcha-badge { visibility: hidden; }

.hero--short { min-height: 520px; justify-content: center; }
.hero--short::before { background: rgba(0,0,0,.1); }
.hero__card { background: #fff; color: var(--ink); padding: clamp(28px, 5vw, 56px); text-align: center; margin-inline: auto; max-width: 620px; }
.hero__card p { font-weight: 600; font-size: 16px; }

/* Pàgina d'error 404: foto a tota pantalla amb el text a l'esquerra */
.hero--404 { min-height: clamp(560px, calc(100svh - var(--header-h)), 900px); }
.hero--404::before { background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.4) 50%, rgba(0,0,0,.05)); }
.hero--404 .hero__content { max-width: 560px; }
.hero p.hero__code { font-size: clamp(96px, 16vw, 190px); font-weight: 700; line-height: .85; letter-spacing: -.04em; color: var(--gold); margin: 0 0 .15em; }
.hero__actions .btn { margin: 4px 8px 4px 0; }
.hero__actions .btn:not(.btn--gold) { background: transparent; border-color: #fff; color: #fff; }
.hero__actions .btn:not(.btn--gold):hover { background: #fff; color: var(--ink); }
.notfound__help { margin: 48px 0 0; }
.notfound__help a { color: var(--gold-dark); font-weight: 600; }
@media (max-width: 820px) {
  .hero--404 { align-items: flex-end; padding-bottom: 48px; }
  .hero--404::before { background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.35) 60%, rgba(0,0,0,.1)); }
}
.room__specs { list-style: none; padding: 0; margin: 0; font-size: 20px; display: grid; gap: 6px; }
.room__specs strong { font-weight: 600; }
.partner { flex: 1 1 320px; max-width: 460px; }
.partner__logo { margin: 0 auto 16px; max-height: 210px; width: auto; }
/* Contacte: a l'esquerra el títol i, a sota, les fotos, que s'allarguen fins al final del formulari */
.contact { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "intro form" "imgs form"; gap: 28px clamp(32px, 6vw, 80px); }
.contact__intro { grid-area: intro; }
.contact__intro p:last-child { margin-bottom: 0; }
.contact .form { grid-area: form; align-self: start; }
.contact-imgs { grid-area: imgs; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 340px; }
.contact-imgs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "form" "imgs"; }
  .contact-imgs { min-height: 0; }
  .contact-imgs img { height: auto; aspect-ratio: 3 / 4; }
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.form__check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.form.was-validated :invalid { border-color: #c0392b; outline-color: #c0392b; }
.form button:disabled { opacity: .6; cursor: wait; }
.form__status { margin: 0; font-size: 16px; }
.form__status[data-type="ok"] { color: #1e7b34; font-weight: 600; }
.form__status[data-type="error"] { color: #c0392b; }

/* Preguntes freqüents */
.faq details { border-bottom: 1px solid #e5e1d3; }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }
.faq a { color: var(--ink); text-decoration-color: var(--gold-dark); text-underline-offset: 3px; }
/* Per a qui triï allotjament a l'inici */
.ideal { font-size: 17px; }
.ideal + .btn { margin-top: 8px; }
/* Condicions de reserva: etiqueta a l'esquerra, text a la dreta */
.conditions { list-style: none; padding: 0; margin: 0; font-size: 17px; }
.conditions li { display: grid; grid-template-columns: 11em 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid #e5e1d3; }
.conditions li:last-child { border-bottom: 0; }
.conditions strong { font-weight: 600; }
@media (max-width: 600px) { .conditions li { grid-template-columns: 1fr; } }

/* Animacions (només si l'usuari no ha demanat menys moviment) */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

  /* Entrada en fer scroll (les classes les posa main.js) */
  .reveal { opacity: 0; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); will-change: opacity, transform; }
  .reveal--up { transform: translateY(32px); }
  .reveal--zoom { transform: scale(.94); }
  .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

  /* Portada: la foto s'apropa lentament i el text puja en cascada */
  .hero:not(.hero--short) .hero__bg { animation: kenburns 18s var(--ease-out) both; }
  @keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
  .hero:not(.hero--short) .hero__content > * { animation: rise .9s var(--ease-out) both; }
  .hero:not(.hero--short) .hero__content > :nth-child(2) { animation-delay: .15s; }
  .hero:not(.hero--short) .hero__content > :nth-child(3) { animation-delay: .3s; }
  .hero:not(.hero--short) .hero__content > :nth-child(4) { animation-delay: .45s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  /* Capçalera */
  .site-header { transition: box-shadow .3s; }
  .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
  .nav__item > a, .nav__label { position: relative; transition: color .2s; }
  .nav__item > a::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--gold-dark); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
  .nav__item > a:hover::after, .nav__item.is-active > a::after { transform: scaleX(1); }
  .lang.is-open .lang__list { animation: drop .2s var(--ease-out); }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* Botons i targetes */
  .btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
  .btn:active { transform: none; box-shadow: none; }
  .card a { overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease-out); }
  .card a:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
  .card img { transition: transform .6s var(--ease-out); }
  .card a:hover img { transform: scale(1.05); }
  .gallery__item img { transition: transform .6s var(--ease-out), filter .3s; }
  .gallery__item:hover img { transform: scale(1.06); }
  .video__icon { transition: background .2s, transform .3s var(--ease-out); }
  .video__play:hover .video__icon, .video__play:focus-visible .video__icon { transform: translate(-50%, -50%) scale(1.12); }
  .places li { transition: transform .3s var(--ease-out), box-shadow .3s; }
  .places li:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
  .services svg { transition: transform .4s var(--ease-out); }
  .services li:hover svg { transform: translateY(-4px) scale(1.08); }
  .social a { display: block; transition: transform .2s var(--ease-out); }
  .social a:hover { transform: translateY(-3px); }

  /* Preguntes freqüents: s'obren amb suavitat (navegadors que ho suporten) */
  @supports selector(::details-content) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* WhatsApp: apareix i fa uns quants polsos per cridar l'atenció */
  .whatsapp-float { animation: pop .5s 1.2s var(--ease-out) backwards; }
  .whatsapp-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2s 2.5s 3 ease-out both; pointer-events: none; }
  @keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
  @keyframes pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

  /* Lightbox */
  .lightbox:not([hidden]) { animation: fade .25s ease-out; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  @media (min-width: 1081px) {
    .nav__sub { translate: 0 8px; transition: opacity .2s, visibility .2s, translate .25s var(--ease-out); }
    .has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { translate: 0 0; }
  }
  @media (max-width: 1080px) {
    .nav__item > a::after { display: none; }
    body.menu-open .nav__item, body.menu-open .lang { animation: slide-in .4s var(--ease-out) both; }
    body.menu-open .nav__item:nth-child(2) { animation-delay: .04s; }
    body.menu-open .nav__item:nth-child(3) { animation-delay: .08s; }
    body.menu-open .nav__item:nth-child(4) { animation-delay: .12s; }
    body.menu-open .nav__item:nth-child(5) { animation-delay: .16s; }
    body.menu-open .nav__item:nth-child(6) { animation-delay: .2s; }
    body.menu-open .nav__item:nth-child(7) { animation-delay: .24s; }
    body.menu-open .nav__item:nth-child(n+8), body.menu-open .lang { animation-delay: .28s; }
    @keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  }
}
