﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Manrope:wght@300;400;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #1b1b1b;
  --muted: #5c5a55;
  --brand: #d9822b;
  --brand-dark: #8b4c1b;
  --card: #ffffff;
  --line: #e7e1d6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', serif;
  margin: 0 0 12px 0;
}

p {
  margin: 0 0 12px 0;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section {
  padding: 0 2vw;
}

.section-header {
  margin-bottom: 24px;
}

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

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.06);
}

.card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px;
}

.card-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2e7d6;
  color: var(--brand-dark);
  font-size: 12px;
}

.price {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--brand-dark);
}

.link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-dark);
  font-weight: 600;
}

@media (max-width: 720px) {
  .section {
    padding: 0 5vw;
  }
}

@media (min-width: 992px) {
  .site-wrapper:has(> section.section.featured.featured-destinations):has(> section.section.bestsellers) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .site-wrapper:has(> section.section.featured.featured-destinations):has(> section.section.bestsellers)>* {
    grid-column: 1 / -1;
  }

  .site-wrapper:has(> section.section.featured.featured-destinations):has(> section.section.bestsellers)>section.section.featured.featured-destinations,
  .site-wrapper:has(> section.section.featured.featured-destinations):has(> section.section.bestsellers)>section.section.bestsellers {
    grid-column: auto;
  }

  section.featured.featured-destinations .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  section.bestsellers .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 991.98px) {

  section.featured.featured-destinations .cards-grid.grid-cards,
  section.bestsellers .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Pacotes: spacing/positioning como print 1 ===== */

/* 1) Duas colunas compactas (desktop) */
@media (min-width: 992px) {

  .site-wrapper:has(> #pacotes.section.featured.featured-destinations):has(> section.section.bestsellers),
  main:has(> #pacotes.section.featured.featured-destinations):has(> section.section.bestsellers),
  .container:has(> #pacotes.section.featured.featured-destinations):has(> section.section.bestsellers),
  .content:has(> #pacotes.section.featured.featured-destinations):has(> section.section.bestsellers) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  /* 2) Remover respiro excessivo das sections */
  #pacotes.section.featured.featured-destinations,
  section.section.bestsellers {
    margin: 10px;
    padding: 0;
  }

  /* 3) Titulos alinhados e compactos */
  #pacotes.section.featured.featured-destinations>h2,
  section.section.bestsellers>h2 {
    margin: 0 0 10px 0;
  }

  /* 4) Grids internos compactos (somente layout/gap) */
  #pacotes.section.featured.featured-destinations .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  section.section.bestsellers .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

/* 5) Mobile: empilha e mantem gaps coerentes */
@media (max-width: 991.98px) {

  #pacotes.section.featured.featured-destinations,
  section.section.bestsellers {
    margin: 0;
  }

  #pacotes.section.featured.featured-destinations .cards-grid.grid-cards,
  section.section.bestsellers .cards-grid.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== CTA faixa (igual print 2) ===== */
.section.cta {
  position: relative;
  padding: 14px 18px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 120, 0.55);
  pointer-events: none;
}

.section.cta>* {
  position: relative;
  z-index: 1;
}

.section.cta .cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section.cta h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.section.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.section.cta a,
.section.cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  background: #d8791f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .section.cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Home full-viewport */
#home {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Correcao mobile (browsers com barra dinamica) */
@supports (height: 100dvh) {
  #home {
    min-height: 100dvh;
    height: 100dvh;
  }
}

/* ===== MENU FIXO SOBRE #home ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  flex-wrap: nowrap;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1 1 auto;
}

.site-header .main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.site-header .main-nav a:hover {
  opacity: 0.85;
}

.site-header .whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

/* Ajuste para #home nao ficar coberto pelo menu */
#home {
  padding-top: 64px;
}

@media (max-width: 768px) {
  .site-header {
    gap: 10px;
  }

  .site-header .main-nav {
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== HEADER/NAV (fixo sobre #home) - mobile corrigido ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.site-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-header .logo {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.site-header nav a,
.site-header a {
  color: #111;
  text-decoration: none;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .site-header .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .main-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-header a[href*="whatsapp"],
  .site-header a[href*="api.whatsapp.com"],
  .site-header .whatsapp-button {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
  }
}

#home {
  padding-top: 56px;
}

/* Centralizar elementos do header */
.site-header {
  justify-content: center;
  text-align: center;
}

.site-header .main-nav {
  flex: 0 0 auto;
  justify-content: center;
}

/* Header layout: nav esquerda, logo central, whatsapp direita */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header .main-nav {
  justify-self: start;
}

.site-header .logo {
  justify-self: center;
}

.site-header .carrinho {
  justify-self: end;
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.site-header .logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Mobile menu (hamburger) */
.site-header .main-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .main-nav__panel {
  display: block;
}

.site-header .main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .main-nav__list>li {
  position: relative;
}

.site-header .nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.site-header .nav-toggle__bar {
  position: absolute;
  left: 50%;
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header .nav-toggle__bar:nth-child(1) {
  top: 10px;
}

.site-header .nav-toggle__bar:nth-child(2) {
  top: 17px;
}

.site-header .nav-toggle__bar:nth-child(3) {
  top: 24px;
}

.site-header .main-nav.is-open .nav-toggle__bar:nth-child(1) {
  top: 17px;
  transform: translateX(-50%) rotate(45deg);
}

.site-header .main-nav.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header .main-nav.is-open .nav-toggle__bar:nth-child(3) {
  top: 17px;
  transform: translateX(-50%) rotate(-45deg);
}

.site-header .submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font: inherit;
  color: #111;
  cursor: pointer;
  padding: 6px 0;
}

.site-header .submenu-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.site-header .has-submenu.submenu-open .submenu-caret {
  transform: rotate(-135deg);
}

.site-header .submenu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0 0;
  display: none;
}

.site-header .has-submenu.submenu-open>.submenu {
  display: block;
}

.site-header .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #d8791f;
  color: #fff;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 769px) {
  .site-header .main-nav__panel {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-header .submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 3000;
  }
}

@media (max-width: 768px) {
  .site-header .nav-toggle {
    display: inline-flex;
  }

  .site-header .main-nav__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 3000;
  }

  .site-header .main-nav.is-open .main-nav__panel {
    display: block;
  }

  .site-header .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header .main-nav__list a,
  .site-header .submenu-toggle {
    width: 100%;
    text-align: left;
    padding: 8px 4px;
  }

  .site-header .submenu {
    position: static;
    padding-left: 10px;
    margin-top: 4px;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
  }
}

/* Visibilidade do painel do menu mobile */
.site-header .main-nav__panel {
  display: none;
}

.site-header .main-nav.is-open .main-nav__panel {
  display: block;
}

@media (min-width: 769px) {
  .site-header .main-nav__panel {
    display: block;
  }
}

.carrinho {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.carrinho-icon {
  font-size: 22px;
  line-height: 1;
}

.carrinho-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff6b00;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
