/* ============================================================
   EQUINEX — Design Tokens & Base Styles
   ============================================================ */

:root {
  /* Color */
  --navy:        #1F3A5F;
  --navy-dark:   #13253C;
  --navy-mid:    #25436B;
  --taupe:       #A89684;
  --taupe-dark:  #8A7863;
  --black:       #1A1A1A;
  --off-white:   #F7F5F2;
  --white:       #FFFFFF;
  --gray:        #5B5B5B;
  --gray-light:  #8A8A8A;
  --line:        #E7E3DD;
  --line-dark:   rgba(255,255,255,0.14);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.875rem;
  --text-2xl:  2.5rem;
  --text-3xl:  3.4rem;

  /* Layout */
  --container: 1180px;
  --gutter: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
}

@media (max-width: 720px) {
  :root {
    --text-3xl: 2.3rem;
    --text-2xl: 1.9rem;
    --text-xl: 1.5rem;
    --gutter: 1.25rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--black);
}

p { margin: 0; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}
.eyebrow.on-dark { color: var(--taupe); }

.section {
  padding: 5.5rem 0;
}
@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
}
.section.tight { padding: 3.5rem 0; }
.section.bg-off { background: var(--off-white); }
.section.bg-navy { background: var(--navy-dark); color: var(--white); }
.section.bg-navy .eyebrow { color: var(--taupe); }

.divider {
  width: 44px;
  height: 2px;
  background: var(--taupe);
  border: 0;
  margin: 1rem 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--ease) 0.2s, color var(--ease) 0.2s, border-color var(--ease) 0.2s, transform var(--ease) 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--taupe);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--taupe-dark); color: var(--white); }
.btn-ghost-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ghost-light {
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost-light:hover { border-color: var(--navy); }
.btn-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 2px;
}
.btn-text:hover { color: var(--taupe-dark); }
.btn-text.on-dark { color: var(--white); }

/* Reveal-on-scroll (progressive enhancement; visible by default) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js .reveal { opacity: 1; transform: none; }

.icon {
  width: 26px;
  height: 26px;
  display: block;
}
