/* =====================================================================
   Model City Church — Shared Stylesheet
   Modern, single-campus church site.
   Palette: official Model City Church Brand Guide colors.
   ===================================================================== */

:root {
  /* --- Model City Church brand palette (from Brand Guide) --- */
  --ink:        #1a1a24;   /* brand dark — used instead of full black */
  --navy:       #1f3363;   /* deep navy */
  --ink-2:      #1f3363;   /* secondary dark surface = navy */
  --ink-soft:   #40405a;   /* muted text on light */
  --indigo:     #4000f5;   /* PRIMARY brand accent */
  --indigo-2:   #3400cc;   /* indigo hover / accent text on light */
  --sky:        #4f9cf5;   /* light blue — accent on dark backgrounds */
  --orange:     #ff6336;   /* warm secondary accent */
  --yellow:     #f5e82b;
  --pink:       #f573a1;
  --maroon:     #8c1733;
  --teal:       #00634f;
  /* legacy aliases → brand colors (so existing rules resolve) */
  --amber:      var(--yellow);    /* PRIMARY accent = brand yellow */
  --amber-dark: var(--orange);    /* accent text on light = orange */
  --coral:      var(--orange);
  --paper:      #f5f0eb;   /* brand off-white / cream */
  --paper-2:    #ece5d8;
  --white:      #ffffff;
  --muted:      #6f6f7e;
  --line:       rgba(26, 26, 36, 0.12);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -20px rgba(20, 22, 43, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(20, 22, 43, 0.4);

  /* Brand fonts — Work Sans (body/headers), Oswald as stand-in for Dense (display) */
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --serif: var(--display); /* alias kept so existing rules pick up the display font */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--yellow); }

h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0.005em; }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--ink); color: var(--amber);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.brand__logo { height: 38px; width: auto; display: block; }
@media (max-width: 400px) { .brand__logo { height: 32px; } }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 0.96rem; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(20,22,43,.06); color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { display: none; } /* mobile Give — hidden on desktop, shown in media query */
.nav .btn--primary { color: var(--ink); } /* Give button: dark text on yellow (beats .nav__links a color) */
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--white); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 15% 10%, var(--navy) 0%, var(--ink) 58%, #101018 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0 130px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.22rem; margin-top: 20px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__glow {
  position: absolute; z-index: 1; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,99,54,.34), transparent 62%);
  right: -140px; top: -120px; filter: blur(8px);
}
.hero__arrows { position:absolute; inset:0; z-index:1; opacity:.16; pointer-events:none; }

/* ---------- Info strip (service times) ---------- */
.infostrip {
  background: var(--ink); color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}
.infostrip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.infostrip__item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; border-left: 1px solid rgba(255,255,255,.1); }
.infostrip__item:first-child { border-left: none; }
.infostrip__item .ico { color: var(--yellow); flex: none; margin-top: 2px; }
.infostrip__item h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.infostrip__item p { margin: 3px 0 0; color: rgba(255,255,255,.9); font-weight: 600; }
.infostrip__item small { color: rgba(255,255,255,.55); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--amber-dark); margin-bottom: 18px; font-size: 1.5rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--amber-dark); font-size: .95rem; }

/* Split feature blocks */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.media-box {
  border-radius: var(--radius); min-height: 340px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--ink-2), var(--ink)); position: relative; overflow: hidden;
}
.media-box--amber { background: linear-gradient(135deg, var(--amber), var(--coral)); }
.media-box--paper { background: linear-gradient(135deg, var(--paper-2), #e2ddcf); }
.media-box__tag {
  position: absolute; left: 20px; bottom: 20px; background: rgba(0,0,0,.35); color:#fff;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px);
}
.media-note {
  position:absolute; inset:0; display:grid; place-items:center; color:rgba(255,255,255,.7);
  font-size:.85rem; text-align:center; padding:20px;
}

/* Series feature */
.series { background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.series__grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.series__art { background: linear-gradient(140deg, var(--yellow), var(--orange)); min-height: 320px; position: relative; display:grid; place-items:center; }
.series__art span { font-family: var(--serif); font-size: clamp(2.5rem,6vw,4.5rem); color: rgba(255,255,255,.92); letter-spacing:.02em; }
.series__body { padding: 46px; }
.series__body h2 { color: #fff; }
.series__body p { color: rgba(255,255,255,.75); }

/* CTA band */
.cta-band { background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 56px; text-align: center; }
.cta-band h2 { max-width: 620px; margin: 0 auto; color: var(--ink); }
.cta-band .eyebrow { color: rgba(26,26,36,.68); }
.cta-band .btn--dark { margin-top: 26px; }
.cta-band .btn--dark:hover { background: #000; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: radial-gradient(120% 130% at 80% 0%, var(--navy), var(--ink) 62%, #101018); color:#fff; }
.page-hero__inner { padding: 96px 0 84px; max-width: 720px; }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 16px; font-size: 1.15rem; }
.crumbs { font-size:.85rem; color: rgba(255,255,255,.55); margin-bottom: 16px; letter-spacing:.04em; }
.crumbs a:hover { color: var(--yellow); }

/* ---------- Feature list / steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step__num {
  counter-increment: step; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; font-family: var(--serif);
}
.step__num::before { content: counter(step); }

/* ---------- Team ---------- */
.person { text-align: center; }
.person__photo {
  aspect-ratio: 1/1; border-radius: 18px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(150deg, var(--paper-2), #ddd7c7); display:grid; place-items:center; color:var(--muted);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person h3 { font-size: 1.2rem; }
.person p { color: var(--amber-dark); font-weight: 600; font-size: .92rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; font-size: 1.1rem; font-weight: 700; font-family: var(--sans); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.accordion__q .plus { flex: none; color: var(--amber-dark); font-size: 1.5rem; transition: transform .2s ease; }
.accordion__item.open .plus { transform: rotate(45deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__a p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Give options ---------- */
.give-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.give-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.give-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Sermon cards ---------- */
.sermon { display: block; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sermon__thumb { aspect-ratio: 16/9; background: linear-gradient(140deg, var(--ink-2), var(--coral)); display:grid; place-items:center; position:relative; }
.sermon__thumb::after { content:""; position:absolute; inset:0; background:rgba(26,26,36,.18); transition:background .2s ease; }
.sermon.card--link:hover .sermon__thumb::after { background:rgba(26,26,36,.05); }
.sermon__thumb .play { position:relative; z-index:1; }
.sermon__thumb .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); display:grid; place-items:center; color: var(--ink); }
.sermon__body { padding: 22px; }
.sermon__body small { color: var(--amber-dark); font-weight: 700; letter-spacing:.04em; text-transform: uppercase; font-size:.75rem; }
.sermon__body h3 { font-size: 1.15rem; margin: 6px 0; }

/* ---------- Event rows ---------- */
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.event__date { text-align: center; background: var(--paper-2); border-radius: var(--radius-sm); padding: 12px 6px; }
.event__date .m { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.event__date .d { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--ink); }
.event h3 { font-size: 1.2rem; }
.event p { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--sans); color:#fff; font-size:.8rem; letter-spacing:.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer a:hover { color: var(--yellow); }
.footer ul li { margin-bottom: 10px; }
.footer__brand { display:flex; align-items:center; gap:12px; color:#fff; font-family:var(--serif); font-size:1.3rem; margin-bottom: 16px; }
.footer__brand .brand__logo { height: 44px; filter: brightness(0) invert(1); } /* black logo → white on dark footer */
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display:grid; place-items:center; color:#fff; transition: background .15s ease; }
.socials a:hover { background: var(--yellow); color: var(--ink); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-24{margin-top:24px}.mt-40{margin-top:40px}
.tag { display:inline-block; background: var(--paper-2); color: var(--ink-2); padding: 5px 12px; border-radius: 999px; font-size:.8rem; font-weight:700; }
.li-chk { color: var(--orange); vertical-align: -4px; margin-right: 9px; flex: none; }
.card__icon svg { width: 26px; height: 26px; }
.divider { height:1px; background: var(--line); border:none; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .series__grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .series__art { min-height: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: inline-flex; } /* show Give next to hamburger on mobile */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 16px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .28s ease; z-index: 90;
  }
  .nav__links.open { transform: translateY(0); display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__links .btn { display: inline-flex; justify-content: center; margin-top: 8px; }
  .infostrip__grid { grid-template-columns: 1fr; }
  .infostrip__item { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .infostrip__item:first-child { border-top: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4, .give-grid, .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
  .cta-band, .series__body { padding: 34px 26px; }
  .hero__inner { padding: 80px 0 90px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
