/* ========= Riodejaneiro.pro — Premium Earth palette ========= */
:root {
  --cream: #f5ede0;
  --cream-2: #ede2cf;
  --cream-3: #e4d5ba;
  --ink: #1a1410;
  --ink-2: #2c2218;
  --ink-3: #4a3a28;
  --muted: #7a6a55;
  --line: rgba(26,20,16,.12);
  --line-2: rgba(26,20,16,.08);

  --terra: #c65d3a;
  --terra-deep: #9b3f22;
  --ochre: #c89b3c;
  --ochre-deep: #a37a1f;
  --teal: #2f6b6e;
  --teal-deep: #1f4a4d;
  --teal-soft: #77a3a3;
  --jade: #5a7d4a;
  --sand: #d9c29a;

  --shadow-sm: 0 1px 2px rgba(26,20,16,.06), 0 2px 6px rgba(26,20,16,.04);
  --shadow-md: 0 4px 14px rgba(26,20,16,.08), 0 10px 30px rgba(26,20,16,.06);
  --shadow-lg: 0 10px 40px rgba(26,20,16,.14), 0 30px 80px rgba(26,20,16,.10);

  --density: 1;
  --pattern-intensity: 0.6;

  --display: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html[data-palette="earth"] {
  --cream:#f5ede0; --cream-2:#ede2cf; --cream-3:#e4d5ba;
  --ink:#1a1410; --terra:#c65d3a; --ochre:#c89b3c; --teal:#2f6b6e;
}
html[data-palette="sunset"] {
  --cream:#fdf5ee; --cream-2:#fae6d3; --cream-3:#f4ceae;
  --ink:#2a0e1a; --terra:#ee5a2d; --ochre:#ff9a3c; --teal:#7c3f8f;
  --ochre-deep:#d97824; --terra-deep:#c93e0d; --teal-deep:#5a2a69;
}
html[data-palette="night"] {
  --cream:#141016; --cream-2:#1d1821; --cream-3:#28212e;
  --ink:#f1e7d6; --ink-2:#e5d6b9; --ink-3:#c9b794; --muted:#9a8a72;
  --terra:#e87a4f; --ochre:#f0c25a; --teal:#45a8a8; --teal-soft:#6bbebe;
  --line:rgba(241,231,214,.14); --line-2:rgba(241,231,214,.08);
}
html[data-palette="jungle"] {
  --cream:#eef1e5; --cream-2:#dde4ce; --cream-3:#c9d4b2;
  --ink:#122016; --terra:#c67a3a; --ochre:#d3a93c; --teal:#2b5f4a;
  --jade:#3f7a4d; --teal-deep:#1c4332;
}

html[data-fonts="classic"] { --display:'Cormorant Garamond', Georgia, serif; --body:'Inter', system-ui, sans-serif; }
html[data-fonts="modern"]  { --display:'Fraunces', Georgia, serif; --body:'DM Sans', system-ui, sans-serif; }
html[data-fonts="editorial"]{ --display:'Playfair Display', Georgia, serif; --body:'Work Sans', system-ui, sans-serif; }
html[data-fonts="brazilian"]{ --display:'Abril Fatface', Georgia, serif; --body:'Manrope', system-ui, sans-serif; }

html[data-density="cozy"]    { --density: 0.85; }
html[data-density="regular"] { --density: 1; }
html[data-density="spacious"]{ --density: 1.2; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 400; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
p  { margin: 0; }

.display-italic { font-style: italic; font-weight: 300; }
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
}

/* Layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.wrap-narrow { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: calc(96px * var(--density)) 0; }
.section-sm { padding: calc(56px * var(--density)) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terra); color: #fff;
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: var(--ochre-deep); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }

.btn-arrow::after {
  content: '→';
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Pills & tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink-2);
}

/* Cards */
.card-hover { transition: transform .35s ease, box-shadow .35s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Top nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, color .3s ease;
}
.nav--solid {
  background: rgba(245,237,224,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav--light { color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--display); font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  display:inline-block; width: 28px; height: 28px;
  background: var(--terra); border-radius: 50%;
  align-self: center;
  box-shadow: inset 4px -4px 0 var(--ochre);
}
.brand-dot { color: var(--terra); }
.nav-links {
  display: flex; gap: 28px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor; transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex; gap: 4px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; opacity: .8;
}
.lang-switch span { padding: 4px 6px; cursor: pointer; border-radius: 2px; }
.lang-switch span.active { background: var(--terra); color: #fff; opacity: 1; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 80px 0 40px; }
.footer a:hover { color: var(--ochre); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content:''; position:absolute; inset:-6px; border-radius:50%;
  background: rgba(37,211,102,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Page entrance */
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Placeholder image */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(198,93,58,.12) 0 1px, transparent 1px 14px),
    var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 14px),
    #2a2018;
  color: rgba(255,255,255,.5);
}

/* Page container */
.page { min-height: 100vh; }
.page-hero-offset { padding-top: 100px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,20,16,.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,20,16,.35); }

/* Selection */
::selection { background: var(--terra); color: #fff; }

/* Utilities */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.hidden-desktop { display: none !important; }
@media (max-width: 900px) {
  .hidden-desktop { display: inline-flex !important; }
}

/* Image treatments */
.img-box {
  overflow: hidden;
  position: relative;
  background: var(--cream-2);
}
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.img-box:hover img { transform: scale(1.05); }

/* Price */
.price { font-family: var(--display); font-size: 26px; font-weight: 500; }
.price-from { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display:block; }

/* Ticker */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--cream-2);
  padding: 14px 0;
}
.ticker-inner { display: inline-flex; gap: 60px; padding-left: 60px; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-size: 22px; font-style: italic; color: var(--ink-3); }
.ticker span::before { content: '✦ '; color: var(--terra); font-style: normal; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Forms */
input, textarea, select {
  font-family: var(--body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(198,93,58,.15);
}
label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group { margin-bottom: 22px; }

/* Tour card */
.tour-card {
  background: var(--cream);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tour-card .img-box { aspect-ratio: 16/10; }
.tour-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.tour-card-body .eyebrow { font-size: 10px; margin-bottom: 8px; }
.tour-card-title { font-family: var(--display); font-size: 24px; margin-bottom: 10px; line-height: 1.1; }
.tour-card-short { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.tour-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.tour-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* Hero sections */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
}
.hero-video video,
.hero-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,.25) 0%, rgba(26,20,16,.15) 40%, rgba(26,20,16,.75) 100%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 70px;
  z-index: 2;
}

/* Filter chips */
.filter-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  background: var(--cream);
  letter-spacing: .02em;
  transition: all .2s;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Booking steps */
.booking-step-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.booking-step-nav > div {
  padding: 14px 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.booking-step-nav > div.active {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--terra);
}
.booking-step-nav > div.done {
  color: var(--ink);
}

/* Mobile */
@media (max-width: 900px) {
  .page-hero-offset { padding-top: 80px; }
  .footer > .wrap > div:first-child { grid-template-columns: 1fr 1fr !important; }
  .hero-video { min-height: 500px; }
  .hero-content { padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .footer > .wrap > div:first-child { grid-template-columns: 1fr !important; }
  .lang-switch { display: none; }
  h1 { font-size: clamp(36px, 10vw, 56px); }
}
