/* ==========================================================================
   Tri Hospitality · Home
   Mobile-first: estilos base = celular; @media (min-width) amplia para telas maiores.
   Breakpoints: 640px (tablet pequeno) · 900px (tablet/desktop) · 1100px (desktop largo)
   ========================================================================== */

:root {
  --ink: #1F2B31;
  --slate: #2F3E46;
  --slate-2: #455862;
  --orange: #F77733;
  --rust: #C24A12;
  --rust-dark: #A33F0F;
  --blush: #F5E2DA;
  --mist: #B2C5D4;
  --soft: #F3F4F6;
  --line: #E3E6EA;
  --ice: #E8EEF2;
  --white: #FFFFFF;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --section-y: 56px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 900px) {
  :root { --section-y: 88px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--slate); }
a:hover { color: var(--ink); }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
input, select, button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id], div[id], footer[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 900px; }

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--check { stroke: var(--rust); stroke-width: 2; flex: none; }

/* ---------- Tipografia ---------- */
h1, h2, .eyebrow, .card__title, .loc strong, .footer strong, .avatar, .rating__score strong {
  font-family: var(--font-head);
}

h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 1.45rem + 3.4vw, 3.5rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--slate);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 600;
  color: var(--rust);
}
.eyebrow--light { color: var(--blush); }
.eyebrow--dark { color: var(--rust-dark); }

.accent { color: var(--orange); }

.note { font-size: 14px; color: var(--slate-2); }

.link-strong {
  font-weight: 700;
  font-size: 16px;
  color: var(--slate);
}
.link-strong--sm { font-size: 15px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #ff8a4d; color: var(--ink); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn--lg { font-size: 17px; min-height: 54px; padding: 14px 28px; }
.btn--start { align-self: flex-start; }

/* ---------- Barra utilitária ---------- */
.topbar { background: var(--slate); color: var(--white); font-size: 14px; }
.topbar__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topbar__social { display: flex; align-items: center; gap: 16px; }
.topbar__label { display: none; }
.topbar a { color: var(--white); display: inline-flex; }

@media (min-width: 640px) {
  .topbar__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .topbar__label { display: inline; }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.site-header__inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; }
.brand img { height: 44px; width: auto; }

/* Botão hambúrguer (mobile) */
.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu: painel abaixo do cabeçalho no mobile */
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(20, 30, 36, .14);
  padding: 8px var(--gutter) 24px;
  flex-direction: column;
  font-weight: 600;
}
.nav.is-open { display: flex; }
.nav a {
  text-decoration: none;
  color: var(--slate);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.nav a.btn--nav {
  margin-top: 16px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .site-header__inner { padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
  .brand img { height: 56px; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav a { padding: 0; border: 0; }
  .nav a.btn--nav { margin: 0; padding: 12px 22px; min-height: 0; border: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--slate-2); color: var(--white); }
.hero__inner {
  padding-top: 40px;
  padding-bottom: 32px;
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero__text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ice);
  max-width: 520px;
}
.hero__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius-xl);
}

@media (min-width: 640px) {
  .hero__img { height: 340px; }
  .hero__text p { font-size: 19px; }
}
@media (min-width: 900px) {
  .hero__inner {
    padding-top: 72px;
    padding-bottom: 56px;
    gap: 48px;
    grid-template-columns: 1.1fr 1fr;
  }
  .hero__text { gap: 20px; }
  .hero__img { height: 420px; }
}

/* ---------- Caixa de reserva ---------- */
.booking-wrap { padding-bottom: 48px; }
.booking {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(20, 30, 36, .28);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--slate-2); }
.field input,
.field select {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 16px; /* 16px evita o zoom automático no iOS */
  color: var(--ink);
  background: var(--white);
}
.btn--form {
  height: 50px;
  min-height: 50px;
  border-radius: 12px;
  font-size: 17px;
  align-self: end;
}
.booking__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-2);
  font-weight: 600;
}
.booking__perks li { display: flex; align-items: flex-start; gap: 6px; }
.booking__perks svg { margin-top: 1px; }
.booking__perks a { color: var(--ink); }

@media (min-width: 640px) {
  .booking { grid-template-columns: 1fr 1fr; padding: 24px; }
  .btn--form, .booking__perks { grid-column: 1 / -1; }
  .booking__perks { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
}
@media (min-width: 1100px) {
  .booking-wrap { padding-bottom: 72px; }
  .booking { grid-template-columns: 1fr 1fr .9fr 1.2fr 1.2fr; align-items: end; }
  .btn--form { grid-column: auto; }
  .booking__perks { grid-column: 1 / -1; }
}

/* ---------- Localização ---------- */
.location { background: var(--soft); }
.location__grid {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  gap: 24px;
}
.loc { display: flex; gap: 14px; align-items: flex-start; }
.loc__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--slate-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc strong { display: block; font-size: 18px; }
.loc span { font-size: 15px; color: var(--slate-2); }

@media (min-width: 640px) {
  .location__grid { grid-template-columns: 1fr 1fr; padding-top: 48px; padding-bottom: 48px; }
}
@media (min-width: 1024px) {
  .location__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Seções genéricas ---------- */
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--soft); }
.section--blush { background: var(--blush); }

.stack-32, .stack-36, .stack-40 { display: flex; flex-direction: column; }
.stack-32 { gap: 28px; }
.stack-36 { gap: 28px; }
.stack-40 { gap: 32px; }
@media (min-width: 900px) {
  .stack-32 { gap: 32px; }
  .stack-36 { gap: 36px; }
  .stack-40 { gap: 40px; }
}

.section-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head__text--center { text-align: center; align-items: center; max-width: none; }
.section-head--row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 640px) {
  .section-head--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
  .section-head--center { align-items: flex-end; }
}

/* ---------- O hotel / vídeo ---------- */
.about {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  gap: 32px;
  align-items: center;
}
.about__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about__text p { font-size: 17px; line-height: 1.6; color: var(--slate-2); }
.about__text .link-strong { align-self: flex-start; }

.video {
  position: relative;
  height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--mist);
  min-width: 0;
}
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 43, 49, .28);
}
.video__play {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 30, 36, .35);
  transition: transform .15s ease;
}
.video__play:hover { transform: scale(1.06); }

@media (min-width: 640px) {
  .about__text p { font-size: 18px; }
  .video { height: 340px; }
  .video__play { width: 80px; height: 80px; }
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.3fr; gap: 48px; }
  .video { height: 360px; }
}

/* ---------- Chips sobre fotos ---------- */
.chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 14px;
  border-radius: 999px;
}
.chip--float { left: 16px; bottom: 16px; font-size: 14px; }
@media (min-width: 640px) {
  .chip--float { left: 20px; bottom: 20px; font-size: 15px; }
}

/* ---------- Galeria ---------- */
.gallery__inner {
  padding-top: 0;
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.gallery__row { display: grid; gap: 16px; }

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-width: 0;
  height: 260px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img.pos-left { object-position: left center; }
.photo img.pos-bath { object-position: center 60%; }

@media (min-width: 640px) {
  .photo { height: 320px; }
  .photo--lg { height: 340px; }
  .gallery__row--2 { grid-template-columns: 1fr 1fr; }
  .gallery__row--3 { grid-template-columns: 1fr 1fr; }
  .gallery__row--3 .photo:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .gallery__inner { gap: 32px; }
  .photo--lg { height: 380px; }
  .gallery__row--3 { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .gallery__row--3 .photo:nth-child(3) { grid-column: auto; }
}

/* ---------- Cartões ---------- */
.cards { display: grid; gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--lg { padding: 28px; gap: 14px; }
.card__title { font-weight: 700; font-size: 22px; color: var(--slate); }
.card p { font-size: 16px; line-height: 1.55; color: var(--slate-2); }
.card .link-strong { margin-top: auto; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
  .card--lg { padding: 32px; }
}
@media (min-width: 900px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Tri Fidelidade ---------- */
.loyalty { background: var(--slate); color: var(--white); }
.loyalty__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  gap: 32px;
  align-items: center;
}
.loyalty__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.loyalty__text h2 { color: var(--white); }
.loyalty__text p { font-size: 17px; line-height: 1.6; color: var(--ice); }
.loyalty__photos { display: grid; gap: 16px; min-width: 0; }

@media (min-width: 640px) {
  .loyalty__text p { font-size: 18px; }
  .loyalty__photos { grid-template-columns: 1fr 1fr; }
  .photo--loyalty { height: 340px; }
}
@media (min-width: 900px) {
  .loyalty__inner { grid-template-columns: 1fr 1.4fr; gap: 48px; }
}

/* ---------- Avaliações ---------- */
.rating {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--soft);
  border-radius: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.rating__score { display: flex; flex-direction: column; gap: 2px; }
.rating__score strong { font-size: 24px; color: var(--ink); line-height: 1.1; }
.rating__score span { font-size: 14px; color: var(--slate-2); }
.rating .link-strong { margin-left: 8px; }

.cards--reviews { gap: 20px; }
.review {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who > div:last-child { display: flex; flex-direction: column; }
.review__who strong { font-size: 16px; }
.review__who span { font-size: 14px; color: var(--slate-2); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.stars { display: flex; gap: 3px; }
.star { fill: #D5DBE0; }
.star.on { fill: var(--orange); }
.review p { font-size: 16px; line-height: 1.55; color: var(--ink); }
.review__reply {
  margin-top: auto;
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review__reply strong { font-size: 14px; color: var(--slate); }
.review__reply span { font-size: 14px; line-height: 1.5; color: var(--slate-2); }

@media (min-width: 700px) {
  .cards--reviews { grid-template-columns: 1fr 1fr; }
  .review { padding: 28px; }
}
@media (min-width: 1024px) {
  .cards--reviews { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border-radius: 16px; overflow: hidden; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--slate);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -3px; }
.faq__sign {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1;
  color: var(--rust);
  flex: none;
}
.faq__sign::before { content: '+'; }
.faq__item[open] .faq__sign::before { content: '\2212'; }
.faq__item p {
  padding: 0 20px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-2);
}

@media (min-width: 640px) {
  .faq__item summary { padding: 18px 24px; font-size: 18px; }
  .faq__item p { padding: 0 24px 22px; }
}

/* ---------- Chamada final ---------- */
.cta { background: var(--slate-2); color: var(--white); }
.cta__inner {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.cta__text h2 { color: var(--white); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); }
.cta__text p { font-size: 17px; color: var(--ice); }
.cta__actions { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 640px) {
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
  .cta__text p { font-size: 18px; }
}
@media (min-width: 900px) {
  .cta__inner {
    padding-top: 72px;
    padding-bottom: 72px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--slate); color: var(--ice); }
.footer__grid {
  padding-top: 48px;
  padding-bottom: 32px;
  display: grid;
  gap: 32px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { height: 60px; width: auto; align-self: flex-start; }
.footer__brand span { font-size: 15px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col strong { font-size: 17px; color: var(--white); }
.footer a { color: var(--ice); }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--slate-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__legal {
  padding-top: 20px;
  padding-bottom: 96px; /* espaço para o botão flutuante do WhatsApp */
  border-top: 1px solid var(--slate-2);
  font-size: 14px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; padding-top: 56px; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa__label {
  display: none;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(20, 30, 36, .22);
}
.wa__btn {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(20, 30, 36, .3);
  transition: transform .15s ease;
}
.wa__btn:hover { color: var(--white); transform: scale(1.06); }

@media (min-width: 640px) {
  .wa { right: 24px; bottom: 24px; }
  .wa__label { display: inline-block; }
  .wa__btn { width: 64px; height: 64px; }
  .footer__legal { padding-bottom: 32px; }
}
