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

:root {
  /* Palette derived from The Errigo Group logo — navy #153043 + steel #5E809E.
     --gold / --gold-light retain their names but now carry the steel-blue accent. */
  --black: #0A111B;
  --deep: #0E1722;
  --surface: #15212E;
  --border: rgba(255,255,255,0.08);
  --gold: #6F94BC;
  --gold-light: #A6C3DE;
  --white: #EEF2F7;
  --muted: #8794A6;
  --accent: #5E809E;
  --navy: #153043;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  background: rgba(8,10,14,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Hamburger */
.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: 1px; background: var(--muted); transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 73px; left: 0; right: 0;
  background: var(--deep); border-bottom: 1px solid var(--border);
  padding: 28px 60px; z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0;
  font-family: 'DM Mono', monospace; font-size: 14px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  padding: 160px 60px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(94,128,158,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 10% 80%, rgba(111,148,188,0.03) 0%, transparent 60%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(111,148,188,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,148,188,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 100% at 90% 50%, black, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; }
.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.page-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); display: block; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1; font-weight: 400;
  margin-bottom: 24px;
}
.page-title em { font-style: italic; color: var(--gold-light); }
.page-intro {
  font-size: 19px; line-height: 1.75; color: var(--muted); max-width: 640px;
}
.page-intro strong { color: var(--white); font-weight: 500; }

/* ─── SHARED SECTION STYLES ─── */
section { padding: 100px 60px; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); display: block; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400; line-height: 1.15; margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-body {
  font-size: 18px; line-height: 1.75; color: var(--muted);
}
.section-body strong { color: var(--white); font-weight: 500; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold); color: var(--black);
  font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 14px 32px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  color: var(--muted); font-family: 'DM Mono', monospace;
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after { content: '→'; }

/* ─── TAGLINE STRIP ─── */
.tagline-strip {
  background: var(--gold); padding: 20px 60px; overflow: hidden; white-space: nowrap;
}
.tagline-inner {
  display: inline-block; animation: marquee 24s linear infinite;
  font-family: 'Playfair Display', serif; font-size: 17px;
  font-style: italic; color: var(--black); letter-spacing: 0.02em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--black); border-top: 1px solid var(--border);
  text-align: center; padding: 120px 60px;
}
.cta-section .section-title { max-width: 640px; margin: 0 auto 16px; }
.cta-section .section-body { margin: 0 auto 48px; max-width: 500px; text-align: center; }
.cta-row { display: flex; justify-content: center; gap: 16px; }

/* ─── FOOTER ─── */
footer {
  background: var(--deep); border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); }
.footer-contact {
  font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.1em; color: var(--muted);
  text-align: center; line-height: 1.8;
}
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Mono', monospace; font-size: 12px;
  letter-spacing: 0.1em; color: rgba(138,143,154,0.5);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  section, .page-hero { padding: 70px 28px; }
  .page-hero { padding-top: 120px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .cta-section { padding: 80px 28px; }
}
