/* ============================================================
   Steadfast — global stylesheet
   Classic / institutional palette: deep navy, antique gold, ivory
   ============================================================ */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #112a4d;
  --navy-700: #1a3a66;
  --navy-50:  #f4f6fb;
  --gold-500: #b8902a;
  --gold-400: #c9a142;
  --gold-200: #e6d49a;
  --ivory:    #faf7f0;
  --paper:    #ffffff;
  --ink:      #1a1a1a;
  --ink-soft: #4a4a4a;
  --line:     #e3e0d6;
  --shadow:   0 10px 30px rgba(11, 31, 58, 0.08);
  --radius:   2px;
  --serif:    "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.3; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-500); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--gold-500);
  margin: 1.5rem 0;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand svg { display: block; }

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--navy-900);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-500);
}

.nav-cta {
  background: var(--navy-900);
  color: var(--ivory) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-900) !important; }
.nav-cta:hover::after { display: none; }

/* ---------- Dropdown nav ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  display: inline-block;
  margin-left: 6px;
  content: "\25BE";
  font-size: 0.75em;
  color: var(--gold-500);
  transition: transform .2s ease;
}
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { padding: 0; border: 0; }
.dropdown a {
  display: block;
  padding: 12px 20px !important;
  font-size: 0.95rem;
  color: var(--navy-900) !important;
  border-bottom: 1px solid var(--line);
}
.dropdown li:last-child a { border-bottom: 0; }
.dropdown a:hover {
  background: var(--ivory);
  color: var(--gold-500) !important;
}
.dropdown a::after { display: none !important; }
.dropdown a .pd { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy-900);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--navy-900);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--gold-500); color: var(--navy-900); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--ivory); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--navy-900); color: var(--gold-400); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(11,31,58,0.92), rgba(11,31,58,0.88)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800'><defs><pattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M0 40L40 0' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/></pattern></defs><rect width='800' height='800' fill='url(%23p)'/></svg>");
  color: var(--ivory);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--ivory); max-width: 900px; }
.hero .eyebrow { color: var(--gold-400); }
.hero p.lead {
  color: rgba(250, 247, 240, 0.85);
  font-size: 1.2rem;
  max-width: 680px;
  margin-top: 1.2rem;
  margin-bottom: 2.5rem;
}

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

.hero-ornament {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(201, 161, 66, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.hero-ornament::before {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(201, 161, 66, 0.18);
  border-radius: 50%;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--paper); }
section.dark { background: var(--navy-900); color: var(--ivory); }
section.dark h2 { color: var(--ivory); }
section.dark p { color: rgba(250, 247, 240, 0.78); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Pillars / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-500);
  display: block;
  margin-bottom: 8px;
}

.card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  color: var(--navy-900);
  border-radius: 50%;
  margin-bottom: 18px;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold-500);
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--navy-900);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.85rem;
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* ---------- Contact options ---------- */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.contact-option {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  padding: 40px 32px;
  text-align: center;
}
.contact-option h3 { margin-top: 0; }
.contact-option .big {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin: 16px 0 20px;
}

/* ---------- Form ---------- */
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: var(--radius);
  max-width: 760px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 8px;
}
input, select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(250, 247, 240, 0.7);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: var(--gold-400);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(250, 247, 240, 0.7); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand p { color: rgba(250, 247, 240, 0.55); max-width: 340px; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.5);
}
.disclosure {
  font-size: 0.78rem;
  color: rgba(250, 247, 240, 0.45);
  max-width: 100%;
  line-height: 1.6;
  margin-top: 16px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--ivory); }
.cta-banner p { color: rgba(250, 247, 240, 0.78); max-width: 620px; margin: 0 auto 32px; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy-900);
  color: var(--ivory);
  padding: 96px 0 80px;
  position: relative;
}
.page-header h1 { color: var(--ivory); max-width: 800px; }
.page-header .eyebrow { color: var(--gold-400); }
.page-header p { color: rgba(250, 247, 240, 0.78); max-width: 640px; font-size: 1.1rem; }

/* ---------- Questionnaire sections ---------- */
.q-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  padding: 36px 40px;
  margin-bottom: 24px;
  border-radius: var(--radius);
}
.q-section h3 { margin-top: 0; }
.q-section .hint {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 22px;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.q-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-500);
  background: var(--navy-50);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Product cards (products page) ---------- */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  padding: 48px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.product-card .price-tag {
  display: inline-block;
  background: var(--navy-50);
  color: var(--navy-900);
  padding: 4px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.product-card h2 { margin-bottom: 14px; }
.product-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.product-card .feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.product-card .feature-list li:last-child { border-bottom: 0; }
.product-card .feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: bold;
}

/* ---------- Pricing ---------- */
.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1;
}
.price-unit {
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.price-alt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: auto;
  font-style: italic;
}
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 22px;
}
.tier {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.tier-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 6px;
}
.tier-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy-900);
  line-height: 1;
}
.tier small { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Principles list (mission page) ---------- */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: principle;
}
.principles li {
  position: relative;
  padding: 24px 0 24px 80px;
  border-top: 1px solid var(--line);
  counter-increment: principle;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-500);
  line-height: 1;
}
.principles h3 { margin: 0 0 6px; }

/* ---------- Portal login ---------- */
.portal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.portal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: var(--radius);
}
.portal-card.dark {
  background: var(--navy-900);
  color: var(--ivory);
}
.portal-card.dark h2, .portal-card.dark h3 { color: var(--ivory); }
.portal-card.dark p { color: rgba(250, 247, 240, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .grid-2, .contact-options, .portal-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; gap: 20px; }
  .step .step-num { font-size: 2.2rem; }
  section { padding: 72px 0; }
  .hero { padding: 80px 0 96px; }
  .form-wrap { padding: 32px 24px; }
  .product-card, .portal-card, .q-section { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 0;
    padding: 12px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { padding: 14px 0; display: block; }
  .nav-cta { text-align: center; padding: 12px 22px !important; }
  .nav-toggle { display: block; }
  .has-dropdown > a::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 0;
    min-width: 0;
    background: var(--ivory);
  }
  .dropdown a { padding: 12px 16px !important; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 20px; }
}
