/* Heber Shack of Alcoholics Anonymous — shared styles
   Theme color: #38004E (deep purple), accent: #E0A82E (warm gold) */

:root {
  --purple: #38004E;
  --purple-light: #5a2d73;
  --gold: #E0A82E;
  --gold-dark: #9c7213;
  --ink: #241a2b;
  --muted: #6b6570;
  --bg: #faf8fb;
  --card: #ffffff;
  --border: #e7e1ec;
  --max: 1080px;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(56, 0, 78, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-light); }
img { max-width: 100%; display: block; }

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

/* Announcement bar — slim version used on every page */
.announce { background: var(--purple); color: #fff; text-align: center; font-size: 0.9rem; padding: 8px 16px; }
.announce a { color: var(--gold); text-decoration: none; font-weight: 600; }
.announce a:hover { text-decoration: underline; }

/* Alert bar — the loud, full-width version used at the top of the home page.
   TO UPDATE: edit the text inside <div class="alert-bar"> in index.html.
   TO HIDE IT: delete that whole <div> (the page works fine without it). */
.alert-bar {
  background: var(--gold);
  color: #2e2100;
  border-bottom: 3px solid var(--gold-dark);
  padding: 14px 20px;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.45;
}
.alert-bar .alert-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}
.alert-bar .alert-tag {
  background: var(--purple);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.alert-bar .alert-text { font-weight: 700; }
.alert-bar .alert-text .alert-when { font-weight: 800; white-space: nowrap; }
.alert-bar .alert-link {
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.alert-bar .alert-link:hover { color: #1f0030; }
@media (max-width: 560px) {
  .alert-bar { font-size: 0.95rem; padding: 12px 16px; }
}

/* Announcements (Shacktivities page) */
.announcement {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.announcement h2 { color: var(--purple); margin: 0 0 4px; font-size: 1.4rem; }
.announcement .when { color: var(--gold-dark); font-weight: 700; margin: 0 0 2px; }
.announcement .where { color: var(--muted); margin: 0 0 14px; }
.announcement .kicker {
  display: inline-block;
  background: #f0e9f4;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.announcement .pull {
  border-left: 3px solid var(--gold);
  margin: 14px 0;
  padding: 4px 16px;
  color: var(--purple);
  font-style: italic;
}
.announcement ul { padding-left: 20px; margin: 12px 0; }
.announcement li { margin-bottom: 6px; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; }
.contact-list li { margin-bottom: 4px; }

/* Event detail bits (notes list, figures) */
.event .event-body > ul { padding-left: 20px; }
.event .event-body > ul li { margin-bottom: 7px; }
.event .note {
  background: #fff8e6;
  border: 1px solid #f0d99a;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-weight: 600;
  color: #6a4a00;
}
.event-figure { margin: 0 0 4px; }
.event-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.event-figure figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px 0;
}

/* Header / Nav */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand .logo { width: 42px; height: 42px; background: var(--purple); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { background: #f0e9f4; color: var(--purple); }
.nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--purple); margin: 4px 0; }

@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--border); border-radius: 0; }
  .nav-toggle:checked ~ .nav-links { max-height: 320px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--purple) 0%, #1f0030 100%); color: #fff; text-align: center; padding: 64px 20px 56px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 12px; letter-spacing: -0.5px; }
.hero .lead { font-size: 1.15rem; opacity: 0.95; margin: 0 0 8px; }
.hero .address { font-size: 1.05rem; opacity: 0.9; margin: 8px 0 28px; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; transition: transform 0.05s ease, background 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-gold:hover { background: #f0b943; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-light); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 1.8rem; color: var(--purple); margin: 0 0 6px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 640px; }
.band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Help callout */
.help { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.help img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.help .phone { font-size: 1.5rem; font-weight: 800; color: var(--purple); margin: 0 0 8px; }
.help .phone a { color: var(--purple); text-decoration: none; }
@media (max-width: 720px) { .help { grid-template-columns: 1fr; } }

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.day-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.day-card h3 { margin: 0; background: var(--purple); color: #fff; padding: 12px 16px; font-size: 1.05rem; }
.day-card ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.day-card li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.day-card li:last-child { border-bottom: none; }
.day-card .time { color: var(--gold-dark); font-weight: 700; white-space: nowrap; min-width: 66px; }
.day-card .name { color: var(--ink); }
.day-card .name small { display: block; color: var(--muted); font-size: 0.8rem; }
.day-card .name a { color: var(--purple-light); }

/* Find us / map */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.find h3 { color: var(--purple); margin-top: 0; }
.find .directions-note { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

@media (max-width: 760px) { .find { grid-template-columns: 1fr; } }

/* Resource cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.res-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; display: flex; flex-direction: column; }
.res-card h3 { color: var(--purple); margin: 0 0 8px; }
.res-card p { color: var(--muted); flex: 1; }

/* Prayers */
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.prayer { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.prayer h3 { color: var(--purple); margin: 0 0 10px; }
.prayer p { margin: 0 0 8px; }
.prayer .ref { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.prayer strong.label { display: block; color: var(--purple-light); margin-top: 12px; }

/* Events */
.event { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.event .event-body { padding: 26px 28px; }
.event h2 { color: var(--purple); margin: 0 0 4px; }
.event .when { color: var(--gold-dark); font-weight: 700; margin: 0 0 4px; }
.event .where { color: var(--muted); margin: 0 0 12px; }

/* Prose (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { color: var(--purple); font-size: 1.25rem; margin-top: 32px; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 18px 0; padding: 8px 18px; color: var(--purple); font-style: italic; background: #fff; }
.prose ul { padding-left: 20px; }

/* Footer */
.site-footer { background: var(--purple); color: #eadff0; padding: 40px 0 24px; text-align: center; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-links { margin: 0 0 14px; }
.site-footer .foot-links a { margin: 0 10px; }
.site-footer .foot-name { font-weight: 700; color: #fff; }
.site-footer .copyright { opacity: 0.7; font-size: 0.85rem; margin-top: 14px; }

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* Home hero background image (self-hosted). Drop your photo at images/hero-sunrise.jpg */
.hero--home {
  background-color: #1f0030; /* fallback if image missing */
  background-image:
    linear-gradient(135deg, rgba(31,0,48,0.78) 0%, rgba(56,0,78,0.55) 100%),
    url("../images/hero-sunrise.jpg");
  background-size: cover;
  background-position: center;
  padding: 96px 20px 84px;
}
