/* =========================================================
   APOM Community — site styles
   Brand colors: #1995AD (main), #A1D6E2, #BCBABE, #F1F1F2
   Change a color here and it updates across the whole site.
   ========================================================= */
:root {
  --main: #1995ad;        /* main brand color */
  --main-dark: #0f6b7d;   /* darker shade of the main color, for text and hover */
  --sky: #a1d6e2;
  --gray: #bcbabe;
  --mist: #f1f1f2;
  --sky-soft: #e7f4f7;    /* light tint of #A1D6E2, for soft backgrounds */
  --ink: #2c3236;
  --muted: #5b6468;
  --line: #e1e3e5;
  --white: #ffffff;
  --deep: #0f4f5c;        /* dark shade of the main color, for hover text */

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-logo: "Roboto Slab", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 107, 125, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--main-dark); }
a:hover { color: var(--main); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--main-dark);
  font-weight: 700;
  margin-bottom: 0.8em;
}
.script { font-family: var(--font-script); font-weight: 400; color: var(--main); }
.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Logo (built in code so it stays sharp) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; --s: 90px; --g: 8px; }
.logo-mark { display: grid; grid-template-columns: var(--s) var(--s); grid-template-rows: var(--s) var(--s); gap: var(--g); }
.logo-mark i { display: block; }
.logo-mark i:nth-child(1) { background: var(--sky); }
.logo-mark i:nth-child(2) {
  background: none; display: flex; align-items: flex-end; padding-left: calc(var(--g) * 0.8); padding-bottom: calc(var(--g) * 0.4);
  font: 700 calc(var(--s) * 0.34) / 1 var(--font-logo); font-style: normal; color: #4d5256; letter-spacing: 0.01em;
}
.logo-mark i:nth-child(3) { background: var(--gray); }
.logo-mark i:nth-child(4) { background: var(--main); }
.logo-word { margin-top: calc(var(--s) * 0.22); font: 400 calc(var(--s) * 0.19) / 1 var(--font-logo); letter-spacing: 0.12em; color: #4d5256; }
.logo-sm { --s: 17px; --g: 2px; }
.logo-sm .logo-word { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--main);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--main);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--main-dark); border-color: var(--main-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--main-dark); }
.btn-outline:hover { background: var(--main); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--main-dark); }
.btn-light:hover { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* App store badges */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 12px; border: 1px solid #111;
  transition: transform 0.2s, background 0.2s;
}
.store-btn:hover { color: #fff; background: #000; transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn small { font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.85; }
.store-btn strong { font-size: 1.05rem; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-logo); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; color: #4d5256; }
.brand-name small { display: block; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.03em; }
.nav a:hover, .nav a.active { color: var(--main); }
.nav .btn { color: var(--white); padding: 0.6em 1.3em; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 20px 16px; text-align: center; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-sky { background: var(--sky-soft); }
.section-main { background: var(--main); color: var(--white); }
.section-main h2, .section-main h3 { color: var(--white); }
.section-main .eyebrow { color: var(--white); opacity: 0.85; }
.section-main p { color: rgba(255, 255, 255, 0.92); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }

/* ---------- Home hero (logo only) ---------- */
.hero {
  background: var(--mist);
  padding: 96px 0 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--sky) 0 33.3%, var(--gray) 33.3% 66.6%, var(--main) 66.6% 100%);
}
.hero .logo { margin-bottom: 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-bottom: 0.3em; }
.hero h1 em { font-style: italic; color: var(--main); }
.hero .lead { max-width: 640px; margin: 0 auto 32px; }
@media (max-width: 600px) { .hero .logo { --s: 64px; --g: 6px; } .hero { padding: 64px 0 80px; } }

.page-hero { background: var(--mist); padding: 72px 0 64px; text-align: center; }
.page-hero p { max-width: 640px; margin: 0 auto; }
/* Page hero with a photo beside the text */
.page-hero.with-photo { text-align: left; padding: 64px 0; }
.page-hero.with-photo p { margin: 0 0 1.1em; }
.page-hero.with-photo img { max-width: 400px; justify-self: end; }
@media (max-width: 860px) { .page-hero.with-photo img { justify-self: center; } }

.section-line { border-top: 1px solid var(--line); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--main);
}
.card.sky { border-top-color: var(--sky); }
.card.gray { border-top-color: var(--gray); }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--sky); font-weight: 700; display: block; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 440px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; background: var(--main);
  box-shadow: -4px -4px 0 0 var(--sky);
}
.section-main .checklist li { border-bottom-color: rgba(255, 255, 255, 0.2); }
.section-main .checklist li::before { background: var(--white); }

/* Framework pillars */
.pillars-wrap { align-items: start; }
.pillars-wrap img { position: sticky; top: 100px; aspect-ratio: 1 / 1; }
.pillars { list-style: none; padding: 0; margin: 0; }
.pillars li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(25, 149, 173, 0.2); }
.pillars li:first-child { padding-top: 0; }
.pillars li:last-child { border-bottom: 0; }
.pillars .num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-weight: 700; color: var(--main); flex: none; width: 48px; }
.pillars h3 { margin-bottom: 0.3em; }
.pillars p { margin-bottom: 0.6em; }
@media (max-width: 860px) { .pillars-wrap img { position: static; } }

/* Gatherings */
.gathering { text-align: center; }
.gathering .day { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--main); line-height: 1.1; }

/* ---------- Team ---------- */
.coaches { align-items: stretch; }
.coach { text-align: center; }
.coach-photo {
  display: block; width: 160px; height: 160px; margin: 0 auto 20px;
  border-radius: 50%; object-fit: cover; object-position: center 20%;
  border: 5px solid var(--white); box-shadow: 0 0 0 2px var(--sky), var(--shadow);
}
.coach h3 { margin-bottom: 0.2em; }
.coach .role { margin-bottom: 1em; }
.coach p:not(.role) { font-size: 1rem; line-height: 1.65; color: var(--ink); }
.role { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--main-dark); }

/* ---------- Scripture ---------- */
.verse {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--main);
  box-shadow: var(--shadow);
}
.verse h3 { margin-bottom: 0.3em; }
.verse blockquote { margin: 0 0 0.8em; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.verse cite { font-style: normal; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--main-dark); }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.list-clean strong { color: var(--main-dark); }

/* ---------- APOM Today (blog) ---------- */
.posts { display: flex; flex-direction: column; gap: 20px; }
.post-card {
  display: grid; grid-template-columns: 140px 1fr; align-items: stretch;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 107, 125, 0.14); color: var(--ink); }
.post-card .thumb { background-size: cover; background-position: center 25%; background-color: var(--sky); min-height: 140px; }
.post-card .thumb-logo { background: var(--mist); display: flex; align-items: center; justify-content: center; border-right: 4px solid var(--main); }
.post-card .thumb-logo .logo { --s: 30px; --g: 3px; }
.post-card .thumb-logo .logo-word { display: none; }
.post-card .body { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.post-card h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.post-card p { color: var(--muted); font-size: 1rem; margin-bottom: 0.6em; }
.post-meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.read-more { font-weight: 700; color: var(--main-dark); }
@media (max-width: 560px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb { min-height: 110px; }
  .post-card .thumb-logo { border-right: 0; border-bottom: 4px solid var(--main); }
}

.post-header { padding: 72px 0 40px; text-align: center; background: var(--mist); }
.post-header .post-meta { margin-top: 10px; }
.post-header .logo { --s: 52px; --g: 5px; margin-bottom: 28px; }
.post-body { padding: 56px 0 88px; }
.post-body h2 { font-size: 2rem; margin-top: 1.6em; }
.post-body h3 { margin-top: 1.4em; }
.post-body blockquote {
  margin: 1.6em 0; padding: 20px 26px; background: var(--sky-soft); border-left: 4px solid var(--main);
  border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.5;
}
.post-body blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--main-dark); }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: 0.4em; }
.scripture-notice { margin-top: 40px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.post-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: #1995ad; border-top: 1px solid rgba(255, 255, 255, 0.35); color: #fff; padding: 64px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 640px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.85rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .card, .verse { padding: 24px; }
}
