/* =====================================================================
   TELA: HOME (#home)
   Cabeçalho (logo + headline), grade de cards e rodapé (pílula azul).
   ===================================================================== */

.screen-home.active {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-y: auto;
}

.screen-home .home-content {
  flex: 1 1 auto;
  align-content: start;
}

.screen-home .home-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

.screen-home {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(115deg,
      #ffb400 0%,
      #ffc61f 22%,
      #ffe9a8 40%,
      #ffffff 50%,
      #cfe4f2 60%,
      #1e6aa8 78%,
      #0b2f57 100%);
}

/* Camadas decorativas do fundo (padrões, brilho central, rede de pontos) */
.home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-bg-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

.home-bg-net {
  position: absolute;
  top: 12%;
  right: 0;
  width: 46%;
  height: 55%;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.4px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.2px);
  background-size: 46px 46px, 30px 30px;
  background-position: 0 0, 15px 15px;
  -webkit-mask-image: linear-gradient(120deg, transparent, #000 60%);
  mask-image: linear-gradient(120deg, transparent, #000 60%);
}

/* Padrão de ondas suaves atrás de tudo (também usado na topbar) */
.home-pattern,
.topbar::after {
  position: absolute;
  top: 16px;
  right: -9px;
  width: 126px;
  height: 126px;
  content: "";
  opacity: 0.18;
  background:
    repeating-radial-gradient(ellipse at 90% 0%, transparent 0 9px, #fff 10px 12px, transparent 13px 20px);
  border-radius: 20px;
}

.home-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 30px 24px 0;
}

/* ===== Cabeçalho da home (logo + headline) ===== */
.home-header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.home-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.home-logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 41, 84, 0.25));
}

.home-logo-text {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #0a3254;
}

.home-headline {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0;
  line-height: 0.9;
}

.hl-script-top {
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8930f;
  transform: rotate(-4deg);
  margin-bottom: -2px;
}

.hl-inspira {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #0a3a68;
}

.hl-futuro {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #f4b223;
  text-shadow: 0 2px 6px rgba(0, 41, 84, 0.18);
  line-height: 0.85;
}

.hl-script-bottom {
  font-family: "Dancing Script", cursive;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0a3a68;
  transform: rotate(-4deg);
  margin-top: -4px;
}

/* ===== Marca antiga (mantida oculta / legado) ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 48px;
  place-items: center;
  color: currentColor;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-10deg);
}

.brand strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 0.92;
}

.brand span {
  display: block;
  margin-top: 5px;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-dark {
  color: var(--navy);
}

.brand-dark .brand-mark {
  background: linear-gradient(135deg, var(--navy), #0a477d);
  color: #fff;
  clip-path: polygon(38% 0, 78% 0, 100% 100%, 70% 100%, 62% 78%, 28% 78%, 20% 100%, 0 100%);
  font-size: 0;
}

.brand-light {
  justify-self: center;
  margin-bottom: 54px;
}

.brand-light .brand-mark {
  color: #fff;
  text-shadow: -2px 0 0 rgba(255, 255, 255, 0.85);
}

.hero-title {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.hero-title span {
  font-size: 1.74rem;
  font-weight: 300;
}

.hero-title strong,
.hero-title b {
  font-size: 2.34rem;
  font-weight: 900;
  line-height: 0.78;
}

.hero-title b {
  margin-top: 6px;
  color: var(--yellow);
}

/* ===== Grade de cards da home ===== */
.home-grid {
  display: grid;
  width: 100%;
  max-width: 340px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-self: center;
  margin-bottom: 24px;
}

.home-card {
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  align-content: center;
  padding: 6px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a3a68;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 41, 84, 0.16);
  backdrop-filter: blur(2px);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 41, 84, 0.28);
  outline: none;
}

.home-card svg {
  display: none;
}

.home-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Compensa o peso visual da ilustração dentro do PNG de hospedagem. */
.home-card[data-route="hospedagem"] .home-card-icon {
  transform: translateX(-2px);
}

/* ===== Barra inferior da home (pílula azul: 130 anos + Instagram) ===== */
.home-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 48px);
  max-width: 420px;
  margin: 8px auto 26px;
  padding: 10px 18px;
  border: 1.5px solid rgba(247, 200, 23, 0.85);
  border-radius: 999px;
  background: linear-gradient(180deg, #0d3b6e, #072c53);
  box-shadow: 0 8px 20px rgba(0, 25, 55, 0.35);
  color: #fff;
}

.home-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-footer-a {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.home-footer-anos {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 5px;
  line-height: 0.95;
}

.home-footer-anos b {
  grid-row: span 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.home-footer-anos i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-footer-anos small {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.home-footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-footer-ig svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
}

/* =====================================================================
   MEDIA QUERIES DA HOME
   ===================================================================== */
@media (min-width: 781px) {
  .screen-home.active {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .home-pattern,
  .topbar::after {
    right: clamp(18px, 8vw, 112px);
    width: clamp(150px, 18vw, 260px);
    height: clamp(150px, 18vw, 260px);
  }

  .home-content {
    min-height: 0;
    align-content: center;
    justify-content: center;
    padding: clamp(12px, 2vh, 24px) clamp(28px, 7vw, 96px) clamp(10px, 1.5vh, 18px);
  }

  .home-header {
    margin-bottom: clamp(20px, 3vh, 36px);
  }

  .brand-light {
    margin-bottom: clamp(22px, 4vh, 46px);
  }

  .brand-mark {
    width: clamp(46px, 5vw, 68px);
    height: clamp(48px, 5vw, 70px);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
  }

  .brand strong {
    font-size: clamp(1.14rem, 2vw, 1.62rem);
  }

  .brand span {
    font-size: clamp(0.56rem, 0.85vw, 0.72rem);
  }

  .hero-title {
    margin-bottom: clamp(20px, 4vh, 38px);
  }

  .hero-title span {
    font-size: clamp(1.74rem, min(3vw, 4.5vh), 2.55rem);
  }

  .hero-title strong,
  .hero-title b {
    font-size: clamp(2.34rem, min(5vw, 8vh), 4.25rem);
  }

  .home-logo-mark {
    width: clamp(44px, 4vw, 60px);
    height: clamp(44px, 4vw, 60px);
  }

  .home-logo-text {
    font-size: clamp(0.6rem, 0.85vw, 0.78rem);
  }

  .hl-script-top {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
  }

  .hl-inspira {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
  }

  .hl-futuro {
    font-size: clamp(2.3rem, 3.6vw, 3.4rem);
  }

  .hl-script-bottom {
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  }

  .home-grid {
    max-width: clamp(330px, 26vw, 400px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 15px);
    margin-bottom: clamp(12px, 2vh, 22px);
  }

  .home-card {
    aspect-ratio: 1 / 1;
    max-width: clamp(90px, 13vh, 120px);
    border-radius: 18px;
  }

  .home-footer {
    max-width: 480px;
    margin-bottom: clamp(24px, 4vh, 42px);
  }
}

@media (min-width: 781px) and (max-height: 820px) {
  .home-content {
    align-content: start;
    padding-top: clamp(10px, 2vh, 18px);
    padding-bottom: 10px;
  }

  .brand-light {
    margin-bottom: clamp(10px, 2vh, 18px);
  }

  .brand-mark {
    width: 48px;
    height: 50px;
    font-size: 2.35rem;
  }

  .brand strong {
    font-size: 1.16rem;
  }

  .hero-title {
    margin-bottom: clamp(14px, 2.4vh, 20px);
  }

  .hero-title span {
    font-size: clamp(1.5rem, 3.4vh, 1.9rem);
  }

  .hero-title strong,
  .hero-title b {
    font-size: clamp(2.45rem, 7.2vh, 3.55rem);
  }

  .home-grid {
    max-width: min(690px, calc(100vw - 48px));
    gap: clamp(14px, 2.2vh, 20px);
  }

  .home-card svg {
    width: clamp(38px, 6vh, 48px);
    height: clamp(38px, 6vh, 48px);
  }

  .home-footer {
    margin-bottom: clamp(14px, 2.4vh, 22px);
  }
}

@media (max-width: 360px) {
  .home-content {
    padding-inline: 24px;
  }

  .home-grid {
    gap: 14px;
  }

  .home-card {
    max-width: 100px;
  }

  .hero-title strong,
  .hero-title b {
    font-size: 2.1rem;
  }
}
