/* ============================================================
   Hear And Do Ministries — stylesheet
   Palette + type per Brand Guide (07_Brand_Guide)
   ============================================================ */

:root {
  --navy-primary: #00183D;
  --navy-secondary: #06265C;
  --blue-accent: #0A3A7A;
  --gold-primary: #D9A514;
  --gold-highlight: #F4C542;
  --ivory: #F6F1E5;
  --white: #FFFFFF;
  --ink: #16213A;
  --max-width: 1180px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 24, 61, 0.12);
  --shadow-deep: 0 18px 45px rgba(0, 24, 61, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', 'DejaVu Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Cinzel', 'DejaVu Sans', Georgia, serif;
  color: var(--navy-primary);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

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

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

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy-primary); color: var(--ivory); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(246, 241, 229, 0.88); }
.section--navy .card,
.section--navy .item-card,
.section--navy .belief-block {
  color: var(--ink);
}
.section--navy .card h3, .section--navy .card h4,
.section--navy .item-card h3, .section--navy .item-card h4,
.section--navy .belief-block h3 {
  color: var(--navy-primary);
}
.section--navy .card p,
.section--navy .item-card p,
.section--navy .belief-block p {
  color: var(--ink);
}
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold-primary);
  color: var(--navy-primary);
}
.btn--gold:hover { background: var(--gold-highlight); color: var(--navy-primary); box-shadow: var(--shadow-soft); }

.btn--outline {
  background: transparent;
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn--outline:hover { background: rgba(246, 241, 229, 0.12); color: var(--white); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--navy-primary);
  color: var(--navy-primary);
}
.btn--outline-navy:hover { background: var(--navy-primary); color: var(--ivory); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-primary);
  border-bottom: 1px solid rgba(217, 165, 20, 0.35);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img { width: 48px; height: 48px; }
.brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-highlight);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-highlight);
  border-bottom-color: var(--gold-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  color: var(--gold-highlight);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-secondary);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid rgba(217,165,20,0.35);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-primary) 0%, var(--navy-secondary) 55%, var(--blue-accent) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(244,197,66,0.12), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(244,197,66,0.10), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.hero-logo img { width: 190px; height: 190px; }
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  color: var(--gold-highlight);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.hero-verse {
  font-style: italic;
  max-width: 540px;
  color: rgba(246,241,229,0.85);
  border-left: 3px solid var(--gold-primary);
  padding-left: 16px;
  margin: 22px 0 28px;
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 56px 20px 64px; }
  .hero-logo { justify-self: center; }
  .hero-verse { margin-left: auto; margin-right: auto; text-align: left; }
  .hero h1 { font-size: 2.1rem; }
}

/* page header for inner pages */
.page-hero {
  background: linear-gradient(160deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(246,241,229,0.85); max-width: 640px; margin: 0 auto; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold-primary);
}
.card h3 { font-size: 1.15rem; }
.card .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: inline-block;
}

.card--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* symbol strip */
.symbols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.symbols .symbol-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(244,197,66,0.12);
  border: 1px solid var(--gold-primary);
  font-size: 1.5rem;
  color: var(--gold-highlight);
}
@media (max-width: 760px) {
  .symbols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Content list items (sermons/blog) ---------- */
.item-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.item-card__media {
  background: var(--navy-secondary);
  color: var(--gold-highlight);
  padding: 36px 20px;
  text-align: center;
  font-family: 'Cinzel', serif;
}
.item-card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.item-card__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.item-card__body p { flex: 1; }
.item-card__body .btn { align-self: flex-start; }

/* ---------- Statement of Faith blocks ---------- */
.belief-block {
  background: var(--white);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.belief-block h3 { margin-bottom: 10px; }

/* ---------- Accordion (Q&A) ---------- */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  overflow: hidden;
}
.accordion-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 26px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--navy-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-item__q .plus { color: var(--gold-primary); font-size: 1.3rem; transition: transform 0.2s ease; }
.accordion-item.is-open .plus { transform: rotate(45deg); }
.accordion-item__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--ink);
}
.accordion-item.is-open .accordion-item__a {
  padding: 0 26px 22px;
}

/* ---------- Timetable (calendar page) ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.schedule-table th, .schedule-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #ece4d0;
}
.schedule-table th {
  background: var(--navy-primary);
  color: var(--gold-highlight);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.schedule-table tr:last-child td { border-bottom: none; }

.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px 26px;
  margin-bottom: 18px;
  align-items: center;
}
.event-date {
  flex: 0 0 auto;
  background: var(--navy-primary);
  color: var(--gold-highlight);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  font-family: 'Cinzel', serif;
  min-width: 72px;
}
.event-date .num { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date .mon { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--navy-primary);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cfb4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(10,58,122,0.15);
}

.contact-info-card {
  background: var(--navy-primary);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--gold-highlight); }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { margin-bottom: 14px; }

.form-note {
  font-size: 0.85rem;
  color: var(--blue-accent);
  background: rgba(10,58,122,0.08);
  border: 1px dashed var(--blue-accent);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 10px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--gold-primary);
  color: var(--navy-primary);
  text-align: center;
  padding: 48px 24px;
}
.cta-strip h2 { color: var(--navy-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-primary);
  color: rgba(246,241,229,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand h4 { color: var(--white); margin-bottom: 4px; }
.footer-col h4 {
  color: var(--gold-highlight);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(246,241,229,0.8); }
.footer-col a:hover { color: var(--gold-highlight); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,229,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--blue-accent); }
