/* =========================================================
   Panobianco — Estrada do Alvarenga
   Central de links
   ========================================================= */

:root {
  --orange: #F05A21;
  --dark: #2A2F33;
  --black: #090A0B;
  --white: #FFFFFF;
  --soft-white: #F6F6F6;
  --text-muted: rgba(255, 255, 255, 0.68);

  --font-main:
    "neue-haas-grotesk-display",
    "Helvetica Neue",
    Arial,
    sans-serif;

  --content-width: 520px;
  --feed-width: 760px;
  --page-padding: clamp(16px, 4vw, 34px);
}

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

html {
  min-height: 100%;
  background: var(--black);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--white);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* PÁGINA */
.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(34px, env(safe-area-inset-top))
    var(--page-padding)
    max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  isolation: isolate;
}

/* IMAGEM DE FUNDO */
/* =========================================================
   IMAGEM DE FUNDO
   ========================================================= */

.page-shell::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -2;

  background:
    url("./assets/academia-bg.png")
    center center / cover no-repeat;

  transform: scale(1.015);
}


/* =========================================================
   OVERLAY ESCURO
   ========================================================= */

.background-overlay {
  position: fixed;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  /*
    Overlay propositalmente mais escuro
    para manter leitura dos botões e textos.
  */
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(240, 90, 33, 0.10) 0%,
      rgba(20, 22, 24, 0.72) 38%,
      rgba(6, 7, 8, 0.94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 7, 8, 0.72) 0%,
      rgba(6, 7, 8, 0.82) 52%,
      rgba(6, 7, 8, 0.96) 100%
    );
}

/* WRAPPER */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* CARD PRINCIPAL */
.link-card {
  width: min(100%, var(--content-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* LOGO */
.brand-logo {
  width: clamp(190px, 42vw, 270px);
  margin-bottom: 30px;
}

.brand-logo img {
  width: 100%;
  height: auto;
}

/* UNIDADE */
.unit-info {
  width: 100%;
  margin-bottom: 30px;
}

.unit-label {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.unit-subtitle {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

/* BOTÕES */
.links {
  width: 100%;
  display: grid;
  gap: 12px;
}

.link-button {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 13px 68px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;

  background: rgba(42, 47, 51, 0.90);
  color: var(--white);

  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.link-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
}

.link-button:hover {
  transform: translateY(-2px);
  background: rgba(240, 90, 33, 0.96);
  border-color: var(--orange);
}

.link-button:active {
  transform: translateY(0);
}

/* SEM QUEBRA DE LINHA */
.link-button__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ÍCONES */
.link-button__icon {
  position: absolute;
  right: 7px;
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 11px;
  background: var(--orange);
  color: var(--white);
}

.link-button__icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

/* ENDEREÇO */
.address {
  width: 100%;
  max-width: 470px;

  display: flex;
  align-items: start;
  justify-content: center;
  gap: 11px;

  margin-top: 34px;
  padding: 0 10px;

  color: var(--white);
  text-decoration: none;
  text-align: center;

  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
}

.address svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: var(--orange);
}

.address:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* HORÁRIOS */
.hours {
  width: 100%;
  margin-top: 28px;
  padding: 21px 22px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;

  background: rgba(42, 47, 51, 0.58);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hours__title {
  display: block;
  margin-bottom: 15px;
  color: var(--orange);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.hours__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 9px 0;

  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hours__row:last-child {
  border-bottom: 0;
}

.hours__row strong {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

/* INSTAGRAM */
.instagram-section {
  width: min(100%, var(--feed-width));
  margin-top: clamp(42px, 7vh, 62px);
  text-align: center;
}

.instagram-section__header {
  margin-bottom: 18px;
}

.instagram-section__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
}

.instagram-section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.instagram-panel {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
}

/*
  Revukit cria o conteúdo dinamicamente.
  O seletor abaixo garante que o wrapper
  nunca ultrapasse a largura do layout.
*/
.instagram-panel > [data-revukit-instagram] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* FOOTER */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  margin-top: 34px;

  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  color: var(--orange);
}

/* FOCO */
.link-button:focus-visible,
.address:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* TABLET */
@media (max-width: 768px) {
  .page-shell::before {
    background-position: 56% center;
  }

  .instagram-section {
    width: min(100%, 640px);
  }
}

/* MOBILE */
@media (max-width: 520px) {
  .page-shell {
    padding-top: max(26px, env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .page-shell::before {
    background-position: 58% center;
  }

  .brand-logo {
    width: 178px;
    margin-bottom: 24px;
  }

  .unit-info {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.25rem);
    line-height: 1;
  }

  .unit-subtitle {
    margin-top: 9px;
    font-size: 0.9rem;
  }

  .links {
    gap: 10px;
  }

  .link-button {
    min-height: 56px;
    padding: 12px 58px;
    border-radius: 13px;
    font-size: clamp(0.86rem, 3.7vw, 0.96rem);
  }

  .link-button__icon {
    right: 5px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .link-button__icon svg {
    width: 21px;
    height: 21px;
  }

  .address {
    max-width: 340px;
    margin-top: 28px;
    padding: 0 6px;
    font-size: 0.88rem;
  }

  .address span {
    max-width: 285px;
  }

  .hours {
    margin-top: 24px;
    padding: 17px 16px;
    border-radius: 14px;
  }

  .hours__title {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .hours__row {
    gap: 12px;
    padding: 8px 0;
    font-size: 0.83rem;
  }

  .instagram-section {
    width: 100%;
    margin-top: 38px;
  }

  .instagram-section__header {
    margin-bottom: 15px;
  }

  .instagram-section__eyebrow {
    font-size: 0.82rem;
  }

  .instagram-section h2 {
    font-size: 1.42rem;
  }

  .instagram-panel {
    width: 100%;
    border-radius: 14px;
  }

  .footer {
    margin-top: 28px;
    font-size: 0.74rem;
  }
}

/* MOBILE PEQUENO */
@media (max-width: 380px) {
  .page-shell {
    padding-left: 13px;
    padding-right: 13px;
  }

  .brand-logo {
    width: 165px;
  }

  .link-button {
    min-height: 54px;
    padding-left: 54px;
    padding-right: 54px;
    font-size: 0.84rem;
  }

  .link-button__icon {
    width: 44px;
    height: 44px;
  }

  .hours__row {
    gap: 8px;
    font-size: 0.79rem;
  }

  .address {
    max-width: 305px;
    font-size: 0.84rem;
  }
}

/* TELAS EXTREMAMENTE ESTREITAS */
@media (max-width: 330px) {
  .link-button {
    padding-left: 50px;
    padding-right: 50px;
    font-size: 0.78rem;
  }
}

/* LANDSCAPE */
@media (max-height: 680px) and (orientation: landscape) {
  .page-shell {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .brand-logo {
    width: 155px;
    margin-bottom: 18px;
  }

  .unit-info {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .link-button {
    min-height: 50px;
  }

  .link-button__icon {
    width: 42px;
    height: 42px;
  }

  .instagram-section {
    margin-top: 32px;
  }

  .footer {
    margin-top: 24px;
  }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
