/* ====== VARIÁVEIS DE COR E FONTE ====== */
:root {
  --verde-escuro: #2e5e3a;
  --verde-claro: #9cc59d;
  --marrom-escuro: #4e342e;
  --marrom-claro: #a1887f;
  --bege: #f7f6f4;
  --fonte-titulo: 'Playfair Display', serif;
  --fonte-texto: 'Lora', serif;
}

/* ====== RESET E ESTILOS GERAIS ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fonte-texto);
  background-color: var(--bege);
  color: #333;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ====== BACKGROUND PARALLAX ====== */
.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300%;
  background-image: url('https://images.unsplash.com/photo-1529313780224-1a12b68bed16?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=774');
  background-size: cover;
  background-position: center top;
  background-repeat: repeat-y;
  opacity: 0.6;
  filter: brightness(0.6);
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.1s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-background {
    background-attachment: scroll;
    animation: parallaxMove 15s linear infinite alternate;
  }

  @keyframes parallaxMove {
    0% { transform: translateY(0px) scale(1.02); }
    100% { transform: translateY(-100px) scale(1.02); }
  }
}

@media (max-width: 900px) {
  .parallax-background {
    height: 400%;
    filter: brightness(0.55);
    animation: parallaxMoveMobile 12s linear infinite alternate;
  }

  @keyframes parallaxMoveMobile {
    0% { transform: translateY(0px) scale(1.01); }
    100% { transform: translateY(-50px) scale(1.01); }
  }
}

/* ====== CABEÇALHO ====== */
header {
  background: linear-gradient(90deg, var(--verde-escuro), var(--marrom-escuro));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  margin-bottom: 50px; /* espaçamento entre header e hero-card */
}

header .brand {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-bottom: 10px;
}

header .logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

header h1 {
  font-family: var(--fonte-titulo);
  font-size: 1.8rem;
  margin: 0;
}

header .subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0;
}

/* ====== RESPONSIVIDADE CABEÇALHO E LOGO ====== */
@media (max-width: 768px) {
  header .brand {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
  }

  header .brand .logo {
    width: 90px;
    max-width: none;
    height: auto;
  }

  header .brand h1 {
    font-size: 1rem;
    line-height: 1.2;
  }

  header .brand .subtitle {
    font-size: 0.85rem;
  }
}

/* ====== MENU DE NAVEGAÇÃO ====== */
nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--verde-claro);
}

@media (max-width: 600px) {
  nav { gap: 20px; }
}

/* ====== HERO CARD ====== */
.hero-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--verde-claro);
  backdrop-filter: blur(2px);
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit; /* mantém a cor padrão para o texto */
}

/* Título do card em verde claro */
.hero-card h2 {
  color: var(--verde-escuro);
  font-family: var(--fonte-titulo);
}

/* ====== SEÇÃO DE INFORMAÇÃO ====== */
.info-section {
  background: rgba(247, 246, 244, 0.6);
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
  max-width: 800px;
  margin: 0 auto 40px;
}

.info-section h2 {
  text-align: center;
  font-family: var(--fonte-titulo);
  color: var(--marrom-escuro);
  margin-bottom: 25px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* ====== INFO BOX ====== */
.info-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 2px solid var(--marrom-claro);
  transition: transform 0.3s ease;
}

.info-box:hover { transform: translateY(-5px); }

.info-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.info-box h3 {
  font-family: var(--fonte-titulo);
  margin: 12px;
  color: var(--verde-escuro);
}

.info-box p {
  margin: 0 12px 16px;
  color: #444;
}

/* ====== GALERIA DE FOTOS ====== */
.gallery-section {
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  max-width: 900px;
  margin: 0 auto 40px;
}

.gallery-section .media-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.photos figure {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--verde-claro);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.photos figure:hover { transform: scale(1.03); }

.photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.photos figcaption {
  padding: 6px;
  text-align: center;
  font-size: 14px;
  color: var(--marrom-escuro);
  font-weight: 500;
}

/* ====== VÍDEOS ====== */
.videos {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--marrom-claro);
}

.video-card iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

.video-card figcaption {
  padding: 8px 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  color: var(--marrom-escuro);
  background: linear-gradient(180deg, #fff, #f8f6f4);
}

/* ====== DIÁRIO DE BORDO ====== */
.logbook {
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--verde-claro);
  backdrop-filter: blur(2px);
  max-width: 800px;
  margin: 0 auto 40px;
}

.logbook h3 {
  text-align: center;
  color: var(--verde-escuro);
  font-family: var(--fonte-titulo);
  margin-bottom: 15px;
}

.logbook .entry {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 12px;
}

.logbook .entry img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--verde-claro);
}

.logbook time {
  font-weight: bold;
  color: var(--marrom-escuro);
}

.logbook p {
  margin-top: 6px;
}

/* ====== TEXTO LONGO ====== */
.longread {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--marrom-claro);
  backdrop-filter: blur(2px);
  max-width: 800px;
  margin: 0 auto 40px;
}

.longread h2 {
  text-align: center;
  font-family: var(--fonte-titulo);
  color: var(--verde-escuro);
  margin-bottom: 15px;
}

.longread p {
  margin-bottom: 12px;
  text-align: justify;
  color: #444;
}

/* ====== CONTATO ====== */
.contact {
  background: rgba(247, 246, 244, 0.6);
  padding: 15px;
  border-radius: 16px;
  border: 2px solid var(--verde-claro);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
  max-width: 800px;
  margin: 0 auto 40px;
}

.contact h2 {
  text-align: center;
  color: var(--marrom-escuro);
  font-family: var(--fonte-titulo);
  margin-bottom: 15px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: var(--fonte-texto);
}

.contact .btn {
  background: var(--verde-escuro);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact .btn:hover {
  background: var(--verde-claro);
  color: #222;
}

/* ====== RODAPÉ ====== */
footer {
  text-align: center;
  background: var(--marrom-escuro);
  color: white;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* ====== AJUSTES RESPONSIVOS ====== */
@media (max-width: 768px) {
  .hero-card,
  .info-section,
  .longread,
  .logbook,
  .contact,
  .gallery-section {
    max-width: 95%;
    padding: 10px;
    margin-bottom: 30px;
  }

  .info-grid {
    gap: 20px;
  }

  .photos {
    gap: 16px;
  }

  .videos {
    gap: 20px;
  }
}
