/* ──────────────────────────────────────────────────────────
   REIFCO CONSULTING — GLOBAL STYLESHEET
   FOG v5.0 (Light Mode) Design System
   Legacy variables aliased for backwards compatibility
   ────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Figtree:wght@300;400;500;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* ── FOG v5.0 PRIMARY TOKENS ── */
  --bg:         #ECEEF1;
  --surface:    #FFFFFF;
  --surface-2:  #F4F6F9;
  --navy:       #0F1E35;
  --navy-lit:   #2E4A73;
  --slate:      #4A5568;
  --accent:     #9B1D2A;
  --accent-2:   #B8323F;
  --accent-dim: rgba(155, 29, 42, 0.08);
  --accent-mid: rgba(155, 29, 42, 0.18);
  --text:       #1A2740;
  --muted:      #8896A8;
  --border:     #D0D5DE;
  --border-s:   #B9C0CC;
  --radius:     2px;
  --shadow-s:   0 1px 4px rgba(15, 30, 53, 0.06);
  --shadow-m:   0 4px 16px rgba(15, 30, 53, 0.08);
  --shadow-l:   0 12px 40px rgba(15, 30, 53, 0.12);
  --grid-line:  rgba(15, 30, 53, 0.025);

  /* ── LEGACY ALIASES (so untouched pages still work) ── */
  --cream:    var(--bg);
  --cream-2:  var(--surface-2);
  --cream-3:  var(--surface);
  --cream-4:  var(--border);
  --ink:      var(--navy);
  --ink-2:    var(--text);
  --ink-3:    var(--slate);
  --ink-4:    var(--muted);
  --terra:    var(--accent);
  --terra-2:  var(--accent-2);
  --terra-dim: var(--accent-dim);
  --terra-mid: var(--accent-mid);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle grid overlay — FOG signature */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(44px, 5.6vw, 68px); font-weight: 500; }
h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; }
h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 500; }
h4 { font-size: 22px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
h6 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }

em { font-style: italic; color: var(--navy-lit); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy); }

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'DM Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }

.section { padding: 100px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; position: relative; z-index: 1; }
.section-dark { background: var(--navy); color: var(--bg); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--bg); }
.section-dark em { color: var(--accent-2); }
.section-surface { background: var(--surface-2); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.divider { height: 1px; background: var(--border); margin: 0; border: none; }
.divider-thick { height: 2px; background: var(--accent); width: 48px; margin: 20px 0; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(236, 238, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
}
.nav-logo span.nav-logo-co { color: var(--accent); }
.nav-logo-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 14px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-links a {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--navy);
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid var(--navy);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: all 0.2s; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-s);
}
.btn-outline:hover { border-color: var(--navy); background: var(--surface); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 14px 0;
}
.btn-ghost::after { content: '→'; margin-left: 6px; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--navy); border-color: var(--navy); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-m); }

/* ── UTILITIES ── */
.text-accent { color: var(--accent); }
.text-terra { color: var(--accent); }
.text-navy { color: var(--navy); }
.text-slate { color: var(--slate); }
.text-muted { color: var(--muted); }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); color: var(--bg); }

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(236, 238, 241, 0.78);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(236, 238, 241, 0.1);
}
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--bg);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-logo span { color: var(--accent-2); }
.footer-tagline {
  font-size: 13px;
  color: rgba(236, 238, 241, 0.58);
  font-weight: 400;
  line-height: 1.65;
  max-width: 340px;
}
.footer-col h6 {
  color: var(--accent-2);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(236, 238, 241, 0.72);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(236, 238, 241, 0.4);
  letter-spacing: 0.04em;
}
.footer-email {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent-2);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.footer-email:hover { color: var(--bg); }

/* ── FORMS ── */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.65; }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { top: 56px; }
  .footer-inner { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
