/* ==========================================================================
   Granger Missionary Church — modern shared stylesheet
   Pure static site: works fully offline, centered, responsive, accessible.
   ========================================================================== */

:root {
  --primary:        #2b3a67;   /* deep navy */
  --primary-dark:   #1e2946;
  --primary-ink:    #1a2133;
  --accent:         #b8942a;   /* warm gold */
  --accent-dark:    #97771f;
  --accent-soft:    #f5ead0;
  --bg:             #f6f4ef;   /* warm off-white */
  --surface:        #ffffff;
  --text:           #2e2a25;
  --muted:          #6e6a63;
  --border:         #e5e0d6;
  --shadow:         0 10px 30px rgba(20, 33, 51, .08);
  --shadow-sm:      0 4px 14px rgba(20, 33, 51, .06);
  --radius:         14px;
  --radius-sm:      8px;
  --maxw:           1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--primary-ink, var(--primary-dark));
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.brand-tagline {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary-dark);
}
.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------------------------------------------------------------- hero ---- */
.hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 33, 51, .92), rgba(43, 58, 103, .82)),
    var(--primary);
  padding: 84px 0 74px;
}
.hero-inner { text-align: center; max-width: 820px; }
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: .3em;
}
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.5em;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #2a2006; }
.btn-primary:hover { background: #caa52f; color: #2a2006; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--primary-dark); color: #fff; }
.btn-dark:hover { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- layout - */
main { display: block; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-soft { background: var(--accent-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head h2 { color: var(--primary-dark); }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto; }
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.9); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-link { font-weight: 700; }

/* ---------------------------------------------------------------- panels - */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }

.schedule-box {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
}
.schedule-box h3 { color: var(--accent); border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 10px; }
.schedule-box ul { list-style: none; margin: 0; padding: 0; }
.schedule-box li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.schedule-box .s-time { color: var(--accent); font-weight: 700; }
.schedule-box .s-label { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- lists -- */
ul.tick { list-style: none; padding: 0; }
ul.tick li { padding-left: 26px; position: relative; margin-bottom: .6em; }
ul.tick li::before {
  content: "";
  position: absolute; left: 2px; top: .55em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.event-list li:last-child { border-bottom: 0; }
.event-list .ev-icon {
  flex: 0 0 46px; height: 46px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* --------------------------------------------------- rec list (links page) -- */
.rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.rec-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.rec-list h3 { margin-bottom: .35em; font-size: 1.15rem; }
.rec-list p { margin: 0 0 .4em; color: var(--muted); font-size: .95rem; }
.rec-list a { font-weight: 700; }

/* ---------------------------------------------------------------- form --- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,148,42,.18);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  margin-top: 64px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

address { font-style: normal; }

/* ---------------------------------------------------------------- misc --- */
.contact-meta strong { color: #fff; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-bar { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-top: 1px solid var(--border); }
  .page-hero { padding: 42px 0 38px; }
  .section { padding: 46px 0; }
}
