/* ==========================================================================
   Rostra Consulting — shared stylesheet
   ========================================================================== */

:root {
  --ink: #14213D;
  --ink-2: #1C2C4C;
  --ink-soft: #33456B;
  --gold: #AD8A3F;
  --gold-light: #D3B876;
  --charcoal: #1B2028;
  --stone: #E7E0D2;
  --ivory: #F6F3EC;
  --paper: #FDFDFC;
  --white: #FFFFFF;
  --line: #E4E1D8;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
  display: block;
}

.eyebrow--light { color: var(--gold-light); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: #96772F; }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline-dark:hover { background: var(--ink); color: var(--white); }

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,253,252,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-motto {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.6em 1.3em;
  border-radius: 2px;
  font-size: 0.88rem !important;
}
.nav-cta:hover { background: var(--ink-2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 32px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 16px 32px; display: inline-block; }
}

/* ---------------- Hero ---------------- */

.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 65%, #24365C 100%);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(173,138,63,0.16) 0%, rgba(173,138,63,0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 { color: var(--white); }

.hero-mark {
  width: 46px;
  height: 46px;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.2rem;
  color: #CBD3E3;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero.hero--sub {
  padding: 84px 0 74px;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------------- Sections ---------------- */

section { padding: 88px 0; }
.section--ivory { background: var(--ivory); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lede { color: #C7CEDE; }

.section-head {
  max-width: 700px;
  margin: 0 0 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Cards / grids ---------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px;
  border-radius: 3px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: 0 18px 40px rgba(20,33,61,0.08); transform: translateY(-3px); }

.card-icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 18px;
}

.card-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon-circle svg { width: 24px; height: 24px; color: var(--gold); }

.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* Numbered process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .steps--3 { grid-template-columns: 1fr; } }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Comparison table */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

.compare-col {
  padding: 34px;
  border-radius: 3px;
}
.compare-col--old {
  background: var(--ivory);
  border: 1px solid var(--line);
}
.compare-col--new {
  background: var(--ink);
  color: var(--white);
}
.compare-col h3 { margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.compare-col--old h3 { color: var(--ink); }
.compare-col--new h3 { color: var(--gold-light); }

.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.compare-col--new .compare-list li { border-bottom-color: rgba(255,255,255,0.12); }
.compare-list li:last-child { border-bottom: none; }
.compare-col--old .compare-list li::before {
  content: "×";
  position: absolute; left: 0; top: 10px;
  color: #9A9280;
  font-weight: 700;
  font-size: 1.1rem;
}
.compare-col--new .compare-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 12px;
  color: var(--gold-light);
  font-weight: 700;
}

/* Two-column feature (capability) rows */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .feature-row { grid-template-columns: 1fr; gap: 36px; } }
.feature-row.reverse .feature-media { order: 2; }
@media (max-width: 880px) { .feature-row.reverse .feature-media { order: 0; } }

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  background: var(--gold);
}

/* ---------------- Image placeholders ---------------- */
/* Swap these for real <img> tags — each is labelled with the expected
   filename and aspect ratio so replacement images can be dropped straight
   into /images. */

.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(20,33,61,0.05) 0 2px, transparent 2px 14px),
    var(--stone);
  border: 1px dashed #B7ADA0;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  min-height: 260px;
  border-radius: 3px;
}
.img-placeholder svg { width: 34px; height: 34px; color: var(--ink-soft); opacity: 0.55; }
.img-placeholder .ph-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
}
.img-placeholder .ph-meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

.hero-media .img-placeholder { min-height: 340px; background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: #D9DEE9;
}
.hero-media .img-placeholder svg { color: #D9DEE9; }
.hero-media .img-placeholder .ph-label { color: var(--white); }
.hero-media .img-placeholder .ph-meta { color: #C7CEDE; }

.hero-media img,
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.hero-media img { box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.feature-media img { border: 1px solid var(--line); }

/* ---------------- Deliverables ---------------- */

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .deliverables-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .deliverables-grid { grid-template-columns: 1fr; } }

/* ---------------- Stat strip ---------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 780px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 10px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-light);
  font-weight: 700;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  color: #C7CEDE;
  margin-top: 6px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-band .lede { color: #C7CEDE; margin-left: auto; margin-right: auto; text-align: center; }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------------- Sector nav cards (home) ---------------- */

.sector-card {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 40px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--ink);
}
.sector-card:nth-child(2) { background: #1F2C4A; }
.sector-card:nth-child(3) { background: #26314F; }
.sector-card svg { width: 30px; height: 30px; color: var(--gold-light); margin-bottom: 14px; }
.sector-card h3 { color: var(--white); margin-bottom: 8px; }
.sector-card p { color: #C7CEDE; font-size: 0.92rem; margin-bottom: 0; }
.sector-card .go {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--charcoal);
  color: #A9AFBD;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; color: var(--gold-light); }
.footer-brand-name { font-family: var(--serif); color: var(--white); font-size: 1.15rem; font-weight: 700; }
.footer-motto { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.footer-desc { font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Utilities ---------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
