/* Pousada Recanto do Barão: landing
   Paleta tirada do brasão: vela vermelha, mar azul-noite, areia. */
:root {
  --sail: #a3231a;
  --sail-dark: #7f1a13;
  --sea: #1e3a52;
  --night: #0f1d2c;
  --sand: #f5eee3;
  --sand-2: #ebe0cf;
  --ink: #1b2129;
  --muted: #5d6670;
  --line: rgba(27, 33, 41, .12);
  --white: #fff;
  --whats: #1fa855;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(15, 29, 44, .35);
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 2.5rem; height: 2.5rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sail); margin-bottom: .9em;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .lang button:focus-visible, .gallery button:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.btn--sm { min-height: 40px; padding: .6em 1.2em; font-size: .88rem; }
.btn--sail { background: var(--sail); color: var(--white); }
.btn--sail:hover { background: var(--sail-dark); }
.btn--whats { background: var(--whats); color: var(--white); }
.btn--whats:hover { background: #178a45; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--night); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* Topbar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white); transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.topbar.is-solid { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.brand__name small { display: block; font: 500 .7rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--sail); transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang button {
  border: 0; background: none; color: inherit; font: 600 .75rem/1 var(--font-body);
  padding: 6px 9px; border-radius: 999px; cursor: pointer; min-width: 34px; min-height: 28px;
}
.lang button[aria-pressed="true"] { color: var(--night); background: var(--white); }
.topbar.is-solid .lang button[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.menu-btn { display: none; border: 0; background: none; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .ico { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .topbar__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: var(--white); color: var(--ink); padding: 8px 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .topbar.menu-open { background: var(--white); color: var(--ink); }
}
@media (max-width: 400px) { .brand__name { font-size: 1rem; } .brand__name small { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 60% center; animation: heroZoom 18s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 32, .85) 0%, rgba(10, 20, 32, .55) 45%, rgba(10, 20, 32, 0) 75%),
    linear-gradient(0deg, rgba(10, 20, 32, .7) 0%, rgba(10, 20, 32, 0) 40%);
}
.hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(72px, 12vh, 120px); }
.hero .eyebrow { color: #f2c6a0; }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 400; max-width: 13em; margin-bottom: .4em; }
.hero__title em { font-style: italic; color: #ffd9b8; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; opacity: .92; margin-bottom: 2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 720px) {
  .hero::after { background: linear-gradient(0deg, rgba(10, 20, 32, .92) 0%, rgba(10, 20, 32, .55) 55%, rgba(10, 20, 32, .25) 100%); }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Destaques */
.perks { background: var(--night); color: var(--white); }
.perks__list { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.perks .ico { color: #f2a483; width: 1.5em; height: 1.5em; }
@media (max-width: 1080px) { .perks__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .perks__list { grid-template-columns: repeat(2, 1fr); } .perks li { font-size: .85rem; } }

/* Seções */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: var(--white); }
.section--night .eyebrow { color: #f2a483; }
.section--night p { color: rgba(255, 255, 255, .8); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section--night .section__head p { color: rgba(255, 255, 255, .75); }

.checks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: .6em; }
.checks li { display: flex; gap: .6em; align-items: flex-start; }
.checks .ico { color: var(--sail); margin-top: .2em; }
.checks--sm { margin: 0 0 1.4em; font-size: .93rem; gap: .45em; }

/* A pousada */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__text p { color: var(--muted); font-size: 1.05rem; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic__a { grid-row: span 2; }
.breakfast {
  margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: var(--sand); border-radius: var(--radius-lg); overflow: hidden;
}
.breakfast img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.breakfast__text { padding: clamp(28px, 5vw, 56px); }
.breakfast__text p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .split, .breakfast { grid-template-columns: 1fr; }
}

/* Cards */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards--3 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(15, 29, 44, .45);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 50px -26px rgba(15, 29, 44, .5); }
.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); margin: 0; }
.card--pkg .btn { margin-top: auto; align-self: flex-start; }
.section:not(.section--sand) .card { border: 1px solid var(--line); box-shadow: none; }
.card--featured { border-color: var(--sail) !important; }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--sail); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.amenities { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.amenities li { border: 1px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; font-size: .9rem; }

/* Experiências */
.tours { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.tour { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.tour--lg { grid-column: span 2; }
.tour img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tour:hover img { transform: scale(1.06); }
.tour figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-weight: 600;
  background: linear-gradient(0deg, rgba(10, 20, 32, .85), transparent);
}
@media (max-width: 860px) { .tours { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .tours { grid-auto-rows: 150px; gap: 10px; } .tour figcaption { font-size: .88rem; padding: 32px 10px 10px; } }
.transfer {
  margin-top: 40px; display: flex; align-items: center; gap: 24px; padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04);
}
.transfer h3 { margin-bottom: .3em; }
.transfer p { margin: 0; }
.transfer .ico { color: #f2a483; }
.transfer .btn { margin-left: auto; flex: none; }
@media (max-width: 720px) { .transfer { flex-direction: column; align-items: flex-start; padding: 24px; } .transfer .btn { margin-left: 0; } }

/* Galeria */
.gallery { columns: 4 220px; column-gap: 12px; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 12px; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid;
}
.gallery img { width: 100%; transition: transform .5s ease, filter .3s ease; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 14, 22, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Reserva */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking__intro p { color: var(--muted); font-size: 1.05rem; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white);
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fcfaf7;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(30, 58, 82, .15); }
.field [aria-invalid="true"] { border-color: var(--sail); }
.form__error { grid-column: 1 / -1; margin: 0; color: var(--sail); font-size: .9rem; font-weight: 500; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .form { grid-template-columns: 1fr; } }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico { color: var(--sail); margin-top: .2em; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-color: var(--sail); }
.contact__list small { color: var(--muted); }
.agent { border-top: 1px solid var(--line); padding-top: 20px; font-size: .92rem; color: var(--muted); }
.agent__title { font-weight: 600; color: var(--ink); margin-bottom: .3em; }
.agent p:last-child { margin: 0; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--sand-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Rodapé */
.footer { background: var(--night); color: rgba(255, 255, 255, .75); padding: 40px 0 96px; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__top { margin-left: auto; text-decoration: none; }
.footer__top:hover { color: var(--white); }

/* WhatsApp flutuante */
.whats-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whats); color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(31, 168, 85, .6); transition: transform .2s ease;
}
.whats-fab:hover { transform: scale(1.08); }
.whats-fab .ico { width: 32px; height: 32px; }
.whats-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whats);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Animações de entrada */
/* Só esconde quando o JS está ativo, para nunca sumir conteúdo */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
