/* ========================================
   ARCHEI — Landing Page Coming Soon
   ======================================== */

/* Reset & Base */
*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --color-text: #fff;
  --color-bg: #000;
  --color-footer-bg: #b4d124;
  --color-footer-text: #000;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  z-index: 1000;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.header-left,
.header-center,
.header-right {
  flex: 1;
}

.header-center {
  text-align: center;
}

.header-right {
  text-align: right;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-switch {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: color 0.3s;
}

.lang-switch:hover {
  color: #b4d124;
}

.lang-switch svg {
  transition: transform 0.3s;
}

.lang-dropdown.open .lang-switch svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.3s;
}

.lang-option:hover {
  color: #b4d124;
}

.logo-link {
  display: inline-block;
  cursor: default;
}

.logo-header {
  height: 2.5rem;
  width: auto;
}

.contact-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  transition: color 0.3s;
}

.contact-link:hover {
  color: #b4d124;
}

/* ========================================
   SLIDER SECTION
   ======================================== */

.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-areas: 'main';
  place-items: center;
}

/* Slider shared */
.slider {
  grid-area: main;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
}

.slider__item {
  grid-area: 1 / 1 / -1 / -1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.slider__item--current {
  opacity: 1;
  pointer-events: auto;
  z-index: 50;
}

.slider__item-inner {
  position: relative;
  width: 150%;
  height: 150%;
  display: grid;
  place-items: center;
  grid-area: 1 / 1 / -1 / -1;
  background-size: cover;
  background-position: 50% 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Background slider */
.slider--bg {
  z-index: 1;
  /* filter: contrast(0.6) saturate(2); */
}

/* Foreground slider (miniatura) */
.slider--fg {
  position: absolute;
  width: 40vw;
  min-width: 320px;
  aspect-ratio: 1.5;
  height: auto;
  z-index: 2;
}

/* Slider dark overlay */
.slider-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
}

/* Claim */
.claim {
  grid-area: main;
  position: relative;
  z-index: 100;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
  pointer-events: none;
  line-height: 1.1;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  z-index: 200;
}

.slider-nav__item {
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: lowercase;
  transition: color 0.3s;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.slider-nav__item:hover {
  color: #b4d124;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem 2rem;
  border-bottom: 1px solid #000;
}

.logo-footer {
  height: 30px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  font-weight: 400;
  transition: opacity 0.3s;
  font-size: 1rem;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-info {
  display: flex;
  border-bottom: 1px solid #000;
}

.footer-info-half {
  display: flex;
  flex: 1;
  padding: 2rem 2.5rem;
}

.footer-info-half:first-child {
  border-right: 1px solid #000;
}

.footer-col {
  flex: 1;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.footer-col p {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2rem;
}

.footer-col a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: opacity 0.2s;
}

.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.footer-col a:hover {
  opacity: 0.6;
}

.footer-bottom {
  text-align: right;
  padding: 1.5rem 2.5rem 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.footer-bottom a:hover {
  opacity: 0.6;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading .slider-section {
  visibility: hidden;
}

/* ========================================
   GRAIN OVERLAY
   ======================================== */

@keyframes grain-shift {
  0%, 100% { background-position: 0 0; }
  10% { background-position: -50px -100px; }
  20% { background-position: -150px 50px; }
  30% { background-position: 70px -250px; }
  40% { background-position: -50px 250px; }
  50% { background-position: -150px 100px; }
  60% { background-position: 150px 0; }
  70% { background-position: 0 150px; }
  80% { background-position: 30px 350px; }
  90% { background-position: -100px 100px; }
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../media/noise.png') repeat;
  opacity: 0.05;
  animation: grain-shift 1.2s steps(6) infinite both;
  pointer-events: none;
  z-index: 99998;
}