/* ========================================
   DV RIDES / SHARED STYLES
   Used by every page on the site
======================================== */

:root {
  /* Brand colors */
  --royal-blue: #163E8F;
  --royal-blue-dark: #0f2e6b;
  --royal-blue-soft: #e8edf7;
  --emerald: #006B4F;
  --emerald-dark: #004d39;
  --emerald-soft: #e0f0eb;
  --white: #ffffff;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-elevated: #ffffff;
  --ink: #0a1424;
  --ink-mid: #4a5568;
  --ink-soft: #6b7280;
  --ink-dim: #9aa3b2;
  --rule: #e5e9f0;
  --rule-strong: #cdd5e0;

  /* Type */
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--royal-blue); }

/* ========================================
   NAVIGATION (shared across all pages)
======================================== */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--royal-blue);
  line-height: 1;
}
.nav-logo-text .tag {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--emerald);
  margin-top: 0.25rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--royal-blue); }
.nav-links a.active {
  color: var(--royal-blue);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1.65rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--emerald);
}
.nav-cta {
  padding: 0.65rem 1.4rem !important;
  background: var(--royal-blue);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--royal-blue-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-block;
  padding: 0.95rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: var(--body);
}
.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--royal-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 62, 143, 0.25);
}
.btn-secondary {
  background: var(--emerald);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 107, 79, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--royal-blue);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--royal-blue);
  background: var(--royal-blue-soft);
}

/* ========================================
   PAGE HEADER (used on interior pages)
======================================== */
.page-header {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: var(--emerald);
  opacity: 0.15;
  transform: skewX(-20deg);
}
.page-header-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}
.page-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--white);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--white);
  opacity: 0.5;
}
.page-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-title em {
  font-style: italic;
  font-weight: 700;
}
.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.85;
  max-width: 42rem;
}

/* ========================================
   SECTION SHARED
======================================== */
section { position: relative; }
.section-pad {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}
.section-pad-narrow {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--emerald);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--emerald);
}
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--royal-blue);
  font-weight: 700;
}
.section-title em.green { color: var(--emerald); }
.section-deck {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: 3rem;
}

/* ========================================
   FOOTER (shared across all pages)
======================================== */
footer.site-footer {
  background: var(--royal-blue);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  position: relative;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--emerald);
}
.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 28ch;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col ul a:hover {
  opacity: 1;
  color: #b8e6d7;
}
.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { padding: 1rem 1.5rem; }
  .section-pad, .section-pad-narrow { padding: 4rem 1.5rem; }
  .page-header { padding: 4rem 1.5rem 3rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: span 2; }
}
