/* ============================================================
   CHILENKO — Shared Styles
   Variables, reset, utilities, nav, footer, CTAs, forms, animations
   ============================================================ */

:root {
  --ground:    #0B0B0A;
  --surface:   #111110;
  --surface-2: #161615;
  --text-1:    #EEEDEA;
  --text-2:    #8A8C96;
  --text-3:    #4A4A47;
  --text-4:    #2A2A28;
  --accent:    #7ABDB8;
  --negative:  #C45C4F;
  --rule:      rgba(238,237,234,0.06);
  --rule-md:   rgba(238,237,234,0.10);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max:       1200px;
  --gutter:    56px;
  --nav-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--ground);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(122,189,184,0.18); color: var(--text-1); }

/* ============================================================
   UTILITIES
   ============================================================ */

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11,11,10,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.4s;
}

.nav.scrolled {
  background: rgba(11,11,10,0.94);
}

.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__wm {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-decoration: none;
}

.nav__wm .dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text-1); }
.nav__links a[aria-current="page"] { color: var(--text-1); }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
  text-decoration: none;
  border: 0.5px solid var(--rule-md);
  padding: 9px 18px;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.nav__cta:hover {
  border-color: rgba(238,237,234,0.25);
  background: rgba(238,237,234,0.04);
}

/* ============================================================
   CTAs
   ============================================================ */

.cta-primary {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 6px;
  transition: gap 0.2s;
}

.cta-primary:hover { gap: 14px; }

.cta-secondary {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--rule-md);
  padding-bottom: 6px;
  transition: color 0.2s, gap 0.2s;
}

.cta-secondary:hover { color: var(--text-1); gap: 12px; }

/* ============================================================
   FORMS
   ============================================================ */

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field input,
.field textarea,
.field select {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--rule-md);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: rgba(122,189,184,0.4); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field select { cursor: pointer; }
.field select option { background: #1a1a18; }

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.btn-submit {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ground);
  background: var(--text-1);
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--accent); }

.form__note {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.8;
  text-align: right;
  max-width: 160px;
}

/* ============================================================
   CONTACT BOX — shared between homepage and contact page
   ============================================================ */

.contact__box {
  background: var(--surface-2);
  border: 0.5px solid var(--rule-md);
  border-radius: 12px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact__box::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,189,184,0.05), transparent 70%);
  pointer-events: none;
}

.contact__h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 16px;
}

.contact__p {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 36px;
}

.contact__reassurance {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 2.2;
}

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

.footer {
  position: relative;
  z-index: 2;
  background: var(--ground);
  border-top: 0.5px solid var(--rule);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__wm {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text-3);
  text-decoration: none;
}

.footer__wm .dot { color: var(--accent); }

.footer__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer__links a {
  font-size: 0.75rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text-2); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.8;
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   INNER PAGE HEADER — used on all pages except homepage
   ============================================================ */

.page-header {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 0.5px solid var(--rule);
}

.page-header__h1 {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text-1);
  max-width: 760px;
}

/* ============================================================
   RECAPTCHA — hide badge (privacy noted in form copy)
   ============================================================ */

.grecaptcha-badge { visibility: hidden !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
  :root { --gutter: 36px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .nav__links { display: none; }
  .contact__box { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 32px; text-align: center; }
  .footer__copy { text-align: center; white-space: normal; }
}
