/* ═══════════════════════════════════════════════════════════════
   CONTACT US PAGE — style.css
   Reuses existing design system (tokens + container + typography)
═══════════════════════════════════════════════════════════════ */

/* Fonts: Archivo (WOFF2) via css/fonts.css; Lenia Sans via css/common.css */

/* ─── RESET & PAGE ───────────────────────────────────────────── */

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

html, body {
  height: 100%;
}

body {
  background: #131313;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  background: #131313;
}

/* ─── DESIGN SYSTEM ───────────────────────────────────────────── */

:root {
  --color-bg: #131313;
  --color-surface: #0f0f0f;
  --color-text: #f0f0e5;
  --color-muted: #b3b3b3;
  --color-border: rgba(217, 217, 217, 0.2);
  --color-border-strong: rgba(240, 240, 229, 0.4);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 48px;
  --space-5: 80px;

  --radius-1: 16px;
  --radius-2: 24px;

  --shadow-soft: 0px 3.25px 3.25px -1.625px rgba(0,0,0,0.06),
    0px 1.083px 1.083px -0.542px rgba(0,0,0,0.17),
    0px 0px 0px 1.083px rgba(0,0,0,0.02);

  --container-max: 1200px;
  --content-max: 72ch;

  --header-height: 80px;
  --header-blur: 25px;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: 'Lenia Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(90%, var(--container-max));
  margin: 0 auto;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-height);
}

.site-header__logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0.6em;
  color: var(--color-text);
}

.site-header__logo:focus-visible {
  outline: 2px solid rgba(240, 240, 229, 0.55);
  outline-offset: 6px;
  border-radius: 10px;
}

/* ─── HERO ───────────────────────────────────────────────────── */

.hero-contact {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--space-5) + 20px + var(--hero-top-bar-total, 0px)) 0 var(--space-5);
  text-align: center;
}

/* ─── CONTACT SECTION ────────────────────────────────────────── */

.contact {
  padding: var(--space-5) 0;
}

.contact__inner {
  display: grid;
  gap: var(--space-4);
}

.contact__headline {
  font-family: 'Lenia Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  color: var(--color-text);
  max-width: 18ch;
}

.contact__items {
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-item--address {
  align-items: flex-start;
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  border-radius: 10.83px;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.contact-item__icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.contact-item__text {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2.4vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.contact__right {
  display: grid;
  gap: 30px;
}

.contact__desc {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.4;
  color: var(--color-text);
  max-width: var(--content-max);
}

/* ─── FORM ───────────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 24px;
}

.form__field {
  display: grid;
  gap: var(--space-1);
}

.form__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text);
  opacity: 0.65;
}

.form__input {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-strong);
  color: var(--color-text);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  outline: none;
}

.form__input::placeholder {
  color: var(--color-text);
  opacity: 0.5;
}

.form__input:focus-visible {
  border-bottom-color: rgba(240, 240, 229, 0.85);
}

.form__textarea {
  resize: vertical;
  min-height: 160px;
}

.form__phone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0;
}

.form__phone-country {
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-strong);
  cursor: pointer;
}

.form__phone-country:focus-visible {
  outline: 2px solid rgba(240, 240, 229, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.form__phone-flag {
  width: 40px;
  height: 26.67px;
}

.form__phone-chevron {
  width: 16px;
  height: 16px;
}

.form__input--phone {
  padding-left: 16px;
}

.form__submit {
  justify-self: start;
  padding: 20px 40px;
  background: var(--color-text);
  border: 0;
  cursor: pointer;
  font-family: 'Lenia Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-bg);
}

.form__submit:focus-visible {
  outline: 2px solid rgba(240, 240, 229, 0.55);
  outline-offset: 4px;
}

/* ─── FOOTER (reuse existing system) ─────────────────────────── */

.site-footer {
  position: relative;
  background: #0F0F0F;
  overflow: hidden;
  padding: var(--space-5) 0 var(--space-4);
  min-height: 762px;
}

.footer-bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -199px;
  height: 961px;
  background: #000000;
  overflow: hidden;
  pointer-events: none;
}

.footer-logo-img {
  position: absolute;
  width: 100%;
  height: 762px;
  left: 0;
  bottom: 0;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.footer-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #131313 21.13%, rgba(19,19,19,0) 35.22%);
  pointer-events: none;
  z-index: 1;
}

.footer-center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 2;
  position: relative;
  padding-top: clamp(320px, 48vw, 535px);
}

.footer-social-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 5vw, 26.67px);
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  width: clamp(28px, 8vw, 40px);
  height: clamp(28px, 8vw, 40px);
  display: block;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.fnav-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  color: #F0F0E5;
  opacity: 0.8;
}

.fnav-link:focus-visible {
  outline: 2px solid rgba(240, 240, 229, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.footer-copy {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #F0F0E5;
  opacity: 0.5;
  text-align: center;
}

.footer-powered {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #F0F0E5;
  opacity: 0.4;
  z-index: 2;
}

.scroll-up-btn {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.scroll-up-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-up-btn:focus-visible {
  outline: 2px solid rgba(240, 240, 229, 0.55);
  outline-offset: 4px;
  border-radius: 999px;
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────────── */

@media (max-width: 767px) {
  .hero-contact {
    min-height: 100vh;
    padding-top: calc(var(--hero-top-bar-total, 80px) + 24px);
    padding-bottom: clamp(32px, 6vw, 60px);
  }
}

@media (min-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 27px;
  }
}

