/* RioDiscover EN - a warm, editorial travel page */

@font-face {
  font-family: "Mediate";
  src: url("../fonts/Mediate-Italic.otf") format("opentype");
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --green-950: #1b1c19;
  --green-900: #293125;
  --green-800: #485b32;
  --sun: #e5ff36;
  --coral: #637629;
  --sand: #dfddd2;
  --paper: #f5e9df;
  --white: #fffefa;
  --ink: #191a18;
  --muted: #6d6c65;
  --line: #d0cdc3;
  --display: "Mediate", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --container: 1160px;
  --gutter: 1.4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

a {
  color: var(--green-800);
  text-underline-offset: 3px;
}

a:hover { color: var(--coral); }

h1, h2, h3 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

h1 { max-width: 12ch; font-family: var(--display); font-size: 4.8rem; line-height: 1.04; }
h2 { max-width: 18ch; font-family: var(--body); font-size: 3rem; line-height: 1.12; }
h3 { font-family: var(--body); font-size: 1.32rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4.8rem, 7vw, 6.8rem) 0; }
.section--muted { background: var(--sand); }
.section--dark { color: var(--white); background: var(--green-950); }

.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center h2 { margin-inline: auto; }
.section-head--row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 4rem;
  align-items: end;
  max-width: none;
}
.section-head__lead { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.section-head--light h2 { color: var(--white); }
.section-head--light .section-head__lead { color: rgba(255, 255, 255, 0.7); }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  color: var(--green-950);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sun); border-color: var(--sun); }
.btn--primary:hover { color: var(--green-950); background: #d7ef2c; border-color: #d7ef2c; }
.btn--white { color: var(--green-950); background: var(--sun); }
.btn--white:hover { color: var(--green-950); background: #d7ef2c; }
.btn--outline-white { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.65); }
.btn--outline-white:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.82rem; }
.btn--lg { min-height: 54px; padding: 0.95rem 1.65rem; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.link-arrow::after { content: "->"; transition: transform 0.18s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light { color: var(--white); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header__inner { display: flex; align-items: center; height: var(--header-h); gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--white); text-decoration: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
}
.logo__text { color: var(--white); font-family: var(--display); font-size: 1.22rem; font-weight: 800; }
.logo__text--footer { color: var(--white); }
.nav { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--sun); }
.header-cta { margin-left: 0.8rem; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 23px; height: 2px; background: var(--white); transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, 100svh);
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--green-950); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.hero__overlay { position: absolute; inset: 0; background: rgba(19, 21, 17, 0.5); }
.hero__grid { position: relative; z-index: 10; padding: calc(var(--header-h) + 6rem) 0 5.5rem; }
.hero__content { max-width: 790px; }
.hero__badge { margin: 0 0 1rem; color: var(--sun); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2); }
.hero__lead { max-width: 57ch; color: rgba(255, 255, 255, 0.9); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tour-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 31, 27, 0.06);
}
.tour-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.tour-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.tour-card__topline { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 0.9rem; }
.tag { color: var(--green-950); background: #efffa4; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.meta { color: var(--muted); font-size: 0.82rem; }
.tour-card h3 { margin-bottom: 0.55rem; font-size: 1.55rem; }
.tour-card p { margin-bottom: 1.15rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.check-list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.check-list li { color: var(--ink); font-size: 0.88rem; }
.check-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0.5rem 0.12rem 0; background: var(--coral); border-radius: 50%; }
.tour-card .link-arrow { margin-top: auto; }

.request-layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.request-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  min-height: 132px;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(31, 31, 27, 0.04);
}
.mini-card h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.mini-card .link-arrow { white-space: nowrap; }

.guide-section { background: var(--paper); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-card { display: flex; min-height: 100%; padding: 1.35rem; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(31, 31, 27, 0.04); }
.guide-card__label { display: block; margin-bottom: 1.1rem; color: var(--coral); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.guide-card h3 { margin-bottom: 0.55rem; font-size: 1.55rem; }
.guide-card p { min-height: 5.1em; margin-bottom: 1.3rem; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.guide-card .link-arrow { margin-bottom: 0.1rem; font-size: 0.82rem; }
.guide-card__status { display: inline-block; margin-top: auto; color: var(--green-800); font-size: 0.82rem; font-weight: 800; }

.about-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pillar { padding: 1.35rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; }
.pillar h3 { color: var(--white); font-size: 1.32rem; }
.pillar p { margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; line-height: 1.68; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; margin: 0; padding: 0; list-style: none; }
.step { padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(31, 31, 27, 0.04); }
.step__num { display: block; margin-bottom: 1.1rem; color: var(--coral); font-family: var(--body); font-size: 2rem; font-weight: 800; line-height: 1; }
.step h3 { font-size: 1.42rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }

.faq-grid { display: grid; grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
.faq-item { margin-bottom: 0.75rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.faq-item summary { position: relative; padding: 1.15rem 3rem 1.15rem 1.25rem; font-size: 1.02rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 1.05rem; right: 1.25rem; color: var(--coral); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { max-width: 68ch; margin: 0; padding: 0 3rem 1.3rem 1.25rem; color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

.cta-band { padding: clamp(4.4rem, 8vw, 6.6rem) 0; color: var(--white); background: var(--green-900); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { max-width: 18ch; margin-bottom: 0.35rem; color: var(--white); font-size: 2.65rem; }
.cta-band p { max-width: 55ch; margin: 0; color: rgba(255, 255, 255, 0.72); }
.cta-band__actions { display: flex; flex-shrink: 0; gap: 0.75rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.contact-lead { max-width: 54ch; color: var(--muted); font-size: 1.08rem; line-height: 1.78; }
.contact-channels { margin: 2.6rem 0 0; padding: 0; list-style: none; }
.contact-channels li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-channels li:last-child { border-bottom: 1px solid var(--line); }
.contact-channels__label { display: block; margin-bottom: 0.2rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.contact-channels a { font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.contact-channels__note { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.82rem; }
.contact-form { padding: 2rem; background: var(--white); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-form label { display: block; margin-bottom: 1.2rem; }
.contact-form label span { display: block; margin-bottom: 0.45rem; color: var(--ink); font-size: 0.8rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 0.75rem 0.85rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font: inherit; }
.contact-form textarea { min-height: 138px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(196, 221, 40, 0.42); outline-offset: 1px; border-color: var(--green-800); }
.form-legal { margin: 0.9rem 0 1rem; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.form-legal a { font-weight: 700; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-captcha { min-height: 78px; margin: 0.2rem 0 1rem; overflow: hidden; }
.form-status { margin: 0 0 1rem; padding: 0.8rem 0.9rem; border: 1px solid; border-radius: 4px; font-size: 0.86rem; line-height: 1.55; }
.form-status[hidden] { display: none; }
.form-status--success { color: #1d5e37; background: #edf8f0; border-color: #b9dfc4; }
.form-status--error { color: #8a3028; background: #fff1ef; border-color: #e7b7b1; }
.form-status a { font-weight: 800; }
.contact-form button:disabled { opacity: 0.65; cursor: wait; transform: none; }

.site-footer { padding: 2rem 0; color: rgba(255, 255, 255, 0.62); background: #171816; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer__copy, .site-footer__links { margin: 0; font-size: 0.78rem; }
.site-footer__company { display: grid; gap: 0.1rem; margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 0.76rem; line-height: 1.45; }
.site-footer__company strong { color: var(--white); font-size: 0.8rem; }
.site-footer__company span { display: block; }
.site-footer__links { display: flex; gap: 1rem; }

.legal-header { position: relative; min-height: var(--header-h); background: var(--green-950); }
.legal-header .site-header { position: relative; }
.legal-page { padding: clamp(3.8rem, 7vw, 6.5rem) 0; }
.legal-page__layout { display: grid; grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.legal-page__intro { position: sticky; top: 2rem; }
.legal-page__intro h1 { max-width: 9ch; font-size: clamp(3rem, 6vw, 5rem); }
.legal-page__intro > p:last-child { color: var(--muted); font-size: 0.82rem; }
.legal-content { max-width: 760px; padding: clamp(1.5rem, 4vw, 3.2rem); background: var(--white); border: 1px solid var(--line); }
.legal-content h2 { max-width: none; margin-top: 2rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.legal-content h2:first-of-type { margin-top: 1.2rem; }
.legal-content p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .section-head--row, .request-layout, .about-layout, .contact-grid { grid-template-columns: 1fr; }
  .section-head--row { gap: 1rem; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .tour-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { padding-bottom: 4.5rem; }
  h1 { font-size: 4.1rem; }
  h2 { font-size: 2.6rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; line-height: 1.65; }
  .section { padding: 4.8rem 0; }
  .section-head { margin-bottom: 2.7rem; }
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.15rem; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: flex;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.7rem 1.4rem calc(1rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: var(--green-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s, opacity 0.22s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .hero { min-height: 740px; }
  .hero__overlay { background: rgba(19, 21, 17, 0.58); }
  .hero__grid { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 3.5rem; }
  .hero__actions, .cta-band__inner, .cta-band__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-card { display: flex; }
  .tour-card__body { padding: 1.35rem; }
  .request-grid, .guide-grid, .pillars, .steps, .form-row { grid-template-columns: 1fr; }
  .mini-card { grid-template-columns: 1fr; }
  .mini-card .link-arrow { grid-column: 1; justify-self: start; white-space: normal; }
  .guide-grid { gap: 1rem; }
  .guide-card p { min-height: 0; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__links { flex-direction: column; gap: 0.45rem; }
  .legal-page__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-page__intro { position: static; }
  .cta-band h2 { font-size: 2.15rem; }
}

@media (max-width: 460px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .hero { min-height: 700px; }
  .hero__badge { font-size: 0.68rem; }
  .check-list { display: block; }
  .check-list li { margin-bottom: 0.35rem; }
  .contact-form { padding: 1.35rem; }
  .h-captcha { width: 119%; transform: scale(0.84); transform-origin: top left; }
  .form-captcha { min-height: 66px; margin-bottom: 0.6rem; }
}
