/* ===========================================
   SLPTECH — DESIGN SYSTEM
   =========================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-navy:        #0D0D0D;
  --color-graphite:    #1A1A1A;
  --color-navy-card:   #161616;
  --color-gold:        #B8922A;
  --color-gold-light:  #D4AF6A;
  --color-cream:       #F4F1EB;
  --color-cream-muted: #A89F91;
  --color-border:      rgba(184, 146, 42, 0.25);
  --color-error:       #c0392b;   /* form validation errors */
  --color-footer-bg:   #080808;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Font sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Layout */
  --section-padding-y: 100px;
  --container-max:     1200px;
  --container-px:      24px;
}

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

html {
  scroll-behavior: smooth; /* CSS fallback; main.js also handles anchor clicks via JS */
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--color-navy);
  color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* --- Typography defaults --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-cream);
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-cream-muted);
  line-height: 1.7;
}

/* --- Eyebrow / label text --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --- Primary button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* --- Scroll reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

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

/* --- Section base --- */
.section-padding {
  padding: var(--section-padding-y) 0;
}

/* Offset for fixed nav — prevents headings scrolling under navbar */
section,
footer {
  scroll-margin-top: 80px;
}
