/* Modern design for About (about.php), Meet Our Pastor (meet-our-pastor.php) and What We Believe (beliefs.php).
   Loaded only when the page's $aboutStyle / $pastorStyle / $beliefsStyle = 'modern' (set to 'classic' to revert). */

/* ---------- hero ---------- */
.ab-hero {
  position: relative;
  padding: 7.5rem 1.5rem 4.2rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(155deg, #16322e 0%, #234e48 50%, #2f6a61 100%);
  isolation: isolate;
}
.ab-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ab-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.ab-orb-1 { width: 380px; height: 380px; top: -140px; right: -110px; background: #ff7a52; opacity: .22; }
.ab-orb-2 { width: 340px; height: 340px; bottom: -150px; left: -100px; background: #3fb7a3; opacity: .26; }
.ab-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
.ab-hero-inner { max-width: 760px; margin: 0 auto; animation: ab-up .7s ease-out both; }
.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd9c9;
}
.ab-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #f57450; animation: ab-pulse 2s ease-in-out infinite; }
.ab-hero-title { margin: 1rem 0 .7rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(2.5rem, 7vw, 4.4rem); font-weight: 700; line-height: 1.05; color: #fff; }
.ab-hero-title em,
.ab-title em,
.ab-cta h2 em {
  font-style: italic;
  display: inline-block;
  padding: 0 .06em .12em 0;
  background: linear-gradient(90deg, #ff8f6b, #ffd0a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-hero-sub { margin: 0 auto; max-width: 600px; font-size: clamp(1.02rem, 2.4vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .85); }

/* ---------- shared layout ---------- */
.ab-section { padding: 4rem 1.25rem; background: #f5f7f2; }
.ab-wrap { max-width: 1120px; margin: 0 auto; }
.ab-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.ab-label {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: #fff1ea;
  border: 1px solid #ffd9c9;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c4401a;
}
.ab-label::before, .ab-label::after { display: none; }
.ab-title { margin: .9rem 0 0; font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(1.9rem, 4.4vw, 2.8rem); color: #1c3b36; }
.ab-title em { background: linear-gradient(90deg, #e8431e, #f57450); -webkit-background-clip: text; background-clip: text; }
.ab-intro { margin: .9rem auto 0; font-size: 1.05rem; line-height: 1.75; color: #55655f; }

/* ---------- ABOUT: story ---------- */
.ab-story { background: #fff; }
.ab-story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.ab-story-aside { position: sticky; top: 7rem; }
.ab-pull {
  margin: 1.1rem 0 0;
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #16322e, #234e48 60%, #2f6a61);
  color: #fff;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-style: italic;
  line-height: 1.45;
  box-shadow: 0 20px 44px rgba(22, 50, 46, .3);
}
.ab-story-text p { margin: 0 0 1.3rem; font-size: 1.05rem; line-height: 1.85; color: #4d5d57; text-align: left; }
.ab-story-text .ab-lead { font-size: 1.25rem; line-height: 1.7; color: #1c3b36; font-weight: 600; }

/* ---------- ABOUT: mission / vision ---------- */
.ab-mv { padding-top: 0; background: #fff; }
.ab-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.ab-mv-card {
  position: relative;
  padding: 2.2rem 2rem 2.3rem;
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .18);
  transition: transform .25s ease;
}
.ab-mv-card:hover { transform: translateY(-6px); }
.ab-mv-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -90px; background: rgba(255, 255, 255, .13); }
.ab-coral { --a: #f57450; --b: #ffa06b; }
.ab-teal { --a: #1f6b5e; --b: #3fb7a3; }
.ab-mv-card.ab-coral { background: linear-gradient(135deg, #e8431e, #f57450 60%, #ffa06b); }
.ab-mv-card.ab-teal { background: linear-gradient(135deg, #16322e, #1f6b5e 55%, #3fb7a3); }
.ab-mv-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1.1rem; border-radius: 20px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); font-size: 1.6rem; }
.ab-mv-card h2 { margin: 0 0 .6rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.9rem; color: #fff; }
.ab-mv-card p { position: relative; margin: 0; font-size: 1.02rem; line-height: 1.75; color: rgba(255, 255, 255, .92); }

/* ---------- ABOUT: values ---------- */
.ab-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ab-value {
  --c: #f57450;
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e4eae1;
  box-shadow: 0 10px 28px rgba(35, 78, 72, .08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ab-value::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.ab-value:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 20px 44px rgba(35, 78, 72, .16); }
.ab-value-num { position: absolute; right: 1.1rem; top: .5rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--c); opacity: .13; }
.ab-value-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 16px; background: var(--c); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); }
.ab-value h3 { margin: 0 0 .45rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.3rem; color: #1c3b36; }
.ab-value p { margin: 0; font-size: .96rem; line-height: 1.65; color: #5b6b65; }

/* ---------- PASTOR ---------- */
.ab-pastors { background: #f5f7f2; background-image: radial-gradient(rgba(35, 78, 72, .05) 1px, transparent 1px); background-size: 28px 28px; }
.ab-pastor-list { display: grid; gap: 2rem; }
.ab-pastor {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.4rem;
  padding: 2rem;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #e4eae1;
  box-shadow: 0 18px 46px rgba(35, 78, 72, .12);
  position: relative;
  overflow: hidden;
}
.ab-pastor::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--a), var(--b)); }
.ab-pastor.ab-reverse { grid-template-columns: 1fr 340px; }
.ab-pastor.ab-reverse .ab-pastor-photo { order: 2; }
.ab-photo-frame { padding: 8px; border-radius: 28px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.ab-photo-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 21px; }
.ab-photo-quote { margin: 1.1rem 0 0; padding: 1rem 1.15rem; border-radius: 18px; background: #f3f6f1; font-family: var(--font-display, 'Playfair Display', serif); font-size: .98rem; font-style: italic; line-height: 1.55; color: #3c4d47; }
.ab-photo-quote i { margin-right: .35rem; color: var(--a); }
.ab-pastor-body h2 { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: #1c3b36; }
.ab-role { margin: .3rem 0 1rem; font-weight: 700; letter-spacing: .06em; color: var(--a); }
.ab-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.ab-chipx { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; background: #eef2ee; color: #234e48; font-size: .8rem; font-weight: 700; }
.ab-chipx i { color: var(--a); }
.ab-bio p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.8; color: #4d5d57; }

.ab-family {
  margin-top: 2rem;
  padding: 2.2rem 2rem 2rem;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(155deg, #16322e 0%, #234e48 55%, #2b5c54 100%);
  box-shadow: 0 22px 52px rgba(22, 50, 46, .3);
  position: relative;
  overflow: hidden;
}
.ab-family::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -100px; top: -140px; background: #f57450; opacity: .2; filter: blur(70px); }
.ab-family-head { position: relative; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ab-family-icon { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #f57450, #e8431e); font-size: 1.5rem; box-shadow: 0 12px 26px rgba(245, 116, 80, .4); }
.ab-family-head h2 { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.8rem; color: #fff; }
.ab-family-head p { margin: .1rem 0 0; color: #ffd0a8; font-weight: 600; }
.ab-family-text { position: relative; margin: 0 0 1.4rem; line-height: 1.8; color: rgba(255, 255, 255, .85); }
.ab-kids, .ab-ministries { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.ab-kid, .ab-ministry { padding: 1.2rem 1.3rem; border-radius: 20px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ab-kid-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ab-kid h3 { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.25rem; color: #fff; }
.ab-age { padding: .15rem .65rem; border-radius: 999px; background: rgba(245, 116, 80, .25); border: 1px solid rgba(245, 116, 80, .5); font-size: .75rem; font-weight: 700; color: #ffd0bf; }
.ab-kid-role { margin: .5rem 0 .4rem; font-weight: 700; color: #ffb199; }
.ab-kid p:last-child { margin: 0; font-size: .93rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ab-ministry { display: flex; gap: .9rem; align-items: flex-start; }
.ab-ministry-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #ffb199; }
.ab-ministry h4 { margin: 0 0 .25rem; font-size: 1.05rem; color: #fff; }
.ab-ministry p { margin: 0; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .8); }

/* ---------- BELIEFS ---------- */
.ab-beliefs { background: #f5f7f2; background-image: radial-gradient(rgba(35, 78, 72, .05) 1px, transparent 1px); background-size: 28px 28px; }
.ab-belief-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ab-belief {
  --c: #f57450;
  position: relative;
  padding: 1.7rem 1.6rem 1.6rem;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #e4eae1;
  box-shadow: 0 12px 32px rgba(35, 78, 72, .09);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ab-belief::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.ab-belief:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: 0 22px 46px rgba(35, 78, 72, .16); }
.ab-belief-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ab-belief-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--c); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 22px rgba(0, 0, 0, .2); }
.ab-belief-num { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--c); opacity: .2; }
.ab-belief h3 { margin: 0 0 .5rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.5rem; color: #1c3b36; }
.ab-belief p { margin: 0 0 1rem; font-size: .98rem; line-height: 1.75; color: #55655f; }
.ab-verse { margin: 0; padding: .95rem 1.1rem; border-radius: 16px; background: #f3f6f1; font-size: .9rem; font-style: italic; line-height: 1.6; color: #3c4d47; }
.ab-verse i { margin-right: .35rem; color: var(--c); font-style: normal; }

/* ---------- call to action ---------- */
.ab-cta { padding: 4rem 1.5rem; text-align: center; color: #fff; background: linear-gradient(135deg, #234e48 0%, #1b3d38 55%, #3a1f1a 130%); }
.ab-cta-inner { max-width: 660px; margin: 0 auto; }
.ab-cta h2 { margin: 0 0 .7rem; font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(1.9rem, 4.4vw, 2.8rem); color: #fff; }
.ab-cta p { margin: 0 0 1.7rem; font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ab-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.ab-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 700; line-height: 1; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ab-btn:hover, .ab-btn:focus-visible { transform: translateY(-2px); outline: none; }
.ab-btn-primary { background: linear-gradient(135deg, #f57450, #e8431e); color: #fff; box-shadow: 0 10px 24px rgba(245, 116, 80, .4); }
.ab-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(245, 116, 80, .55); }
.ab-btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); color: #fff; }
.ab-btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- dark theme ---------- */
html[data-theme="dark"] body.am-modern { background: #121c1a; }
html[data-theme="dark"] .ab-section,
html[data-theme="dark"] .ab-story,
html[data-theme="dark"] .ab-mv { background: #121c1a; }
html[data-theme="dark"] .ab-pastors,
html[data-theme="dark"] .ab-beliefs { background-color: #121c1a; background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); }
html[data-theme="dark"] .ab-title, html[data-theme="dark"] .ab-story-text .ab-lead,
html[data-theme="dark"] .ab-value h3, html[data-theme="dark"] .ab-pastor-body h2,
html[data-theme="dark"] .ab-belief h3 { color: #f1f6f3; }
html[data-theme="dark"] .ab-intro, html[data-theme="dark"] .ab-story-text p,
html[data-theme="dark"] .ab-value p, html[data-theme="dark"] .ab-bio p, html[data-theme="dark"] .ab-belief p { color: #aebdb6; }
html[data-theme="dark"] .ab-value, html[data-theme="dark"] .ab-pastor, html[data-theme="dark"] .ab-belief { background: #1a2623; border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .ab-photo-quote, html[data-theme="dark"] .ab-verse { background: rgba(255, 255, 255, .06); color: #d5e0da; }
html[data-theme="dark"] .ab-chipx { background: rgba(255, 255, 255, .08); color: #e6eee9; }
html[data-theme="dark"] .ab-label { background: rgba(245, 116, 80, .15); border-color: rgba(245, 116, 80, .4); color: #ffb199; }

/* ---------- animation / responsive ---------- */
@keyframes ab-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ab-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }

@media (max-width: 960px) {
  .ab-story-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .ab-story-aside { position: static; }
  .ab-values-grid { grid-template-columns: 1fr 1fr; }
  .ab-pastor, .ab-pastor.ab-reverse { grid-template-columns: 1fr; gap: 1.6rem; }
  .ab-pastor.ab-reverse .ab-pastor-photo { order: 0; }
  .ab-pastor-photo { max-width: 360px; margin: 0 auto; }
  .ab-belief-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ab-hero { padding: 6.8rem 1.25rem 3.4rem; }
  .ab-section { padding: 2.8rem 1rem; }
  .ab-mv-grid, .ab-values-grid, .ab-kids, .ab-ministries { grid-template-columns: 1fr; }
  .ab-mv-card { padding: 1.7rem 1.4rem 1.8rem; border-radius: 24px; }
  .ab-pastor { padding: 1.3rem 1.2rem; border-radius: 24px; }
  .ab-family { padding: 1.6rem 1.2rem; border-radius: 24px; }
  .ab-cta { padding: 3rem 1.25rem; }
  .ab-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-hero-inner, .ab-chip-dot { animation: none !important; }
  .ab-mv-card, .ab-value, .ab-belief, .ab-btn { transition: none !important; }
}
