/* =========================================================
   CT BRUCUTUS / RYAN GRACIE SBC
   Central de Links

   Assets esperados:
   ./assets/logo1.webp
   ./assets/logo2.webp
   ./assets/background.webp
   ========================================================= */


/* =========================================================
   1. VARIÁVEIS
   ========================================================= */

:root {
  --black: #171719;
  --black-deep: #09090A;

  --burgundy: #781D24;
  --red: #A9232D;

  --silver: #777777;
  --silver-light: #D0D0D0;

  --white: #FFFFFF;

  --surface:
    rgba(23, 23, 25, 0.92);

  --surface-hover:
    rgba(34, 34, 37, 0.96);

  --border:
    rgba(208, 208, 208, 0.14);

  --font-title:
    "Oswald",
    sans-serif;

  --font-main:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --content-width:
    520px;

  --page-padding:
    clamp(16px, 4vw, 34px);

  /*
    Tamanho único para os dois logos.
  */
  --logo-size:
    132px;
}


/* =========================================================
   2. RESET
   ========================================================= */

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


html {
  width:
    100%;

  min-height:
    100%;

  background:
    var(--black-deep);

  overflow-x:
    hidden;

  overscroll-behavior-y:
    none;
}


body {
  width:
    100%;

  margin:
    0;

  min-height:
    100vh;

  min-height:
    100dvh;

  min-height:
    -webkit-fill-available;

  font-family:
    var(--font-main);

  color:
    var(--white);

  background:
    var(--black-deep);

  overflow-x:
    hidden;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}


img,
svg {
  display:
    block;

  max-width:
    100%;
}


a {
  color:
    inherit;
}


button {
  font:
    inherit;
}


/* =========================================================
   3. PÁGINA
   ========================================================= */

.page-shell {
  position:
    relative;

  width:
    100%;

  min-height:
    100vh;

  min-height:
    100dvh;

  min-height:
    -webkit-fill-available;

  padding:

    max(
      28px,
      env(safe-area-inset-top)
    )

    var(--page-padding)

    max(
      30px,
      env(safe-area-inset-bottom)
    );

  /*
    Fundo de segurança.
  */
  background:
    var(--black-deep);

  overflow-x:
    hidden;

  isolation:
    isolate;
}


/* =========================================================
   4. IMAGEM DE FUNDO

   IMPORTANTE:
   o arquivo deve estar em:

   assets/background.webp
   ========================================================= */

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

  position:
    fixed;

  /*
    Alguns pixels extras evitam
    bordas claras no Safari/iPhone.
  */
  inset:
    -4px;

  z-index:
    -2;

  pointer-events:
    none;

  background-color:
    var(--black-deep);

  background-image:
    url("./assets/background.webp");

  background-repeat:
    no-repeat;

  background-size:
    cover;

  /*
    Desktop:
    imagem totalmente centralizada.
  */
  background-position:
    50% 50%;

  transform:
    scale(1.015);

  transform-origin:
    center center;

  /*
    Safari / iOS
  */
  -webkit-transform:
    scale(1.015);

  -webkit-transform-origin:
    center center;
}


/* =========================================================
   5. OVERLAY DO BACKGROUND
   ========================================================= */

.background-overlay {
  position:
    fixed;

  inset:
    -4px;

  z-index:
    -1;

  pointer-events:
    none;

  background:

    /*
      Vinheta lateral.
    */
    linear-gradient(
      90deg,

      rgba(9, 9, 10, 0.94)
      0%,

      rgba(9, 9, 10, 0.72)
      20%,

      rgba(9, 9, 10, 0.40)
      50%,

      rgba(9, 9, 10, 0.72)
      80%,

      rgba(9, 9, 10, 0.94)
      100%
    ),

    /*
      Escurecimento vertical.
    */
    linear-gradient(
      180deg,

      rgba(9, 9, 10, 0.46)
      0%,

      rgba(9, 9, 10, 0.42)
      30%,

      rgba(9, 9, 10, 0.74)
      70%,

      rgba(9, 9, 10, 0.98)
      100%
    ),

    /*
      Glow vermelho/bordô discreto.
    */
    radial-gradient(
      circle at 50% 22%,

      rgba(120, 29, 36, 0.24)
      0%,

      rgba(120, 29, 36, 0.09)
      30%,

      rgba(9, 9, 10, 0)
      62%
    );
}


/* =========================================================
   6. WRAPPER
   ========================================================= */

.content-wrapper {
  position:
    relative;

  z-index:
    1;

  width:
    100%;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  margin:
    0 auto;
}


/* =========================================================
   7. CONTEÚDO PRINCIPAL
   ========================================================= */

.link-card {
  width:
    min(
      100%,
      var(--content-width)
    );

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  text-align:
    center;
}


/* =========================================================
   8. EYEBROW
   ========================================================= */

.eyebrow {
  margin:
    0 0 20px;

  color:
    var(--silver-light);

  font-family:
    var(--font-title);

  font-size:
    0.82rem;

  font-weight:
    500;

  letter-spacing:
    0.18em;

  text-transform:
    uppercase;
}


/* =========================================================
   9. CONTAINER DOS DOIS LOGOS
   ========================================================= */

.brand-logos {
  width:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    24px;

  margin-bottom:
    26px;
}


/* =========================================================
   10. LOGOS

   Ambos têm:
   - mesmo tamanho
   - mesmo formato
   - círculo perfeito
   - mesmo recorte
   ========================================================= */

.brand-logo-box {
  width:
    var(--logo-size);

  height:
    var(--logo-size);

  flex:
    0 0
    var(--logo-size);

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    50%;

  overflow:
    hidden;

  background:
    #0A0A0B;

  border:
    1px solid
    rgba(208, 208, 208, 0.24);

  box-shadow:

    0 14px 34px
    rgba(0, 0, 0, 0.34),

    0 0 0 1px
    rgba(255, 255, 255, 0.025)
    inset;
}


/*
  Os dois arquivos são obrigados
  a ocupar exatamente o mesmo espaço.
*/

.brand-logo {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  object-position:
    center;

  border-radius:
    50%;

  opacity:
    1;

  filter:
    none;

  mix-blend-mode:
    normal;
}


/* =========================================================
   11. DIVISOR ENTRE OS LOGOS
   ========================================================= */

.brand-logo-divider {
  width:
    1px;

  height:
    70px;

  flex:
    0 0 1px;

  background:

    linear-gradient(
      180deg,

      transparent
      0%,

      rgba(208, 208, 208, 0.38)
      50%,

      transparent
      100%
    );
}


/* =========================================================
   12. TÍTULO / IDENTIDADE
   ========================================================= */

.brand-copy {
  width:
    100%;

  margin-bottom:
    28px;
}


h1 {
  margin:
    0;

  color:
    var(--white);

  font-family:
    var(--font-title);

  font-size:
    clamp(
      2.4rem,
      7vw,
      3.5rem
    );

  line-height:
    0.95;

  font-weight:
    700;

  letter-spacing:
    0.015em;

  text-transform:
    uppercase;
}


.brand-subtitle {
  display:
    block;

  margin-top:
    9px;

  color:
    var(--silver-light);

  font-family:
    var(--font-title);

  font-size:
    1.05rem;

  font-weight:
    500;

  letter-spacing:
    0.12em;

  text-transform:
    uppercase;
}


.tagline {
  margin:
    8px 0 0;

  color:
    var(--red);

  font-size:
    0.84rem;

  font-weight:
    700;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}


/* =========================================================
   13. LINKS
   ========================================================= */

.links {
  width:
    100%;

  display:
    grid;

  gap:
    12px;
}


/* =========================================================
   14. BOTÕES
   ========================================================= */

.link-button {
  position:
    relative;

  width:
    100%;

  min-height:
    62px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    13px 70px;

  border:
    1px solid
    var(--border);

  border-radius:
    14px;

  background:
    var(--surface);

  color:
    var(--white);

  text-decoration:
    none;

  cursor:
    pointer;

  font-size:
    1rem;

  font-weight:
    700;

  line-height:
    1;

  box-shadow:

    0 12px 32px
    rgba(0, 0, 0, 0.22),

    inset 0 1px 0
    rgba(255, 255, 255, 0.025);

  backdrop-filter:
    blur(12px);

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

  transition:

    transform
    180ms
    ease,

    background
    180ms
    ease,

    border-color
    180ms
    ease,

    box-shadow
    180ms
    ease;
}


/* Filete lateral */
.link-button::before {
  content:
    "";

  position:
    absolute;

  left:
    0;

  top:
    14px;

  bottom:
    14px;

  width:
    4px;

  border-radius:
    0 4px 4px 0;

  background:
    var(--burgundy);
}


.link-button:hover {
  transform:
    translateY(-2px);

  background:
    var(--surface-hover);

  border-color:
    rgba(169, 35, 45, 0.60);

  box-shadow:
    0 16px 36px
    rgba(0, 0, 0, 0.30);
}


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


/* =========================================================
   15. TEXTO DOS BOTÕES
   ========================================================= */

.link-label {
  max-width:
    100%;

  white-space:
    nowrap;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  text-align:
    center;
}


/* =========================================================
   16. BADGES
   ========================================================= */

.icon-badge {
  position:
    absolute;

  right:
    6px;

  top:
    50%;

  transform:
    translateY(-50%);

  width:
    50px;

  height:
    50px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    11px;

  background:

    linear-gradient(
      145deg,
      var(--red),
      var(--burgundy)
    );

  color:
    var(--white);

  overflow:
    hidden;

  box-shadow:

    inset 0 1px 0
    rgba(255, 255, 255, 0.12);

  transition:

    transform
    180ms
    ease,

    filter
    180ms
    ease;
}


.icon-badge svg {
  width:
    23px;

  height:
    23px;

  fill:
    currentColor;
}


.icon-badge path {
  fill:
    currentColor;
}


.link-button:hover
.icon-badge {
  transform:
    translateY(-50%)
    scale(1.04);

  filter:
    brightness(1.08);
}


/* =========================================================
   17. ENDEREÇO
   ========================================================= */

.address {
  width:
    min(
      100%,
      470px
    );

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    center;

  gap:
    10px;

  margin:
    30px auto 0;

  padding:
    0 10px;

  color:
    rgba(255, 255, 255, 0.84);

  font-size:
    0.91rem;

  font-weight:
    500;

  line-height:
    1.45;

  text-align:
    center;

  text-decoration:
    none;

  transition:
    color
    180ms
    ease;
}


.address:hover {
  color:
    var(--white);
}


.address svg {
  width:
    21px;

  height:
    21px;

  flex:
    0 0 21px;

  margin-top:
    2px;

  fill:
    var(--red);
}


/* =========================================================
   18. MODALIDADES
   ========================================================= */

.modalities {
  width:
    min(
      100%,
      var(--content-width)
    );

  margin-top:
    28px;

  padding:
    20px;

  border:
    1px solid
    var(--border);

  border-radius:
    15px;

  background:
    rgba(23, 23, 25, 0.88);

  backdrop-filter:
    blur(12px);

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

  box-shadow:
    0 12px 32px
    rgba(0, 0, 0, 0.16);
}


.section-title {
  margin:
    0 0 15px;

  color:
    var(--silver-light);

  font-family:
    var(--font-title);

  font-size:
    1rem;

  font-weight:
    500;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}


.modalities-list {
  display:
    flex;

  flex-wrap:
    wrap;

  justify-content:
    center;

  gap:
    9px;
}


.modalities-list span {
  padding:
    9px 13px;

  border:
    1px solid
    rgba(169, 35, 45, 0.30);

  border-radius:
    999px;

  background:
    rgba(9, 9, 10, 0.56);

  color:
    var(--silver-light);

  font-size:
    0.84rem;

  font-weight:
    600;
}


/* =========================================================
   19. FOOTER
   ========================================================= */

.footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  margin-top:
    28px;

  color:
    rgba(208, 208, 208, 0.44);

  font-size:
    0.76rem;
}


.footer a {
  color:
    rgba(255, 255, 255, 0.78);

  font-weight:
    600;

  text-decoration:
    none;

  transition:
    color
    180ms
    ease;
}


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


/* =========================================================
   20. ANIMAÇÕES JS
   ========================================================= */

.reveal {
  opacity:
    0;

  transform:
    translateY(16px);

  transition:

    opacity
    650ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    var(--reveal-delay, 0ms),

    transform
    650ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    var(--reveal-delay, 0ms);
}


.reveal.is-visible {
  opacity:
    1;

  transform:
    translateY(0);
}


/* =========================================================
   21. ACESSIBILIDADE
   ========================================================= */

.link-button:focus-visible,
.address:focus-visible,
.footer a:focus-visible {
  outline:
    3px solid
    var(--red);

  outline-offset:
    4px;
}


/* =========================================================
   22. TABLET
   ========================================================= */

@media (
  max-width: 768px
) {

  .page-shell::before {
    background-position:
      50% 48%;
  }

}


/* =========================================================
   23. MOBILE
   ========================================================= */

@media (
  max-width: 520px
) {

  :root {
    --logo-size:
      108px;
  }


  .page-shell {
    padding-top:

      max(
        24px,
        env(safe-area-inset-top)
      );

    padding-left:
      16px;

    padding-right:
      16px;

    padding-bottom:

      max(
        28px,
        env(safe-area-inset-bottom)
      );
  }


  /*
    Background centralizado principalmente
    para iPhone e telas verticais.
  */
  .page-shell::before {
    background-position:
      50% 44%;

    transform:
      scale(1.03);

    -webkit-transform:
      scale(1.03);
  }


  .eyebrow {
    margin-bottom:
      16px;

    font-size:
      0.74rem;
  }


  /* Logos */
  .brand-logos {
    gap:
      15px;

    margin-bottom:
      22px;
  }


  .brand-logo-divider {
    height:
      56px;
  }


  h1 {
    font-size:
      clamp(
        2rem,
        10vw,
        2.8rem
      );
  }


  .brand-subtitle {
    font-size:
      0.92rem;
  }


  .tagline {
    font-size:
      0.76rem;
  }


  .brand-copy {
    margin-bottom:
      24px;
  }


  /* Botões */
  .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::before {
    top:
      13px;

    bottom:
      13px;
  }


  .icon-badge {
    right:
      5px;

    width:
      46px;

    height:
      46px;

    border-radius:
      10px;
  }


  .icon-badge svg {
    width:
      21px;

    height:
      21px;
  }


  /* Endereço */
  .address {
    max-width:
      340px;

    margin-top:
      26px;

    font-size:
      0.84rem;
  }


  /* Modalidades */
  .modalities {
    margin-top:
      24px;

    padding:
      17px 14px;
  }


  .section-title {
    font-size:
      0.9rem;
  }


  .modalities-list span {
    font-size:
      0.78rem;

    padding:
      8px 11px;
  }


  .footer {
    font-size:
      0.72rem;
  }

}


/* =========================================================
   24. MOBILE PEQUENO
   ========================================================= */

@media (
  max-width: 380px
) {

  :root {
    --logo-size:
      94px;
  }


  .page-shell {
    padding-left:
      13px;

    padding-right:
      13px;
  }


  .page-shell::before {
    background-position:
      50% 43%;
  }


  .brand-logos {
    gap:
      12px;
  }


  .brand-logo-divider {
    height:
      48px;
  }


  h1 {
    font-size:
      1.9rem;
  }


  .link-button {
    min-height:
      54px;

    padding-left:
      54px;

    padding-right:
      54px;

    font-size:
      0.82rem;
  }


  .icon-badge {
    width:
      44px;

    height:
      44px;
  }

}


/* =========================================================
   25. TELAS MUITO PEQUENAS
   ========================================================= */

@media (
  max-width: 330px
) {

  :root {
    --logo-size:
      84px;
  }


  .brand-logos {
    gap:
      10px;
  }


  .link-button {
    padding-left:
      50px;

    padding-right:
      50px;

    font-size:
      0.77rem;
  }

}


/* =========================================================
   26. LANDSCAPE
   ========================================================= */

@media (
  max-height: 680px
)
and
(
  orientation: landscape
) {

  :root {
    --logo-size:
      90px;
  }


  .page-shell {
    padding-top:
      20px;

    padding-bottom:
      20px;
  }


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


  h1 {
    font-size:
      2rem;
  }


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


  .icon-badge {
    width:
      42px;

    height:
      42px;
  }

}


/* =========================================================
   27. REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  *,
  *::before,
  *::after {
    transition:
      none !important;

    scroll-behavior:
      auto !important;
  }


  .reveal {
    opacity:
      1 !important;

    transform:
      none !important;
  }

}
