/* ministryservice.org - MinistryMap overview site
   Cream (about 95%), dark coffee (about 5%), latte shades in between. One font stack, readable weights. */
:root {
  --cream: #FBF7F1;
  --page: #F6F0E7;
  --tile: #F3EADF;
  --latte-1: #EFE2D1;
  --latte-2: #F6EDE2;
  --latte-3: #E7D6C1;
  --line: #EDE3D6;
  --coffee: #3C2A21;
  --coffee-2: #4A3428;
  --ink: #24170F;
  --text: #5B4738;
  --sub: #8A7564;
  --gold: #B98A5E;
  --green: #2F8A4E;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(36, 23, 15, .04), 0 18px 40px -26px rgba(36, 23, 15, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--coffee); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coffee); color: var(--cream); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--coffee); display: grid; place-items: center; flex-shrink: 0; }
.brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--sub); letter-spacing: .02em; margin-top: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.nav a:hover { background: var(--tile); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--tile); }
.head-cta { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--tile); color: var(--coffee); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 16px; font: 600 16px var(--font); cursor: pointer; border: 0; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--coffee); color: var(--cream); box-shadow: 0 14px 28px -16px rgba(36, 23, 15, .7); }
.btn-dark:hover { background: var(--coffee-2); }
.btn-soft { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 13px; font-size: 14.5px; }
.btn svg { width: 19px; height: 19px; }

/* type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 19px; color: var(--text); max-width: 600px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-top: 10px; }
.section-head p { margin-top: 14px; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -.035em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 17px; height: 17px; color: var(--green); }
.phones { position: relative; height: 620px; }
.phone { position: absolute; width: 270px; border-radius: 40px; padding: 9px; background: var(--ink); box-shadow: 0 40px 70px -34px rgba(36, 23, 15, .65), 0 0 0 1px rgba(36, 23, 15, .2); }
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 390 / 800; object-fit: cover; object-position: top; background: var(--page); }
.phone-a { left: 50%; top: 10px; transform: translateX(-88%) rotate(-5deg); z-index: 2; }
.phone-b { left: 50%; top: 56px; transform: translateX(-4%) rotate(5deg); }
.glow { position: absolute; inset: 8% 6% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--latte-3), rgba(231, 214, 193, 0)); filter: blur(10px); }
.sample { font-size: 12.5px; color: var(--sub); text-align: center; margin-top: 8px; }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip div { background: var(--latte-2); border-radius: 18px; padding: 18px 20px; }
.strip div:nth-child(1) { background: var(--latte-1); }
.strip div:nth-child(4) { background: var(--latte-3); }
.strip b { display: block; font-size: 17px; color: var(--ink); }
.strip span { font-size: 14.5px; }

/* cards & grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin-top: 16px; }
.card p { margin-top: 8px; font-size: 15.5px; }
.icon { width: 50px; height: 50px; border-radius: 16px; background: var(--latte-1); color: var(--coffee); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.card:nth-child(3n+2) .icon { background: var(--latte-2); }
.card:nth-child(3n) .icon { background: var(--latte-3); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 9px; background: var(--tile); color: var(--text); margin-top: 14px; }

/* feature rows (screens) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .phone { position: relative; transform: none; width: 280px; }
.feature-media::before { content: ""; position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--latte-2); }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 10px; }
.feature p { margin-top: 14px; font-size: 17.5px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); font-weight: 600; }
.ticks li span { font-weight: 400; color: var(--text); }
.ticks svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: var(--latte-1); color: var(--coffee); margin-top: 1px; }

/* map art (no screenshot) */
.map-art { position: relative; width: 300px; aspect-ratio: 390 / 800; border-radius: 40px; padding: 9px; background: var(--ink); box-shadow: 0 40px 70px -34px rgba(36, 23, 15, .65); }
.map-art .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #EFE7DA; position: relative; }
.map-art svg { width: 100%; height: 100%; }

/* roles */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role { border-radius: var(--radius); padding: 30px; background: var(--latte-2); }
.role.dark { background: var(--coffee); color: #E9DCCB; }
.role.dark h3, .role.dark b { color: var(--cream); }
.role h3 { font-size: 22px; }
.role ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.role li { display: flex; gap: 10px; }
.role li::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: var(--gold); margin-top: 10px; flex-shrink: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--coffee); color: var(--cream); font-weight: 700; font-size: 17px; }
.step h3 { font-size: 19px; margin-top: 18px; }
.step p { margin-top: 8px; font-size: 15.5px; }

/* download */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl h3 { font-size: 21px; margin-top: 16px; }
.dl p { margin-top: 8px; font-size: 15.5px; flex: 1; }
.dl .meta { font-size: 13.5px; color: var(--sub); margin-top: 14px; }
.dl .btn { margin-top: 20px; width: 100%; }
.btn[aria-disabled="true"] { background: var(--tile); color: var(--sub); box-shadow: none; pointer-events: none; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 9px; background: var(--latte-3); color: var(--coffee); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--coffee); border-bottom: 2px solid var(--coffee); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 22px 20px; font-size: 15.5px; }

/* call to action band */
.band { background: var(--coffee); border-radius: 30px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; color: #E9DCCB; }
.band h2 { color: var(--cream); font-size: clamp(28px, 3.6vw, 40px); }
.band p { margin-top: 12px; font-size: 17px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.band .btn-dark { background: var(--cream); color: var(--coffee); }
.band .btn-soft { background: transparent; color: var(--cream); box-shadow: 0 0 0 1px rgba(251, 247, 241, .35); }

/* page head (inner pages) */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 12px; letter-spacing: -.03em; }
.page-head .lead { margin-top: 16px; }

/* legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16.5px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.note { background: var(--latte-2); border-radius: 18px; padding: 18px 20px; font-size: 15.5px; margin-top: 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; background: var(--tile); color: var(--text); }

/* footer */
.site-foot { margin-top: 40px; padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--page); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-grid ul a { color: var(--text); }
.foot-about { font-size: 15px; margin-top: 14px; max-width: 320px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

/* tablet */
@media (max-width: 980px) {
  .hero-grid, .feature, .band { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3, .dl-grid, .steps { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .band .actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .head-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .site-head.open .nav { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(36, 23, 15, .4); }
  .site-head.open .nav a { padding: 14px 14px; font-size: 16.5px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 36px; }
  .phones { height: 430px; }
  .phone { width: 184px; border-radius: 30px; padding: 7px; }
  .phone-a { transform: translateX(-92%) rotate(-5deg); }
  .phone-b { transform: translateX(-2%) rotate(5deg); top: 46px; }
  .phone img { border-radius: 26px; }
  .grid-3, .grid-2, .dl-grid, .steps, .roles, .strip { grid-template-columns: 1fr; }
  .feature { gap: 30px; padding: 40px 0; }
  .feature-media .phone { width: 240px; }
  .feature-media::before { width: 300px; height: 300px; }
  .map-art { width: 250px; }
  .band { padding: 34px 24px; border-radius: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* small helpers (no inline styles - the Content-Security-Policy allows none) */
.section.tight { padding-top: 0; }
.sample.left { text-align: left; }
.page-head.nf { padding: 110px 0 80px; }
.tc { text-align: center; }
.mt16 { margin-top: 16px; }
.hero-actions.jc { justify-content: center; }
