/* ==========================================================================
   Pousada El Rocío — Folha de estilo principal
   Paleta ribeirinha: verde-rio profundo, âmbar-dourado (a cor do dourado),
   areia clara. Direção editorial-esportiva.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Cores */
  --rio: #0e3b34;          /* verde-rio profundo (fundo escuro) */
  --rio-fundo: #0a2c27;    /* variação ainda mais escura */
  --dourado: #d99a2b;      /* âmbar-dourado, a cor do peixe-troféu */
  --dourado-claro: #ecc06a;
  --areia: #f4efe4;        /* areia clara (fundo claro) */
  --areia-2: #eae2d1;
  --carvao: #1c2321;       /* texto sobre claro */
  --creme-texto: #eef2ea;  /* texto sobre escuro */
  --musgo: #4a6b56;        /* verde secundário */
  --linha: rgba(255,255,255,0.14);
  --linha-escura: rgba(28,35,33,0.14);

  /* Tipografia */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --corpo: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --max: 1180px;
  --pad-secao: clamp(3.5rem, 8vw, 7rem);
  --raio: 4px;
}

/* ---- Reset leve --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--corpo);
  color: var(--carvao);
  background: var(--areia);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---- Tipografia --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--dourado);
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--dourado);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-3px);
}

/* ---- Utilitários -------------------------------------------------------- */
.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.secao { padding-block: var(--pad-secao); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--raio);
  border: 2px solid var(--dourado);
  background: var(--dourado);
  color: var(--rio-fundo);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--dourado-claro); border-color: var(--dourado-claro); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217,154,43,.25); }
.btn--fantasma { background: transparent; color: var(--dourado); }
.btn--fantasma:hover { background: var(--dourado); color: var(--rio-fundo); }
.btn--claro { background: var(--areia); border-color: var(--areia); color: var(--rio); }
.btn--claro:hover { background: #fff; border-color: #fff; }

/* ==========================================================================
   Cabeçalho / navegação
   ========================================================================== */
.cabecalho {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.cabecalho.solido {
  background: var(--rio-fundo);
  padding-block: 0.65rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.cabecalho__interno {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca { display: flex; align-items: center; gap: 0.7rem; color: var(--areia); }
.marca__peixe { width: 40px; height: 40px; flex: none; }

/* Logo em imagem (círculo). Como o próprio logo já traz o nome
   "El Rocío Posada", o texto ao lado fica oculto para não repetir. */
.marca__logo {
  width: 80px; height: 80px; flex: none; border-radius: 50%;
  object-fit: cover; display: block;
  background: #fff;                      /* garante o círculo branco */
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform .25s ease, width .35s ease, height .35s ease;
}
.marca:hover .marca__logo { transform: scale(1.05); }
/* No cabeçalho compacto (após rolar), o logo encolhe suavemente */
.cabecalho.solido .marca__logo { width: 68px; height: 68px; }
/* Logo do rodapé, sobre fundo escuro */
.rodape .marca__logo { width: 88px; height: 88px; }

.marca__nome {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 1; letter-spacing: 0.04em;
}
.marca__nome span { display: block; font-size: 1.18rem; }
.marca__nome small {
  display: block; font-size: 0.62rem; letter-spacing: 0.34em;
  color: var(--dourado); font-weight: 500; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__lista { display: flex; gap: 1.9rem; }
.nav__lista a {
  color: var(--areia);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
}
.nav__lista a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--dourado); transition: width .25s ease;
}
.nav__lista a:hover::after, .nav__lista a.ativo::after { width: 100%; }
.nav__lista a.ativo { color: var(--dourado-claro); }

.menu-botao {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; color: var(--areia);
}
.menu-botao span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.menu-botao.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-botao.aberto span:nth-child(2) { opacity: 0; }
.menu-botao.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  color: var(--creme-texto);
  padding-top: 6rem;
  overflow: hidden;
}
.hero__fundo { position: absolute; inset: 0; z-index: -2; }
.hero__fundo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,44,39,.55) 0%, rgba(10,44,39,.35) 45%, rgba(10,44,39,.92) 100%);
}
/* placeholder de água enquanto não há foto real */
.placeholder-agua {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 70% 15%, #2a6f5f 0%, #12463c 45%, #0a2c27 100%);
}
.placeholder-agua::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(85deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px);
}
.hero__conteudo { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.8rem, 8.5vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em {
  font-style: normal; color: var(--dourado-claro);
  display: block;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 46ch; margin-top: 1.4rem; color: #dfe7df;
  line-height: 1.6;
}
.hero__acoes { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__rio {
  position: absolute; left: 0; right: 0; bottom: 1.6rem;
  display: flex; justify-content: center; gap: 2.5rem;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; color: rgba(238,242,234,.75);
  flex-wrap: wrap; padding-inline: 1rem;
}
.hero__rio span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__rio span::before { content: "◆"; color: var(--dourado); font-size: .6rem; }

/* ==========================================================================
   Seções de conteúdo
   ========================================================================== */
.secao--escura { background: var(--rio); color: var(--creme-texto); }
.secao--escura .eyebrow { color: var(--dourado-claro); }
.secao--musgo { background: var(--areia-2); }

.titulo-secao {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.2rem;
}
.intro-secao { max-width: 62ch; font-size: 1.12rem; }
.secao--escura .intro-secao { color: #d3ddd4; }

/* Cabeçalho interno das páginas (banner) */
.banner {
  position: relative; padding-top: 9rem; padding-bottom: 4rem;
  background: var(--rio-fundo); color: var(--creme-texto); overflow: hidden;
}
/* Imagem de fundo do banner (nas páginas Lodge, Pesca e Contato).
   Faz o .hero__fundo e sua <img> preencherem todo o banner. */
.banner .hero__fundo {
  position: absolute; inset: 0; z-index: 0;
}
.banner .hero__fundo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.banner .placeholder-agua { opacity: .5; }
/* Conteúdo do banner acima da imagem */
.banner .container { position: relative; z-index: 2; }
.banner__trilha {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--dourado-claro); margin-bottom: .8rem;
}
.banner h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* Grade de destaques (home) */
.destaques {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 3rem;
}
.card {
  background: var(--areia); border: 1px solid var(--linha-escura);
  border-radius: var(--raio); padding: 2rem 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.secao--escura .card { background: rgba(255,255,255,.04); border-color: var(--linha); }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(14,59,52,.16); }
.card__num {
  font-family: var(--display); font-weight: 700; font-size: 2.4rem;
  color: var(--dourado); line-height: 1; margin-bottom: .8rem; display: block;
}
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card p { font-size: .98rem; color: inherit; opacity: .9; }

/* Bloco de texto + imagem alternado */
.divisao {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.divisao--invertida .divisao__midia { order: -1; }
.divisao__texto p + p { margin-top: 1.1rem; }
.divisao__midia { position: relative; }

/* Moldura de imagem com placeholder */
.moldura {
  position: relative; border-radius: var(--raio); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--musgo);
  box-shadow: 0 20px 50px rgba(14,59,52,.25);
}
.moldura img { width: 100%; height: 100%; object-fit: cover; }
.moldura::after {
  content: attr(data-legenda);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem .9rem;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(10,44,39,.85));
  pointer-events: none;
}
/* placeholder visível quando não há foto */
.moldura--vazia {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, #3d6353 0 22px, #37594b 22px 44px);
  color: rgba(255,255,255,.6);
}
.moldura--vazia .rotulo {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .82rem; text-align: center; padding: 1rem;
}

/* Lista de comodidades */
.lista-check { margin-top: 1.6rem; display: grid; gap: .8rem; }
.lista-check li { display: flex; gap: .8rem; align-items: flex-start; }
.lista-check li::before {
  content: "›"; color: var(--dourado); font-family: var(--display);
  font-weight: 700; font-size: 1.3rem; line-height: 1; flex: none;
}

/* Galeria */
.galeria {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.galeria__item {
  position: relative; aspect-ratio: 1; border-radius: var(--raio);
  overflow: hidden; background: var(--musgo);
}
.galeria__item img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.galeria__item:hover img { transform: scale(1.06); }
.galeria__item--vazio {
  display: grid; place-items: center; color: rgba(255,255,255,.55);
  background: repeating-linear-gradient(135deg,#3d6353 0 20px,#37594b 20px 40px);
  font-family: var(--display); letter-spacing: .14em; font-size: .72rem; text-transform: uppercase;
}

/* Ambientes de pesca (3 colunas) */
.ambientes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.ambiente {
  border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.8rem;
  background: rgba(255,255,255,.03);
}
.ambiente h3 { color: var(--dourado-claro); font-size: 1.3rem; margin-bottom: .5rem; }
.ambiente p { color: #cdd7ce; font-size: .96rem; }

/* Faixa de chamada (CTA) */
.faixa-cta {
  background: linear-gradient(120deg, var(--dourado) 0%, #c4841f 100%);
  color: var(--rio-fundo); text-align: center;
}
.faixa-cta h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: .8rem; }
.faixa-cta p { max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.1rem; font-weight: 600; }

/* ==========================================================================
   Formulário de contato
   ========================================================================== */
.contato-grade {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-campo { margin-bottom: 1.2rem; }
.form-campo label {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; margin-bottom: .4rem; color: var(--rio);
}
.form-campo input, .form-campo select, .form-campo textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--corpo); font-size: 1rem;
  border: 1px solid var(--linha-escura); border-radius: var(--raio);
  background: #fff; color: var(--carvao); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-campo input:focus, .form-campo select:focus, .form-campo textarea:focus {
  outline: none; border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(217,154,43,.2);
}
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea { resize: vertical; min-height: 130px; }

.contato-info { }
.contato-info__bloco { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--linha-escura); }
.contato-info__bloco:first-child { padding-top: 0; }
.contato-info__icone {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--rio); color: var(--dourado-claro);
  display: grid; place-items: center;
}
.contato-info__icone svg { width: 22px; height: 22px; }
.contato-info h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.contato-info a, .contato-info p { color: var(--carvao); opacity: .85; font-size: .98rem; }
.contato-info a:hover { color: var(--dourado); opacity: 1; }

.mapa-moldura {
  margin-top: 2.5rem; border-radius: var(--raio); overflow: hidden;
  border: 1px solid var(--linha-escura); aspect-ratio: 21/9; background: var(--areia-2);
}
.mapa-moldura iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.rodape { background: var(--rio-fundo); color: #c7d2c9; padding-block: 3.5rem 1.5rem; }
.rodape__topo { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.rodape h4 { color: var(--areia); font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: .08em; }
.rodape a { color: #c7d2c9; }
.rodape a:hover { color: var(--dourado-claro); }
.rodape__links li { margin-bottom: .55rem; }
.rodape__sobre p { font-size: .96rem; line-height: 1.7; max-width: 40ch; }
.rodape .marca { margin-bottom: 1rem; }
.rodape__base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linha);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: #9fb0a3;
}

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */
.zap {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.zap:hover { transform: scale(1.08); }
.zap svg { width: 32px; height: 32px; }

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.revelar { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .destaques { grid-template-columns: 1fr; }
  .ambientes { grid-template-columns: 1fr; }
  .divisao { grid-template-columns: 1fr; }
  .divisao--invertida .divisao__midia { order: 0; }
  .contato-grade { grid-template-columns: 1fr; }
  .rodape__topo { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 780px) {
  .menu-botao { display: block; }
  .nav__lista {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--rio-fundo); flex-direction: column; justify-content: center;
    gap: 1.8rem; padding: 2rem; transform: translateX(100%);
    transition: transform .35s ease; box-shadow: -12px 0 40px rgba(0,0,0,.35);
  }
  .nav__lista.aberto { transform: translateX(0); }
  .nav__lista a { font-size: 1.3rem; }
  .contato-cabecalho { display: none; }
  .form-linha { grid-template-columns: 1fr; }
  .hero__rio { gap: 1.2rem; font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; transition: none; }
}
