/* Barroso Rural Experience */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --line: #d2d2d7;
  --paper: #fff;
  --mist: #f5f5f7;
  --green: #2f4f3e;
  --green-2: #3d6650;
  --amber: #f5b400;
  --wa: #1faa59;
  --nav-h: 56px;
  --r: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.47; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

h1, h2 { font-weight: 600; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
.eyebrow { font-size: clamp(.95rem, 1.4vw, 1.2rem); font-weight: 600; letter-spacing: .01em; color: rgba(255, 255, 255, .86); margin-bottom: .7em; }
.eyebrow--green { color: var(--green-2); }

/* Botões e links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 400; letter-spacing: -.01em; cursor: pointer; transition: transform .25s var(--ease), background .25s, opacity .25s; }
.btn:hover { background: #3a3a3c; }
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ed; }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #188f4a; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.link { font-size: 17px; font-weight: 400; letter-spacing: -.01em; color: var(--green); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link::after { content: " ›"; display: inline-block; transition: transform .25s var(--ease); margin-left: .15em; }
.link:hover::after { transform: translateX(4px); }
.link--light { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); background: rgba(0, 0, 0, 0); transition: background .4s, backdrop-filter .4s; }
.nav.is-solid, .nav.is-open { background: rgba(18, 18, 20, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; width: min(1180px, 100% - 32px); margin-inline: auto; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a { font-size: 13px; color: rgba(255, 255, 255, .84); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; padding: 6px 6px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .55); cursor: pointer; }
.lang button[aria-pressed="true"] { color: #fff; }
.nav__toggle { display: none; position: relative; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 21px; }
.nav.is-open .nav__toggle span:first-child { top: 17.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 17.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 99; display: flex; flex-direction: column; padding: 28px 28px 40px; background: rgba(18, 18, 20, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.menu[hidden] { display: none; }
.menu a { padding: 12px 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #10161a; color: #fff; display: flex; justify-content: center; text-align: center; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 10, 20, .74) 0%, rgba(0, 10, 20, .5) 40%, rgba(0, 0, 0, .08) 66%, rgba(0, 0, 0, .35) 100%); }
.hero__copy { position: relative; width: min(900px, 100% - 44px); padding-top: clamp(88px, 11.5vh, 130px); will-change: transform, opacity; }
.hero__copy .cta-row { justify-content: center; }
.hero__sub { max-width: 34em; margin: 22px auto 0; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .92); text-wrap: balance; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.js .hero__copy > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.js .hero__copy > :nth-child(2) { animation-delay: .12s; }
.js .hero__copy > :nth-child(3) { animation-delay: .24s; }
.js .hero__copy > :nth-child(4) { animation-delay: .36s; }
.js .hero__media img { animation: settle 2.2s var(--ease) both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

/* Manifesto */
.statement { background: var(--black); padding: clamp(90px, 16vw, 200px) 0; }
.statement__text { width: min(980px, 100% - 44px); margin-inline: auto; font-size: clamp(1.9rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; color: #fff; }
.statement__text .w { color: rgba(255, 255, 255, .22); transition: color .35s linear; }
.statement__text .w.on { color: #fff; }

/* Percursos */
.routes { background: var(--black); }
.route { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); }
.route:first-child { border-radius: 0; }
.route__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 48%, rgba(0, 0, 0, .05) 80%), linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
.route__content { position: relative; z-index: 1; width: min(1180px, 100% - 44px); margin-inline: auto; padding-bottom: clamp(40px, 8vh, 90px); }
.route__content h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.route__desc { max-width: 33em; margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.24rem); color: rgba(255, 255, 255, .88); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.route__thumbs { position: absolute; z-index: 1; right: max(22px, calc((100vw - 1180px) / 2)); bottom: clamp(40px, 8vh, 90px); display: flex; gap: 12px; }
.route__thumbs img { width: clamp(96px, 10vw, 150px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); }
.route__thumbs img:nth-child(2) { transform: translateY(-22px); }
.route__thumbs img:hover { transform: translateY(-30px) scale(1.04); }

/* Secções */
.section { position: relative; z-index: 1; padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); }
.section--grey { background: var(--mist); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section__head { text-align: center; margin-bottom: clamp(36px, 6vw, 70px); }
.section__head p { margin-top: 16px; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--grey); font-weight: 500; }
#experiencias { border-radius: var(--r) var(--r) 0 0; }

/* Mosaico de experiências */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1 / 1.02; background: #111; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .2) 42%, rgba(0, 0, 0, 0) 65%); }
.tile__copy { padding: clamp(24px, 3.6vw, 44px); max-width: 28em; }
.tile__copy p { margin-top: 10px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .9); }


/* Preço */
.price { margin-top: 14px; padding: clamp(52px, 8vw, 104px) 24px; border-radius: var(--r); background: #000; color: #f5f5f7; text-align: center; }
.price__eyebrow { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; color: var(--amber); }
.price__title { margin-top: 10px; font-size: clamp(2.3rem, 6.4vw, 4.5rem); font-weight: 600; letter-spacing: -.028em; line-height: 1.05; text-wrap: balance; }
.price__title strong { font-weight: 600; }
.price__note { max-width: 31em; margin: 18px auto 0; font-size: clamp(1.02rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.35; color: #a1a1a6; text-wrap: balance; }
.price .cta-row { justify-content: center; margin-top: 30px; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 6vw, 70px); }
.step { padding: clamp(28px, 3.2vw, 44px); border-radius: var(--r); background: var(--mist); }
.step span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; }
.step h3 { margin-top: clamp(40px, 6vw, 84px); font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--grey); }
.how__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: clamp(32px, 5vw, 56px); }

/* Galeria */
.gallery { padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.gallery__nav { display: flex; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; display: grid; place-items: center; transition: background .25s, opacity .25s; }
.round:hover { background: rgba(255, 255, 255, .26); }
.round:disabled { opacity: .3; cursor: default; }
.round svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - 1180px) / 2)); padding-inline: max(22px, calc((100vw - 1180px) / 2)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: none; height: clamp(300px, 58vh, 560px); width: auto; max-width: 86vw; object-fit: cover; border-radius: 22px; scroll-snap-align: start; }

/* Paragens do percurso */
.stops { position: relative; z-index: 1; background: #0a0a0b; color: #fff; padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); }
.stops__head { margin-bottom: clamp(30px, 5vw, 60px); max-width: 16em; }
.stops__head h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { position: relative; grid-column: span 5; min-height: clamp(380px, 46vw, 520px); overflow: hidden; border-radius: var(--r); background: #151516; display: flex; align-items: flex-end; isolation: isolate; }
.card--wide { grid-column: span 7; }
.card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .6) 38%, rgba(0, 0, 0, 0) 72%); }
.card__copy { padding: clamp(22px, 3vw, 38px); max-width: 34em; }
.card__copy span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--amber); }
.card__copy h3 { margin-top: 0; }
.card__copy p { margin-top: 10px; font-size: clamp(.98rem, 1.3vw, 1.1rem); color: rgba(255, 255, 255, .86); }
.js .bento .reveal:nth-child(even) { transition-delay: .1s; }

/* Como funciona */
.how .section__head { margin-bottom: 0; }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.contact__copy > p { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #a1a1a6; font-weight: 500; }
.contact__list { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.contact__list span { color: #86868b; }
.contact__list a, .contact__list em { font-style: normal; font-weight: 500; color: #fff; text-align: right; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--amber); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: #1d1d1f; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #a1a1a6; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #424245; background: #2a2a2d; color: #fff; font-size: 16px; color-scheme: dark; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 180, 0, .25); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form__actions .btn { flex: 1 1 200px; }
.form__note { font-size: 13px; color: #86868b; }
.form__error { font-size: 14px; color: #ff8a80; }

/* Rodapé */
.footer { position: relative; z-index: 1; background: var(--mist); padding: 44px 0 36px; font-size: 13px; color: var(--grey); }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__top img { height: 54px; width: auto; }
.footer__top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__top a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 18px; }

/* WhatsApp flutuante */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* Entrada ao fazer scroll */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tiles .reveal:nth-child(even), .js .steps .reveal:nth-child(2) { transition-delay: .1s; }
.js .steps .reveal:nth-child(3) { transition-delay: .2s; }

/* Responsivo */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .route__thumbs { display: none; }
  .route::after { background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .1) 100%); }
  .contact__grid { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: 1 / -1; min-height: 480px; }
}
@media (max-width: 680px) {
  .nav .btn--sm { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1 / 1.1; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 26px 24px 28px; }
  .price .cta-row, .how__cta { flex-direction: column; gap: 16px; }
  .price .btn, .how__cta .btn { min-width: 220px; }
  .form { grid-template-columns: 1fr; }
  .hero__media img { object-position: 50% 60%; }
}
/* Telemóvel: foto em cima, texto em baixo sobre fundo escuro */
@media (max-width: 680px) {
  .route { background: #000; min-height: 600px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
  .stops { box-shadow: none; }
  .chips li { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .16); }
  .js .reveal { transform: translateY(22px); transition-duration: .65s; }
  .js .tiles .reveal:nth-child(even), .js .bento .reveal:nth-child(even), .js .steps .reveal { transition-delay: 0s; }
  .tile img, .card img { transition: none; }
  .route__bg { height: 56%; bottom: auto; }
  .route::after { background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 30%, #000 56%); }
  .route__content { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .route__content h2 { font-size: clamp(2.1rem, 9.4vw, 2.9rem); }
  .route__desc { margin-top: 14px; }
  .chips { margin-top: 16px; }
  .route .cta-row { margin-top: 20px; }
  .route .btn { width: calc(100% - 76px); }
  .gallery__track img { height: 64vw; max-height: 320px; }
  .lang button { padding: 12px 8px; font-size: 13px; }
  .nav__toggle { width: 44px; height: 44px; }
  .nav__toggle span { left: 12px; right: 12px; }
  .nav__toggle span:first-child { top: 18px; }
  .nav__toggle span:last-child { top: 25px; }
  .nav.is-open .nav__toggle span:first-child, .nav.is-open .nav__toggle span:last-child { top: 21.5px; }
  .menu { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .hero .cta-row { flex-direction: column; gap: 16px; }
  .hero .btn { min-width: 220px; }
  .contact__list a { padding: 4px 0; }
  .footer__top nav { gap: 14px 22px; }
  .footer__top a { padding: 4px 0; }
}
@media (max-height: 640px) {
  .route { position: relative; height: auto; padding-top: 110px; }
}
/* Movimento reduzido: sem deslocações nem paralaxe, mas mantém transições suaves de opacidade */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .js .hero__copy > * { transform: none; animation: fade .8s ease forwards; }
  .js .hero__media img, .hero__scroll span { animation: none; }
  .tile img, .card img, .route__thumbs img { transition: none; }
  .tile:hover img, .card:hover img { transform: none; }
}
@keyframes fade { to { opacity: 1; } }
