/* === FONT IMPORT === */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/Assets/Fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/Assets/Fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts/Agrandir_Font_Family/agrandir-tight-bold.ttf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts/Agrandir_Font_Family/agrandir-tight-heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts//Agrandir_Font_Family/agrandir-tight-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts/Agrandir_Font_Family/agrandir-tight-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts/Agrandir_Font_Family/agrandir-tight-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Agrandir';
  src: url('/Assets/Fonts/Agrandir_Font_Family/agrandir-tight-thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Agrandir', sans-serif;
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.no-scroll {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bold {
  font-weight: 900;
}

.tight {
  font-weight: 300;
}

.h2, .cta-button {
  font-weight: 700;
}

.subtitle, nav a {
  font-weight: 500;
}

p, .bio-text {
  font-weight: 300;
}

.caption, .footer-note {
  font-weight: 100;
}

/* =================== */
/* === BASE HEADER === */
/* =================== */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.header-container {
  position: fixed;
  width: 90%;
  left: 5%;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  border-radius: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

#header-logo {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border: none;
  cursor: pointer;
  border-radius: 100%;
  display: block;
}

.nav {
  padding-left: 1.2rem;
  padding-right: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link, .nav a {
  color: #000;
  text-decoration: none;
  font-weight: 900;
  transition: color 0.3s ease;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  display: block;
}

.nav-link:hover, .nav a:hover {
  color: #a86daa;
}

/* =================== */
/* === BURGER MENU === */
/* =================== */
.burger-wrapper {
  display: none;
}

.burger-menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  z-index: 1002;
}

/* Toggle Button */
.burger-menu label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.burger-menu input {
  display: none;
}

.burger-menu svg {
  width: 100%;
  height: 100%;
}

.burger-menu circle {
  fill: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burger-menu label:hover circle {
  opacity: 1;
}

.burger-menu path {
  fill: none;
  stroke: #000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  --length: 24;
  --offset: -38;
  stroke-dasharray: var(--length) var(--total-length);
  stroke-dashoffset: var(--offset);
  transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Burger to Cross animation */
.burger-menu input:checked + label svg .line--1,
.burger-menu input:checked + label svg .line--3 {
  --length: 22.627416998;
  --offset: -94.1149185097;
}

.burger-menu input:checked + label svg .line--2 {
  --length: 0;
  --offset: -50;
}

/* Line lengths */
.burger-menu .line--1,
.burger-menu .line--3 {
  --total-length: 126.64183044433594;
}
.burger-menu .line--2 {
  --total-length: 70;
}

/* White Background Expansion */
.menu-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  clip-path: circle(0px at calc(100% - 30px) 45px);
  transition: clip-path 0.6s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

body.menu-open .menu-bg {
  clip-path: circle(150% at calc(100% - 30px) 45px);
}

/* Overlay with Nav */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

body.menu-open .menu-overlay {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Nav Links */
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2rem;
  margin-top: 15vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  padding-left: 3rem;
}

.mobile-nav a {
  color: #000;
  font-size: 2rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

.nav-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #000;
  align-self: center;
}

/* Social Icons */
.nav-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons img {
  width: 64px;
  height: 64px;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.store-buttons img {
  height: 45px;
}

/* Animate links in after expansion */
body.menu-open .mobile-nav a,
body.menu-open .nav-divider,
body.menu-open .nav-footer,
body.menu-open .social-icons a,
body.menu-open .store-buttons a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInZoom 0.5s ease forwards;
}

/* Pages links */
body.menu-open .mobile-nav a:nth-child(1) { animation-delay: 0.4s; }
body.menu-open .mobile-nav a:nth-child(2) { animation-delay: 0.4s; }
body.menu-open .mobile-nav a:nth-child(3) { animation-delay: 0.4s; }
body.menu-open .mobile-nav a:nth-child(4) { animation-delay: 0.4s; }
body.menu-open .mobile-nav a:nth-child(5) { animation-delay: 0.4s; }
body.menu-open .mobile-nav a:nth-child(6) { animation-delay: 0.4s; }
/* Divider */
body.menu-open .nav-divider { animation-delay: 0.4s; }
/* Social Icons */
body.menu-open .social-icons a:nth-child(1) { animation-delay: 0.4s; }
body.menu-open .social-icons a:nth-child(2) { animation-delay: 0.4s; }
body.menu-open .social-icons a:nth-child(3) { animation-delay: 0.4s; }
body.menu-open .social-icons a:nth-child(4) { animation-delay: 0.4s; }
/* Store Buttons */
body.menu-open .store-buttons a:nth-child(1) { animation-delay: 0.4s; }
body.menu-open .store-buttons a:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.30);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =================== */
/* === MEDIA QUERY === */
/* =================== */
@media (max-width: 1024px) {
  .header-container {
    position: fixed;
    width: 90%;
    left: 5%;
    z-index: 1001;
  }

  .nav {
    display: none;
  }

  .burger-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}