/* ===== Alya Web — Design Tokens ===== */
:root {
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --paper: #ffffff;
  --paper-dim: #f7f7f6;
  --line: #e4e4e2;
  --muted: #6b6b6b;
  --muted-2: #9a9a98;
  --ok: #1a1a1a;

  --display: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--ink-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-text small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
nav.main-nav { display: flex; gap: 34px; align-items: center; }
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ink);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    background: none;
    cursor: pointer;
  }
  .nav-cta .btn-ghost { display: none; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 28px var(--gutter);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 26px; }
.mobile-drawer nav a { font-family: var(--display); font-size: 28px; font-weight: 600; }
.mobile-drawer .drawer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.close-btn { background: none; border: none; cursor: pointer; }

/* ===== Eyebrow / labels ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--ink);
  display: inline-block;
  transform: rotate(45deg);
}

/* ===== Section rhythm ===== */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-dim { background: var(--paper-dim); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--ink);
  color: #d8d8d6;
  padding: 72px 0 32px;
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
footer.site-footer .brand-text { color: #fff; }
footer.site-footer .brand-text small { color: #9a9a98; }
footer.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a9a98;
  margin-bottom: 18px;
  font-weight: 600;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer.site-footer a { color: #d8d8d6; font-size: 14.5px; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .foot-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8a8a88;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 800px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
