/* =========================================================
   KEY BARBER
   go.keybarber.id
   CTA / Social Link Hub
   ========================================================= */


/* ---------------------------------------------------------
   Fonts
   --------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap");


/* ---------------------------------------------------------
   Root
   --------------------------------------------------------- */

:root {
  /* Brand */
  --kb-ivory: #f5f0ea;
  --kb-cream: #eae1d8;
  --kb-burgundy: #482a2a;
  --kb-burgundy-dark: #2f1816;
  --kb-charcoal: #171514;
  --kb-black: #0d0c0b;
  --kb-taupe: #9b8d85;
  --kb-border: #d8cec5;
  --kb-white: #fffdfc;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;

  /* Layout */
  --page-width: 620px;
  --page-padding: 22px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 220ms;
  --duration-normal: 420ms;

  /* Layer */
  --z-background: 0;
  --z-content: 2;
}


/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;

  scroll-behavior: smooth;

  background: var(--kb-black);
}

body {
  position: relative;

  width: 100%;
  min-height: 100svh;

  margin: 0;

  overflow-x: hidden;

  background: var(--kb-black);
  color: var(--kb-ivory);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

img,
svg {
  display: block;

  max-width: 100%;
}

a {
  color: inherit;

  text-decoration: none;
}

button {
  border: 0;
  padding: 0;

  background: none;
  color: inherit;
}

address {
  font-style: normal;
}


/* ---------------------------------------------------------
   Selection
   --------------------------------------------------------- */

::selection {
  background: var(--kb-ivory);
  color: var(--kb-burgundy);
}


/* ---------------------------------------------------------
   Focus
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--kb-ivory);
  outline-offset: 5px;
}


/* ---------------------------------------------------------
   Background Wallpaper
   --------------------------------------------------------- */

.page-background {
  position: fixed;
  inset: 0;

  z-index: var(--z-background);

  pointer-events: none;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(47, 24, 22, 0.66) 0%,
      rgba(47, 24, 22, 0.74) 34%,
      rgba(23, 21, 20, 0.84) 68%,
      rgba(13, 12, 11, 0.96) 100%
    ),
    url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1800&q=88")
      center center / cover no-repeat;
}


/* top light */

.page-background::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 4%,
      rgba(255, 253, 252, 0.12) 0%,
      rgba(255, 253, 252, 0.04) 24%,
      transparent 52%
    );
}


/* vignette */

.page-background::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(13, 12, 11, 0.2) 0%,
      transparent 24%,
      transparent 76%,
      rgba(13, 12, 11, 0.2) 100%
    );
}


/* ---------------------------------------------------------
   Grain
   --------------------------------------------------------- */

.page-background__grain {
  position: absolute;
  inset: 0;

  opacity: 0.035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.9'/%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 180px 180px;
}


/* ---------------------------------------------------------
   Main Layout
   --------------------------------------------------------- */

.link-page {
  position: relative;

  z-index: var(--z-content);

  display: flex;
  justify-content: center;

  width: 100%;
  min-height: 100svh;

  padding:
    max(44px, env(safe-area-inset-top))
    var(--page-padding)
    max(30px, env(safe-area-inset-bottom));
}

.link-page__container {
  width: 100%;
  max-width: var(--page-width);
}


/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.link-brand {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding:
    20px
    0
    44px;

  text-align: center;
}

.link-brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 150px;

  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) ease;
}

.link-brand__logo:hover {
  transform: translateY(-2px);
}

.link-brand__logo img {
  width: 100%;
  height: auto;

  object-fit: contain;

  filter:
    brightness(0)
    invert(1);

  opacity: 0.98;
}

.link-brand__title {
  margin:
    30px
    0
    0;

  font-family: var(--font-display);
  font-size: clamp(2.7rem, 9vw, 4.3rem);
  font-weight: 400;

  line-height: 0.95;
  letter-spacing: -0.035em;

  color: var(--kb-ivory);

  text-shadow:
    0 2px 22px rgba(0, 0, 0, 0.18);
}

.link-brand__location {
  margin:
    18px
    0
    0;

  font-size: 0.67rem;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(245, 240, 234, 0.68);

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.25);
}


/* ---------------------------------------------------------
   Main Actions
   --------------------------------------------------------- */

.link-actions {
  display: flex;
  flex-direction: column;

  gap: 10px;
}


/* ---------------------------------------------------------
   Link Card
   --------------------------------------------------------- */

.link-card {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 92px;

  padding:
    18px
    20px;

  overflow: hidden;

  border: 1px solid rgba(245, 240, 234, 0.24);

  background: rgba(13, 12, 11, 0.34);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: var(--kb-ivory);

  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.08);

  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.link-card:hover {
  transform: translateY(-2px);

  border-color: var(--kb-ivory);

  background: var(--kb-ivory);
  color: var(--kb-burgundy);

  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.15);
}

.link-card.is-pressed {
  transform: scale(0.985);
}

.link-card__content {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: 17px;
}


/* ---------------------------------------------------------
   Primary CTA
   --------------------------------------------------------- */

.link-card--primary {
  min-height: 108px;

  border-color: rgba(245, 240, 234, 0.92);

  background: rgba(245, 240, 234, 0.96);
  color: var(--kb-burgundy);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.13);
}

.link-card--primary:hover {
  background: var(--kb-white);

  transform: translateY(-3px);

  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------------
   Card Icon / Number
   --------------------------------------------------------- */

.link-card__icon,
.link-card__number {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
}

.link-card__icon img {
  width: 22px;
  height: 22px;

  object-fit: contain;

  filter:
    brightness(0)
    invert(1);
}

.link-card--primary
.link-card__icon img {
  filter:
    brightness(0)
    saturate(100%);
}

.link-card:hover
.link-card__icon img {
  filter:
    brightness(0)
    saturate(100%);
}

.link-card__number {
  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  color: rgba(245, 240, 234, 0.5);
}

.link-card:hover
.link-card__number {
  color: rgba(72, 42, 42, 0.45);
}


/* ---------------------------------------------------------
   Card Typography
   --------------------------------------------------------- */

.link-card__text {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 4px;
}

.link-card__label {
  font-size: 0.58rem;
  font-weight: 700;

  letter-spacing: 0.13em;
  text-transform: uppercase;

  opacity: 0.55;
}

.link-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 500;

  line-height: 1.05;
  letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   Card Arrow
   --------------------------------------------------------- */

.link-card__arrow {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  transition:
    transform var(--duration-normal) var(--ease-out);
}

.link-card__arrow img {
  width: 16px;
  height: 16px;

  filter:
    brightness(0)
    invert(1);

  opacity: 0.78;
}

.link-card--primary
.link-card__arrow img {
  filter:
    brightness(0)
    saturate(100%);

  opacity: 0.65;
}

.link-card:hover
.link-card__arrow {
  transform: translate(3px, -3px);
}

.link-card:hover
.link-card__arrow img {
  filter:
    brightness(0)
    saturate(100%);
}


/* ---------------------------------------------------------
   Address
   --------------------------------------------------------- */

.link-address {
  margin-top: 58px;

  padding:
    30px
    0;

  border-top: 1px solid rgba(245, 240, 234, 0.2);
  border-bottom: 1px solid rgba(245, 240, 234, 0.2);
}

.link-address__label,
.link-social__label {
  display: block;

  margin-bottom: 18px;

  font-size: 0.6rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(245, 240, 234, 0.52);
}

.link-address address {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 400;

  line-height: 1.05;
  letter-spacing: -0.025em;

  color: var(--kb-ivory);

  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.18);
}

.link-address__map {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-top: 22px;

  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: rgba(245, 240, 234, 0.72);

  transition:
    color var(--duration-fast) ease;
}

.link-address__map:hover {
  color: var(--kb-ivory);
}

.link-address__map span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  transition:
    transform var(--duration-normal) var(--ease-out);
}

.link-address__map img {
  width: 12px;
  height: 12px;

  filter:
    brightness(0)
    invert(1);
}

.link-address__map:hover span {
  transform: translate(2px, -2px);
}


/* ---------------------------------------------------------
   Social
   --------------------------------------------------------- */

.link-social {
  padding:
    36px
    0
    20px;
}

.link-social__links {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}

.link-social__links > a {
  display: flex;
  align-items: center;

  gap: 12px;

  min-height: 60px;

  padding:
    14px
    16px;

  border: 1px solid rgba(245, 240, 234, 0.2);

  background: rgba(13, 12, 11, 0.28);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.06em;

  color: rgba(245, 240, 234, 0.88);

  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.link-social__links > a:hover {
  transform: translateY(-2px);

  border-color: var(--kb-ivory);

  background: var(--kb-ivory);
  color: var(--kb-burgundy);
}

.link-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
}

.link-social__icon img {
  width: 18px;
  height: 18px;

  filter:
    brightness(0)
    invert(1);
}

.link-social__links > a:hover
.link-social__icon img {
  filter:
    brightness(0)
    saturate(100%);
}


/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.link-contact {
  display: flex;
  justify-content: center;

  padding:
    28px
    0
    38px;
}

.link-contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);

  letter-spacing: -0.02em;

  color: rgba(245, 240, 234, 0.76);

  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.18);

  transition:
    color var(--duration-fast) ease;
}

.link-contact__email:hover {
  color: var(--kb-ivory);
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.link-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-top: 20px;

  border-top: 1px solid rgba(245, 240, 234, 0.16);

  font-size: 0.58rem;
  font-weight: 600;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: rgba(245, 240, 234, 0.44);
}

.link-footer p {
  margin: 0;
}


/* ---------------------------------------------------------
   Entrance Animation
   --------------------------------------------------------- */

@keyframes linkFadeUp {
  from {
    opacity: 0;

    transform:
      translateY(18px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

.link-brand,
.link-actions,
.link-address,
.link-social,
.link-contact,
.link-footer {
  opacity: 0;

  animation:
    linkFadeUp
    700ms
    var(--ease-out)
    forwards;
}

.link-brand {
  animation-delay: 50ms;
}

.link-actions {
  animation-delay: 120ms;
}

.link-address {
  animation-delay: 190ms;
}

.link-social {
  animation-delay: 250ms;
}

.link-contact {
  animation-delay: 310ms;
}

.link-footer {
  animation-delay: 360ms;
}


/* ---------------------------------------------------------
   Desktop
   --------------------------------------------------------- */

@media (min-width: 900px) {

  :root {
    --page-width: 660px;
  }

  .link-page {
    padding-top: 70px;
    padding-bottom: 44px;
  }

  .link-brand {
    padding-bottom: 52px;
  }

  .link-brand__logo {
    width: 165px;
  }

  .link-card {
    min-height: 96px;

    padding:
      20px
      24px;
  }

  .link-card--primary {
    min-height: 112px;
  }

  @media (hover: hover) {
    .link-card.is-pressed {
      transform:
        translateY(-1px)
        scale(0.99);
    }
  }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 480px) {

  :root {
    --page-padding: 16px;
  }

  .page-background {
    /*
      Mobile gets slightly stronger overlay,
      so portrait wallpaper doesn't fight the UI.
    */

    background:
      linear-gradient(
        180deg,
        rgba(47, 24, 22, 0.69) 0%,
        rgba(47, 24, 22, 0.78) 34%,
        rgba(23, 21, 20, 0.88) 70%,
        rgba(13, 12, 11, 0.97) 100%
      ),
      url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1000&q=85")
        center center / cover no-repeat;
  }

  .link-page {
    padding-top:
      max(
        30px,
        env(safe-area-inset-top)
      );
  }

  .link-brand {
    padding:
      10px
      0
      36px;
  }

  .link-brand__logo {
    width: 128px;
  }

  .link-brand__title {
    margin-top: 25px;
  }

  .link-card {
    min-height: 84px;

    padding:
      16px
      16px;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }

  .link-card--primary {
    min-height: 98px;
  }

  .link-card__content {
    gap: 13px;
  }

  .link-card__icon,
  .link-card__number {
    width: 27px;
    height: 27px;
  }

  .link-address {
    margin-top: 48px;
  }

  .link-social__links {
    grid-template-columns: 1fr;
  }

  .link-contact {
    justify-content: flex-start;
  }

  .link-footer {
    align-items: flex-start;
    flex-direction: column;

    gap: 7px;
  }
}


/* ---------------------------------------------------------
   Very Small Mobile
   --------------------------------------------------------- */

@media (max-width: 350px) {

  .link-card__number {
    display: none;
  }

  .link-card {
    gap: 12px;
  }

  .link-card__content {
    gap: 10px;
  }

  .link-card__title {
    font-size: 1.25rem;
  }
}


/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;

    transition-duration: 0.01ms !important;
  }

  .link-brand,
  .link-actions,
  .link-address,
  .link-social,
  .link-contact,
  .link-footer {
    opacity: 1;
  }
}