/* =========================================================
   TBS HOTEL — style.css
   Arquitetura Mobile-First. Media queries apenas para
   expandir o layout em telas maiores (768px / 1024px).
   Paleta: Vermelho, Azul (navy) e Branco.
========================================================== */

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  /* Cores da marca */
  --navy:            #001F3F;   /* Azul institucional (âncora) */
  --navy-deep:       #000613;   /* Azul quase preto */
  --red:             #C8102E;   /* Vermelho vibrante (CTA) */
  --red-dark:        #a30d25;
  --white:           #ffffff;
  --surface:         #f4f7f9;   /* Cinza-frio bem claro */
  --ink:             #181c1e;   /* Texto principal */
  --ink-soft:        #43474e;   /* Texto secundário */
  --line:            #e2e8f0;   /* Bordas/hairlines */
  --whatsapp:        #25D366;
  --whatsapp-dark:   #1ba851;

  /* Tipografia */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Escala de espaçamento (base 8px) */
  --sp-xs: 4px;
  --sp-sm: 12px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 80px;

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0,31,63,.06), 0 1px 3px rgba(0,31,63,.08);
  --shadow-md: 0 10px 20px rgba(0,31,63,.08), 0 3px 6px rgba(0,31,63,.06);
  --shadow-lg: 0 20px 40px rgba(0,31,63,.14);

  --header-h: 68px;
  --maxw: 1200px;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout utilitário ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 16px;
}
.text-accent { color: #ffd1d7; }

.section { padding-block: var(--sp-lg); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-lg); }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-sm);
}
.section__title { font-size: 28px; font-weight: 800; color: var(--navy); }
.section__lead { margin-top: var(--sp-sm); color: var(--ink-soft); font-size: 16px; }

/* =========================================================
   BOTÕES (touch targets >= 44px)
========================================================== */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn--primary  { --btn-bg: var(--red); }
.btn--primary:hover  { background: var(--red-dark); }
.btn--whatsapp { --btn-bg: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); --btn-fg: var(--white); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* =========================================================
   HEADER
========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .tbs-logo { font-size: 5.6px; } /* controla a escala do logo no header */
.brand__name {
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: .02em;
}
.brand__name span { color: #ffd1d7; font-weight: 600; }

/* Nav mobile: painel deslizante */
.nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(78vw, 320px);
  height: calc(100vh - var(--header-h));
  background: var(--navy);
  padding: var(--sp-md) 20px var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transform: translateX(105%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.nav.is-open { transform: translateX(0); }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: block;
  padding: 14px 12px;
  min-height: 48px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav__cta { margin-top: auto; } /* mobile: empurra o botão para o fim do painel */

/* Hamburguer */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.hamburger span {
  display: block;
  height: 3px; width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,6,19,.55) 0%, rgba(0,31,63,.65) 100%),
    rgba(0,0,0,.6);
}
.hero__content { padding-block: calc(var(--header-h) + var(--sp-lg)) var(--sp-xl); text-align: center; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
}
.hero__title {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 800;
  max-width: 20ch;
  margin-inline: auto;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero__subtitle {
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  margin: var(--sp-md) auto 0;
  max-width: 52ch;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.hero__actions { margin-top: var(--sp-lg); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: var(--sp-md);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--radius-full);
  display: none;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* =========================================================
   SERVIÇOS
========================================================== */
.services { background: var(--surface); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-sm);
  border-radius: var(--radius-full);
  background: rgba(0,31,63,.06);
  color: var(--navy);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.service-card p { font-size: 14px; color: var(--ink-soft); }

/* Experiência (vídeo de retenção) */
.experience {
  display: grid;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}
/* O frame encolhe até a largura exata do vídeo (fit-content) e centraliza,
   então não sobra fundo preto em nenhum lado — o vídeo ocupa todo o quadro. */
.experience__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.experience__video {
  height: min(78vh, 600px);
  aspect-ratio: 9 / 16;  /* fixa a proporção vertical: capa e vídeo ocupam o MESMO frame */
  width: auto;           /* largura derivada da altura + aspect-ratio (ignora o tamanho do poster) */
  max-width: 100%;
  display: block;
  object-fit: cover;     /* a capa (poster) preenche todo o frame, sem barras pretas */
}
.experience__title { font-size: 22px; color: var(--navy); margin-bottom: var(--sp-sm); }
.experience__text p { color: var(--ink-soft); margin-bottom: var(--sp-md); }

/* =========================================================
   QUARTOS
========================================================== */
.rooms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}
.room-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.room-card:hover .room-card__media img { transform: scale(1.06); }
.room-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.room-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-md) 20px 20px;
  flex: 1;
}
.room-card__title { font-size: 20px; color: var(--navy); }
.room-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.room-card__features li { position: relative; padding-left: 22px; }
.room-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.room-card__body .btn { margin-top: auto; }

/* =========================================================
   LOCALIZAÇÃO
========================================================== */
.location { background: var(--surface); }
.location__grid { display: grid; gap: var(--sp-md); }
.location__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
}
.info-item { display: flex; gap: var(--sp-sm); align-items: flex-start; }
.info-item__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(200,16,46,.1);
  color: var(--red);
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 15px; color: var(--navy); }
.info-item p { color: var(--ink-soft); }
.info-item a:hover { color: var(--red); text-decoration: underline; }
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.location__map iframe { height: 100%; min-height: 300px; }

/* =========================================================
   FOOTER
========================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding-block: var(--sp-lg);
  text-align: center;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-footer__brand .tbs-logo { font-size: 7px; } /* escala do logo no rodapé */
.site-footer__brand p { font-size: 14px; max-width: 30ch; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-md); }
.site-footer__nav a { font-weight: 600; color: rgba(255,255,255,.85); }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__social { display: flex; gap: var(--sp-sm); }
.site-footer__social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: background-color .2s ease, transform .2s ease;
}
.site-footer__social a:hover { background: var(--red); transform: translateY(-2px); }
.site-footer__social .icon { width: 22px; height: 22px; }
.site-footer__copy { font-size: 13px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--sp-md); width: 100%; }

/* =========================================================
   FAB WHATSAPP (pulse)
========================================================== */
.whatsapp-fab {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-fab svg { width: 32px; height: 32px; }
.whatsapp-fab:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  z-index: -1;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* =========================================================
   MEDIA QUERY — TABLET (>= 768px)
========================================================== */
@media (min-width: 768px) {
  .section { padding-block: var(--sp-xl); }
  .section__title { font-size: 36px; }
  .container { padding-inline: 24px; }

  .hero__scroll { display: block; }

  .services__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
  .service-card { padding: var(--sp-md); }

  .experience { grid-template-columns: 1.1fr 1fr; align-items: center; padding: var(--sp-md); }
  .experience__title { font-size: 26px; }

  .rooms__grid { grid-template-columns: repeat(2, 1fr); }

  .location__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .location__map { min-height: 100%; }

  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer__brand { flex-direction: row; text-align: left; }
  .site-footer__brand p { text-align: left; }
  .site-footer__copy { text-align: center; }
}

/* =========================================================
   MEDIA QUERY — DESKTOP (>= 1024px)
========================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 80px; }

  /* Navegação passa a ser horizontal — some o painel/hamburguer */
  .hamburger { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto; height: auto;
    padding: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
    gap: var(--sp-md);
  }
  .nav__list { flex-direction: row; align-items: center; gap: 4px; }
  .nav__link {
    border-bottom: none;
    color: rgba(255,255,255,.88);
    padding: 8px 14px;
    min-height: auto;
  }
  .nav__link:hover { background: transparent; color: #fff; }
  .nav__link::after {
    content: "";
    display: block;
    height: 2px; width: 0;
    background: var(--red);
    transition: width .25s ease;
    margin-top: 3px;
  }
  .nav__link:hover::after { width: 100%; }
  .nav__cta { margin-top: 0; padding: 10px 20px; min-height: 44px; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .rooms__grid { grid-template-columns: repeat(3, 1fr); }

  .hero__content { max-width: 860px; }
  .hero__title { font-size: 52px; }

  .whatsapp-fab { right: 28px; bottom: 28px; width: 64px; height: 64px; }
}

/* =========================================================
   LOGO TBS EM CSS PURO (escalável via font-size)
   Todas as medidas usam "em": 1em ≈ 25px no tamanho base.
   Para escalar, basta mudar o font-size do .tbs-logo.
========================================================== */
.tbs-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10em;
  height: 6em;
  flex: none;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  user-select: none;
}
/* Listras diagonais ao fundo (azul + vermelha) */
.tbs-logo__stripes {
  position: absolute;
  display: flex;
  gap: 0.16em;
  transform: skewX(-30deg);
  z-index: 1;
}
.tbs-logo__stripes .stripe { width: 0.8em; height: 7.6em; border-radius: 0.05em; }
.tbs-logo__stripes .blue { background-color: #2b4592; }
.tbs-logo__stripes .red  { background-color: #d8313d; }

/* Elipse central: fundo vermelho, anel branco, borda azul */
.tbs-logo__oval {
  position: relative;
  z-index: 2;
  width: 8.8em;
  height: 4.9em;
  background-color: #d8313d;
  border-radius: 50%;
  border: 0.18em solid #2b4592;
  box-shadow: inset 0 0 0 0.16em #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Texto principal "TBS" (serifado) */
.tbs-logo__title {
  font-family: "Times New Roman", Times, serif;
  color: #ffffff;
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.06em;
}
/* Subtítulo "HOTEL" (espaçado) */
.tbs-logo__sub {
  color: #ffffff;
  font-size: 0.46em;
  font-weight: 700;
  letter-spacing: 0.42em;
  padding-left: 0.42em; /* compensa o espaçamento à direita para centralizar */
  margin-top: -0.15em;
}

/* =========================================================
   ACESSIBILIDADE — reduz movimento
========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
