/* =========================================================
   OLIVER'S BARBEARIA
   Central de Links

   Assets:
   ./assets/logo.webp
   ./assets/background.webp
   ========================================================= */


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

:root {

  --black:
    #080808;

  --black-soft:
    #121212;

  --gold:
    #D6A83A;

  --gold-light:
    #F0CE70;

  --gold-dark:
    #8E681B;

  --white:
    #FFFFFF;

  --muted:
    #AAA69A;

  --surface:
    rgba(17, 17, 17, 0.91);

  --surface-hover:
    rgba(28, 26, 20, 0.96);

  --border:
    rgba(214, 168, 58, 0.20);

  --font-title:
    "Cinzel",
    serif;

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

  --content-width:
    520px;

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

}


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

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


html {
  width:
    100%;

  min-height:
    100%;

  background:
    var(--black);

  overflow-x:
    hidden;

  overscroll-behavior-y:
    none;
}


body {
  width:
    100%;

  min-height:
    100vh;

  min-height:
    100dvh;

  min-height:
    -webkit-fill-available;

  margin:
    0;

  background:
    var(--black);

  color:
    var(--white);

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

  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)
    );

  background:
    var(--black);

  isolation:
    isolate;

  overflow-x:
    hidden;
}


/* =========================================================
   4. BACKGROUND
   ========================================================= */

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

  position:
    fixed;

  /*
    Evita bordas claras no Safari.
  */
  inset:
    -4px;

  z-index:
    -2;

  pointer-events:
    none;

  background-color:
    var(--black);

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

  background-repeat:
    no-repeat;

  background-size:
    cover;

  background-position:
    center center;

  transform:
    scale(1.02);

  -webkit-transform:
    scale(1.02);

  transform-origin:
    center center;
}


/* =========================================================
   5. OVERLAY
   ========================================================= */

.background-overlay {
  position:
    fixed;

  inset:
    -4px;

  z-index:
    -1;

  pointer-events:
    none;

  background:

    linear-gradient(
      90deg,

      rgba(0,0,0,.94)
      0%,

      rgba(0,0,0,.72)
      22%,

      rgba(0,0,0,.46)
      50%,

      rgba(0,0,0,.72)
      78%,

      rgba(0,0,0,.94)
      100%
    ),

    linear-gradient(
      180deg,

      rgba(0,0,0,.40)
      0%,

      rgba(0,0,0,.48)
      35%,

      rgba(0,0,0,.78)
      72%,

      rgba(0,0,0,.98)
      100%
    ),

    radial-gradient(
      circle at 50% 20%,

      rgba(214,168,58,.18)
      0%,

      rgba(214,168,58,.06)
      30%,

      transparent
      62%
    );
}


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

.content-wrapper {
  position:
    relative;

  z-index:
    1;

  width:
    100%;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  margin:
    0 auto;
}


/* =========================================================
   7. CARD
   ========================================================= */

.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 18px;

  color:
    var(--gold-light);

  font-size:
    .78rem;

  font-weight:
    600;

  letter-spacing:
    .18em;

  text-transform:
    uppercase;
}


/* =========================================================
   9. LOGO
   ========================================================= */

.brand-mark {
  width:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    22px;
}


.brand-logo {
  width:
    clamp(
      190px,
      30vw,
      260px
    );

  height:
    auto;

  object-fit:
    contain;

  opacity:
    1;

  filter:
    drop-shadow(
      0 12px 28px
      rgba(0,0,0,.50)
    );
}


/* =========================================================
   10. IDENTIDADE
   ========================================================= */

.brand-copy {
  width:
    100%;

  margin-bottom:
    28px;
}


h1 {
  margin:
    0;

  color:
    var(--white);

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

  font-size:
    clamp(
      2rem,
      7vw,
      3.1rem
    );

  line-height:
    1;

  font-weight:
    600;

  letter-spacing:
    .015em;
}


.tagline {
  margin:
    9px 0 0;

  color:
    var(--gold-light);

  font-size:
    .86rem;

  font-weight:
    600;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


/* =========================================================
   11. LINKS
   ========================================================= */

.links {
  width:
    100%;

  display:
    grid;

  gap:
    11px;
}


/* =========================================================
   12. BOTÕES
   ========================================================= */

.link-button {
  position:
    relative;

  width:
    100%;

  min-height:
    61px;

  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 30px
    rgba(0,0,0,.26),

    inset 0 1px 0
    rgba(255,255,255,.025);

  backdrop-filter:
    blur(10px);

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

  transition:

    transform
    180ms
    ease,

    background
    180ms
    ease,

    border-color
    180ms
    ease,

    box-shadow
    180ms
    ease;
}


.link-button::before {
  content:
    "";

  position:
    absolute;

  left:
    0;

  top:
    14px;

  bottom:
    14px;

  width:
    4px;

  border-radius:
    0 4px 4px 0;

  background:

    linear-gradient(
      180deg,
      var(--gold-light),
      var(--gold-dark)
    );
}


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

  background:
    var(--surface-hover);

  border-color:
    rgba(214,168,58,.48);

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


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


.link-label {
  display:
    block;

  max-width:
    100%;

  white-space:
    nowrap;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  text-align:
    center;
}


/* =========================================================
   13. BADGES
   ========================================================= */

.icon-badge {
  position:
    absolute;

  right:
    6px;

  top:
    50%;

  transform:
    translateY(-50%);

  width:
    49px;

  height:
    49px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    11px;

  color:
    #090909;

  background:

    linear-gradient(
      145deg,
      #F3D278,
      #B98420
    );

  box-shadow:

    inset 0 1px 0
    rgba(255,255,255,.38),

    0 5px 16px
    rgba(0,0,0,.24);

  transition:

    transform
    180ms
    ease,

    filter
    180ms
    ease;
}


.icon-badge svg {
  width:
    22px;

  height:
    22px;

  fill:
    currentColor;
}


.icon-badge path {
  fill:
    currentColor;
}


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

  filter:
    brightness(1.05);
}


/* =========================================================
   14. FEEDBACK DE CÓPIA
   ========================================================= */

.copy-feedback {
  width:
    100%;

  margin:
    2px 0 0;

  color:
    var(--gold-light);

  font-size:
    .82rem;

  font-weight:
    600;

  text-align:
    center;

  opacity:
    0;

  visibility:
    hidden;

  transform:
    translateY(-4px);

  transition:

    opacity
    180ms
    ease,

    visibility
    180ms
    ease,

    transform
    180ms
    ease;

  pointer-events:
    none;
}


.copy-feedback.is-visible {
  opacity:
    1;

  visibility:
    visible;

  transform:
    translateY(0);
}


.copy-feedback[hidden] {
  display:
    none !important;
}


/* =========================================================
   15. ENDEREÇO
   ========================================================= */

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

  display:
    flex;

  justify-content:
    center;

  align-items:
    flex-start;

  gap:
    10px;

  margin:
    28px auto 0;

  padding:
    0 8px;

  color:
    rgba(255,255,255,.82);

  font-size:
    .89rem;

  font-weight:
    500;

  line-height:
    1.45;

  text-align:
    center;

  text-decoration:
    none;
}


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


.address svg {
  width:
    20px;

  height:
    20px;

  flex:
    0 0 20px;

  margin-top:
    2px;

  fill:
    var(--gold);
}


/* =========================================================
   16. HORÁRIOS
   ========================================================= */

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

  margin-top:
    28px;

  padding:
    19px 21px;

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

  border-radius:
    15px;

  background:
    rgba(14,14,14,.89);

  backdrop-filter:
    blur(10px);

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

  box-shadow:
    0 12px 30px
    rgba(0,0,0,.18);
}


.hours__title {
  margin:
    0 0 12px;

  color:
    var(--gold-light);

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

  font-size:
    .94rem;

  font-weight:
    600;

  letter-spacing:
    .1em;

  text-transform:
    uppercase;
}


.hours__row {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    18px;

  padding:
    9px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,.07);

  color:
    rgba(255,255,255,.72);

  font-size:
    .90rem;
}


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


.hours__row strong {
  color:
    var(--white);

  font-weight:
    700;

  white-space:
    nowrap;
}


.hours__row .closed {
  color:
    var(--gold);
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  margin-top:
    28px;

  color:
    rgba(255,255,255,.38);

  font-size:
    .74rem;
}


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

  text-decoration:
    none;

  font-weight:
    600;

  transition:
    color
    180ms
    ease;
}


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


/* =========================================================
   18. ANIMAÇÕES
   ========================================================= */

.reveal {
  opacity:
    0;

  transform:
    translateY(15px);

  transition:

    opacity
    620ms
    cubic-bezier(.22,1,.36,1)
    var(--reveal-delay,0ms),

    transform
    620ms
    cubic-bezier(.22,1,.36,1)
    var(--reveal-delay,0ms);
}


.reveal.is-visible {
  opacity:
    1;

  transform:
    translateY(0);
}


/* =========================================================
   19. ACESSIBILIDADE
   ========================================================= */

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

  outline-offset:
    4px;
}


/* =========================================================
   20. TABLET
   ========================================================= */

@media (
  max-width: 768px
) {

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

}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (
  max-width: 520px
) {

  .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)
      );
  }


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

    transform:
      scale(1.035);

    -webkit-transform:
      scale(1.035);
  }


  .eyebrow {
    font-size:
      .72rem;

    margin-bottom:
      15px;
  }


  .brand-mark {
    margin-bottom:
      18px;
  }


  .brand-logo {
    width:
      190px;
  }


  h1 {
    font-size:
      clamp(
        1.85rem,
        8.7vw,
        2.6rem
      );
  }


  .tagline {
    font-size:
      .77rem;
  }


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


  .links {
    gap:
      10px;
  }


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

    padding:
      12px 58px;

    border-radius:
      13px;

    font-size:
      clamp(
        .84rem,
        3.7vw,
        .92rem
      );
  }


  .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;
  }


  .address {
    max-width:
      330px;

    margin-top:
      26px;

    font-size:
      .84rem;
  }


  .hours {
    margin-top:
      24px;

    padding:
      17px 15px;
  }


  .hours__row {
    gap:
      10px;

    font-size:
      .82rem;
  }

}


/* =========================================================
   22. MOBILE PEQUENO
   ========================================================= */

@media (
  max-width: 380px
) {

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

    padding-right:
      13px;
  }


  .brand-logo {
    width:
      170px;
  }


  h1 {
    font-size:
      1.8rem;
  }


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

    padding-right:
      54px;

    font-size:
      .80rem;
  }


  .hours__row {
    font-size:
      .78rem;
  }

}


/* =========================================================
   23. TELAS MUITO ESTREITAS
   ========================================================= */

@media (
  max-width: 330px
) {

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

    padding-right:
      50px;

    font-size:
      .76rem;
  }

}


/* =========================================================
   24. 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;
  }

}
