/* ═══════════════════════════════════════════════════════════════
   MRXplorer — style.css
   Bold editorial. High contrast. Built to own.
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --navy:        #032c64;
  --navy-mid:    #0a3d7a;
  --navy-dark:   #021d42;
  --orange:      #f47721;
  --orange-dk:   #c85e15;
  --orange-lt:   #fef0e6;
  /* Darker, text-safe orange — use for orange TEXT/icons on white or off-white
     backgrounds. --orange itself only meets 2.8:1 there (fails WCAG AA 4.5:1);
     it's still fine for large decorative text and for text on navy/black. */
  --orange-text:    #a3480c;
  --orange-text-dk: #8a3a09;
  --black:       #0d0d0d;
  --white:       #ffffff;
  --off-white:   #f7f6f3;
  --gray-dk:     #1a1a1a;
  --gray-mid:    #555555;
  --gray-lt:     #e8e8e4;
  --border:      #d8d6d0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Alegreya Sans', system-ui, sans-serif;

  --container:   1120px;
  --radius:      4px;
  --transition:  all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 2px 16px rgba(3,44,100,.10);
  --shadow-lg:   0 8px 40px rgba(3,44,100,.16);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-dk);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }
@media (max-width: 480px) { .container { padding: 0 20px; } }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
}

.section-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 16px;
}
.section-label-light { color: rgba(255,255,255,.6); }

.section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 48px;
}
.section-heading em {
  font-style: italic;
  color: var(--orange-text);
}
.section-heading-light { color: var(--white); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  transform: translateY(-1px);
}
.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 768px) { .nav-inner { padding: 0 24px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-logo-img-sm { height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-mid);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover { color: var(--navy); background: var(--off-white); }
.nav-link.active { color: var(--navy); font-weight: 700; }
.nav-newsletter {
  color: var(--orange-text) !important;
  border: 1.5px solid rgba(163,72,12,.4);
  font-weight: 700 !important;
}
.nav-newsletter:hover {
  background: var(--orange-lt) !important;
  border-color: var(--orange-text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 14px; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy-dark);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,119,33,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,119,33,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* Fade the grid at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 40%, var(--navy-dark) 80%);
  pointer-events: none;
}

.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 768px) { .hero-grid { padding: 0 24px 60px; } }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--orange);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.3);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

/* Hero aside stats */
.hero-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-stat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-bottom: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-weight: 400;
  line-height: 1.4;
}

.hero-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--navy-mid) 100%);
}

/* ── MARQUEE ────────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.marquee-track .dot { color: var(--orange-text); font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* ── WHAT WE DO ─────────────────────────────────────────────── */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 800px) { .what-grid { grid-template-columns: 1fr; } }

.what-card {
  background: var(--white);
  padding: 40px 36px;
  position: relative;
  transition: var(--transition);
}
.what-card:hover { background: var(--off-white); }

.what-card-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-lt);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
}
.what-card:hover .what-card-num { color: rgba(244,119,33,.15); }

.what-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}
.what-card p {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}
.card-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-text);
  text-decoration: none;
  letter-spacing: .02em;
  transition: var(--transition);
}
.card-link:hover { color: var(--orange-text-dk); letter-spacing: .04em; text-decoration: underline; }

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.section-newsletter {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.section-newsletter::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 60px solid rgba(244,119,33,.08);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .newsletter-inner { grid-template-columns: 1fr; gap: 48px; } }

.newsletter-desc {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
  font-weight: 400;
}

.newsletter-issues { display: flex; flex-direction: column; gap: 2px; }

.issue-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.issue-card:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.issue-card-muted { opacity: .6; }
.issue-num {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
  width: 52px;
}
.issue-title {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  flex: 1;
  font-weight: 400;
}
.issue-arrow { color: rgba(255,255,255,.65); font-size: 1rem; flex-shrink: 0; }

/* ── WHO THIS IS FOR ────────────────────────────────────────── */
.section-for { background: var(--off-white); }

.for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .for-grid { grid-template-columns: 1fr; gap: 28px; } }

.for-item {}
.for-icon {
  font-size: 1.4rem;
  color: var(--orange-text);
  margin-bottom: 14px;
}
.for-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.for-item p {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.65;
}

/* ── CTA STRIP ──────────────────────────────────────────────── */
.section-cta {
  background: var(--orange);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  max-width: 560px;
  line-height: 1.2;
}
.section-cta .btn-primary {
  background: var(--white);
  color: var(--orange-text);
  border-color: var(--white);
  white-space: nowrap;
}
.section-cta .btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact a {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--orange); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-base span {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
}

/* ── ABOUT PAGE SHELL ───────────────────────────────────────── */
/* Use these classes when building about.html */
.page-hero {
  background: var(--off-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 720px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.05;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-mid);
  line-height: 1.7;
  font-weight: 400;
}
.prose {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-dk);
}
.prose h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
}
.prose p { margin-bottom: 20px; }
.prose a { color: var(--orange-text); text-decoration: underline; }

/* ── ABOUT INTRO (headshot + bio) ──────────────────────────────── */
.about-intro {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.about-intro-text { max-width: 680px; margin: 0; }
.about-intro-photo {
  flex-shrink: 0;
  width: 220px;
  order: 2;
}
.about-intro-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 860px) {
  .about-intro { flex-direction: column; }
  .about-intro-photo { order: -1; width: 160px; margin: 0 auto; }
}

/* ── CONTACT PAGE SHELL ─────────────────────────────────────── */
/* Use these classes when building contact.html */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.form-field { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-dk);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(3,44,100,.25); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── FOCUS VISIBILITY ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero :focus-visible,
.section-newsletter :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-orange { color: var(--orange-text); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--gray-mid); }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .nav, .marquee-wrap, .section-cta, .footer { display: none; }
  body { font-size: 12pt; }
}

/* ── FOOTER BADGES ── */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-badge {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.footer-badge:hover { opacity: 1; }
.footer-badge img {
  width: 80px;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .footer-badges { justify-content: flex-start; }
  .footer-badge img { width: 70px; }
}
