/* ============================================
   FORWARD SIGNAL — Global Stylesheet
   © Q2 2026 Forward Signal Ltd
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ink: #0d0d0d;
  --paper: #f5f0e8;
  --cream: #ede8dc;
  --cream-dark: #e3ddd0;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5ecd4;
  --muted: #6b6355;
  --rule: #d4cfc3;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---- NAVIGATION ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-weight: 500 !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
  padding: 0.5rem 1.25rem;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 4rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-brand .wordmark span { color: var(--gold); }

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.6);
  max-width: 34ch;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.05em;
}
.footer-bottom a {
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-bottom a:hover { opacity: 1; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
}
.btn-outline-light {
  border-color: rgba(245,240,232,0.5);
  color: var(--paper);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---- UTILITY ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-pad { padding: 6rem 4rem; }
.section-pad-sm { padding: 4rem 4rem; }

.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--paper); }
.border-top { border-top: 1px solid var(--rule); }
.border-bottom { border-bottom: 1px solid var(--rule); }

/* Divider rule */
.rule-gold {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1.5rem 2rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none !important; }

  .section-pad { padding: 4rem 1.5rem; }
  .section-pad-sm { padding: 2.5rem 1.5rem; }
  .container { padding: 0 1.5rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
}
