/* ===== Matajaga — design tokens ===== */
:root {
  --ink: #0A0E14;
  --ink-2: #11161E;
  --ink-3: #1A2029;
  --line: rgba(245, 242, 234, 0.12);
  --line-strong: rgba(245, 242, 234, 0.22);
  --gold: #C9A961;
  --gold-2: #B89249;
  --paper: #F5F2EA;
  --paper-2: #ECE7DA;
  --slate: #8A8A8A;
  --slate-2: #5C6370;
  --text-on-ink: #E9E4D6;
  --text-mute: #9A9588;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1320px;
  --pad: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--text-on-ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow .dot { display: inline-block; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin-right: 10px; transform: translateY(-3px); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
  color: var(--paper);
}
.display em { font-style: italic; color: var(--gold); font-weight: 400; }

h1.display { font-size: clamp(48px, 6.4vw, 104px); }
h2.display { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.05; }
h3.display { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }

p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  color: var(--text-on-ink);
  max-width: 60ch;
}
.body { font-size: 16px; line-height: 1.65; color: var(--text-on-ink); }
.muted { color: var(--text-mute); }

/* ===== Wordmark ===== */
.mark { display: inline-flex; align-items: center; gap: 14px; color: var(--paper); }
.mark__glyph {
  width: 28px; height: 28px;
}
.mark__type {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.mark__type .accent { color: var(--gold); }

/* ===== Container & section ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 140px 0; position: relative; }
.section--tight { padding: 90px 0; }
.divider { height: 1px; background: var(--line); width: 100%; }
.rule { height: 1px; background: var(--line-strong); width: 100%; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 13px; letter-spacing: 0.04em; color: var(--text-on-ink);
  position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--text-mute);
}
.lang-switch .on { color: var(--paper); }
.lang-switch .sep { opacity: 0.4; }

.cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 12px 20px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper);
  transition: background .2s, border-color .2s;
}
.cta-link:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cta-link .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.cta-link .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all .2s ease;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--paper); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--paper); }
.btn--ghost:hover { background: rgba(245,242,234,0.06); border-color: var(--paper); }

/* ===== Footer ===== */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 90px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; }
.footer ul li { padding: 6px 0; font-size: 14px; color: var(--text-on-ink); }
.footer ul li a:hover { color: var(--gold); }
.footer-meta { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); font-family: var(--mono); letter-spacing: 0.06em; }

/* ===== Utility ===== */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

/* ===== Image placeholders (editorial) ===== */
.imgph {
  position: relative; overflow: hidden; background: var(--ink-3);
  border: 1px solid var(--line);
}
.imgph::before {
  content: attr(data-label);
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 242, 234, 0.5);
  z-index: 2;
}
.imgph::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(201,169,97,0.04), rgba(0,0,0,0.6)),
    radial-gradient(circle at 70% 30%, rgba(201,169,97,0.18), transparent 55%);
}

/* ===== Service tile ===== */
.tile {
  display: block; padding: 36px 32px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
  transition: background .25s, border-color .25s, transform .25s;
}
.tile:hover { background: var(--ink-3); border-color: var(--line-strong); }
.tile__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); }
.tile__title { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-top: 50px; color: var(--paper); }
.tile__desc { font-size: 14px; line-height: 1.6; color: var(--text-mute); margin-top: 14px; }
.tile__arrow {
  position: absolute; top: 30px; right: 30px;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.tile:hover .tile__arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; gap: 60px; animation: scroll 50s linear infinite; white-space: nowrap; }
.marquee__item { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--text-mute); display: inline-flex; align-items: center; gap: 60px; }
.marquee__item::after { content: '✦'; color: var(--gold); font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Stat block ===== */
.stat__num { font-family: var(--serif); font-size: clamp(64px, 7vw, 112px); color: var(--paper); line-height: 1; letter-spacing: -0.02em; }
.stat__num em { color: var(--gold); font-style: normal; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-top: 16px; }

/* ===== Form ===== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 14px 0; font-size: 16px; color: var(--paper);
  font-family: var(--sans); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold); }
.field textarea { min-height: 120px; resize: vertical; }

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }

/* ===== Aperture mark animation (hero) ===== */
.aperture-anim circle { transform-origin: center; }
.aperture-anim .a-ring-1 { animation: pulse1 6s ease-in-out infinite; }
.aperture-anim .a-ring-2 { animation: pulse1 6s ease-in-out infinite .8s; }
.aperture-anim .a-ring-3 { animation: pulse1 6s ease-in-out infinite 1.6s; }
@keyframes pulse1 { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.6; } }

/* WhatsApp floating button */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366; color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 3px 8px rgba(0,0,0,0.3); color: #fff; }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab .label-sm { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; display: block; margin-top: 1px; }
.wa-fab .label-strong { font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 600px) {
  .wa-fab { padding: 12px; }
  .wa-fab .wa-text { display: none; }
}

/* small */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
