/* ========================================
   Ministry Shield — Shared Stylesheet
   Typography: Bricolage Grotesque + Plus Jakarta Sans
   Aesthetic: Warm, approachable, readable
   ======================================== */

:root {
  /* Color palette — warm, approachable */
  --ink:           #1F2937;     /* warm dark text */
  --ink-soft:      #4A5468;     /* soft warm slate for body */
  --ink-mute:      #7C7567;     /* warm muted gray */
  --paper:         #FBF7EF;     /* warm cream — main bg */
  --paper-warm:    #F2EBDB;     /* deeper cream — alternating sections */
  --paper-card:    #FFFCF6;     /* card background */
  --line:          #E2D9C3;     /* warm line color */
  --line-soft:     #ECE4D1;     /* lighter warm line */

  /* Accent colors */
  --blue:          #2A4773;     /* warm deep blue (primary) */
  --blue-deep:     #1B3358;     /* deeper for hover states */
  --coral:         #D9694F;     /* warm coral */
  --coral-soft:    #F4C5B7;     /* soft coral for subtle accents */
  --sage:          #6B8B72;     /* sage green */
  --sage-soft:     #C6D6C5;     /* soft sage */
  --gold:          #C8924A;     /* warm gold accent (sparingly) */

  /* Typography */
  --display:       'Bricolage Grotesque', 'Iowan Old Style', Georgia, serif;
  --body:          'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
}

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle warm grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--blue);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 100, "GRAD" 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--coral); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue); }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 22px;
  display: inline-block;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}

/* ========================================
   NAVIGATION
   ======================================== */

nav.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}
nav.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo:hover { color: var(--blue); }
.logo .logo-icon {
  width: 36px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.logo:hover .logo-icon { transform: rotate(-4deg) scale(1.05); }
.logo .wordmark {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .mark {
  color: var(--coral);
  font-size: 23px;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a:not(.nav-cta) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--blue); }
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav-cta {
  background: var(--blue);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta):not(.always-show) { display: none; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-family: var(--body);
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(42, 71, 115, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--paper);
}
.btn .arrow {
  transition: transform 0.2s ease;
  font-size: 18px;
  line-height: 1;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: 100px 0;
  position: relative;
}
section.tight { padding: 70px 0; }
section.warm { background: var(--paper-warm); }

.page-header {
  padding: 80px 0 40px;
}
.page-header h1 {
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-header .lead {
  max-width: 56ch;
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Card */
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(31, 40, 60, 0.12);
}

/* Pill tag */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.tag-coral { background: var(--coral-soft); color: var(--coral); }
.tag-sage  { background: var(--sage-soft); color: var(--sage); }

/* Two-column section layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.two-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) {
  .two-col, .two-col-equal { grid-template-columns: 1fr; gap: 36px; }
}

/* Bullet list with custom marker */
.bullet-list {
  list-style: none;
  margin-top: 24px;
}
.bullet-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 2.5px solid var(--sage);
}
.bullet-list.coral li::before {
  background: var(--coral-soft);
  border-color: var(--coral);
}

/* Pillar / value-prop card */
.pillar {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
  height: 100%;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(31, 40, 60, 0.15);
  border-color: var(--coral-soft);
}
.pillar h3 {
  color: var(--blue);
  font-weight: 600;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 0;
}
.pillar .pillar-link {
  margin-top: auto;
  color: var(--coral);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillar:hover .pillar-link { color: var(--blue); }

/* Steps / numbered items */
.steps {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 28px 32px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover {
  border-color: var(--coral-soft);
  transform: translateX(4px);
}
.step-num {
  font-family: var(--display);
  font-size: 36px;
  color: var(--coral);
  font-weight: 600;
  line-height: 1;
}
.step h4 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 19px;
}
.step p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 8px; padding: 24px 24px; }
  .step-num { font-size: 28px; }
}

/* Quote block */
.quote-block {
  background: var(--paper-card);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 48px 0;
}
.quote-block p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--blue);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* Trust panel */
.trust-panel {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  margin-top: 56px;
}
.trust-panel h3 {
  color: var(--blue);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.trust-panel p {
  color: var(--ink-soft);
  font-size: 16px;
}
.trust-panel p:not(:last-child) { margin-bottom: 14px; }

/* Contact card (large) */
.contact-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  box-shadow: 0 30px 60px -40px rgba(31, 40, 60, 0.15);
}
.contact-card h2 {
  margin-bottom: 24px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-card p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: 17px;
}
.contact-email {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 3px solid var(--coral);
  padding-bottom: 4px;
  transition: color 0.2s ease;
  font-weight: 500;
}
.contact-email:hover { color: var(--coral); border-bottom-color: var(--blue); }
@media (max-width: 600px) {
  .contact-card { padding: 48px 28px; }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--blue-deep);
  color: rgba(251, 247, 239, 0.78);
  padding: 56px 0 32px;
  font-size: 15px;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
footer .logo { color: var(--paper); margin-bottom: 14px; }
footer .tagline {
  color: rgba(251, 247, 239, 0.65);
  max-width: 36ch;
  line-height: 1.55;
  font-size: 14px;
}
footer h5 {
  font-family: var(--body);
  font-size: 11px;
  color: var(--coral-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  font-weight: 700;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(251, 247, 239, 0.78); text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(251, 247, 239, 0.5);
  font-size: 13px;
}
@media (max-width: 760px) {
  footer .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========================================
   HERO VISUAL — large decorative logo on home
   ======================================== */

.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 105, 79, 0.12) 0%, rgba(217, 105, 79, 0) 70%);
  z-index: 0;
}
.hero-visual::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 139, 114, 0.15) 0%, rgba(107, 139, 114, 0) 70%);
  top: 30%;
  left: 5%;
  z-index: 0;
}
.hero-visual svg.hero-shield,
.hero-visual img.hero-shield {
  position: relative;
  z-index: 1;
  width: 280px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(31, 51, 88, 0.18));
}
@media (max-width: 880px) {
  .hero-visual { min-height: 240px; }
  .hero-visual svg.hero-shield,
  .hero-visual img.hero-shield { width: 200px; }
  .hero-visual::before { width: 260px; height: 260px; }
  .hero-visual::after { width: 200px; height: 200px; }
}

/* ========================================
   STEP ICONS
   ======================================== */

.step {
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  gap: 22px;
  padding: 28px 32px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
  align-items: center;
}
.step .step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step .step-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step.sage .step-icon { background: var(--sage-soft); }
.step.sage .step-icon svg { stroke: var(--sage); }
@media (max-width: 760px) {
  .step {
    grid-template-columns: 44px 1fr;
    grid-template-areas: "icon num" "content content";
    gap: 12px 16px;
    padding: 24px 24px;
  }
  .step .step-icon { grid-area: icon; }
  .step .step-num { grid-area: num; font-size: 28px; }
  .step > div:last-child { grid-area: content; }
}

/* ========================================
   CARD ICONS
   ======================================== */

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon.sage { background: var(--sage-soft); }
.card-icon.sage svg { stroke: var(--sage); }

/* ========================================
   SECTION IMAGES
   ======================================== */

/* Standalone full-width image block (between sections) */
.image-block {
  margin: 60px 0 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.image-block img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.image-block:hover img {
  transform: scale(1.02);
}

/* Two-column layout with image on one side */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section-with-image.reverse {
  grid-template-columns: 1fr 1fr;
}
.section-with-image .image-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.section-with-image .image-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.section-with-image .image-side:hover img {
  transform: scale(1.03);
}
@media (max-width: 880px) {
  .section-with-image {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-with-image .image-side { aspect-ratio: 16/10; }
}

/* Wide hero image with subtle frame */
.hero-image {
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 56px;
  display: block;
}

/* ========================================
   SCROLL REVEAL — graceful degradation
   ======================================== */

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
