/* ============================================================
   Eccleshall CFRs – stylesheet
   ============================================================ */

:root {
  --green:      #2D6A4F;
  --green-2:    #40916C;
  --green-pale: #D8F3DC;
  --red:        #C62828;
  --text:       #1A1A1A;
  --muted:      #6B7280;
  --border:     #E0E0E0;
  --bg:         #FFFFFF;
  --bg-alt:     #F5F7F5;
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --radius:     8px;
  --nav-h:      72px;
  --max-w:      1100px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--green-2); }
a:hover { color: var(--green); }
ul   { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--muted); }

/* ---- Layout ---- */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section      { padding: 3.5rem 0; }
.section-alt  { background: var(--bg-alt); }
.section-hd   { text-align: center; margin-bottom: 2.5rem; }
.section-hd p { margin-top: 0.5rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.grid   { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.35rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--green);  color: #fff; border-color: var(--green); }
.btn-primary:hover  { background: #1B4332; border-color: #1B4332; color: #fff; }
.btn-outline  { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover  { background: var(--green); color: #fff; }
.btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-w:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.9); }
.btn-red      { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #9B1C1C; border-color: #9B1C1C; color: #fff; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* ---- Navigation ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }
.nav-logo-img { height: 58px; width: auto; display: block; }
.site-footer .nav-logo-img { height: 36px; }
@media (max-width: 768px) { .nav-logo-img { height: 44px; } }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.btn-red, .nav-links a.btn-red:hover { color: #fff; }
.nav-links .btn { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--muted); transition: all 0.2s; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(145deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff; padding: 4.5rem 0 5.5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 50px; background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 { color: #fff; max-width: 650px; margin-bottom: 1rem; }
.hero p   { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 540px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Page inner hero (about, volunteer, etc.) */
.page-hero { background: var(--green); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card h3   { margin-bottom: 0.4rem; color: var(--text); }

/* News cards */
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s;
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card-img { width: 100%; height: 180px; object-fit: cover; }
.news-card-placeholder {
  height: 180px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.news-date { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.news-card h3 { font-size: 1.05rem; color: var(--text); line-height: 1.3; }
.news-card p  { font-size: 0.9rem; }
.read-more { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--green-2); text-decoration: none; }
.read-more:hover { color: var(--green); text-decoration: underline; }

/* ---- Facebook feed ---- */
.fb-section { padding: 3.5rem 0; background: var(--bg-alt); }
.fb-wrapper {
  max-width: 500px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}

/* ---- Donate strip ---- */
.donate-strip { background: var(--red); color: #fff; padding: 3rem 0; text-align: center; }
.donate-strip h2 { color: #fff; margin-bottom: 0.75rem; }
.donate-strip p  { color: rgba(255,255,255,0.88); max-width: 520px; margin: 0 auto 1.75rem; font-size: 1.025rem; }
.donate-strip .btn { background: #fff; color: var(--red); border-color: #fff; font-size: 1rem; padding: 0.8rem 1.75rem; }
.donate-strip .btn:hover { background: rgba(255,255,255,0.9); color: var(--red); text-decoration: none; }

/* ---- Volunteer steps ---- */
.steps { display: flex; flex-direction: column; gap: 2rem; }
.step  { display: flex; gap: 1.25rem; }
.step-num {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: var(--green-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.step-body h3 { margin-bottom: 0.3rem; }
.step-body p  { font-size: 0.95rem; }

/* ---- Contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; color: var(--text);
  background: var(--bg); transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-success { background: var(--green-pale); border: 1px solid var(--green-2); border-radius: var(--radius); padding: 1.25rem; color: var(--green); font-weight: 600; }
.form-error   { background: #fdecea; border: 1px solid var(--red); border-radius: var(--radius); padding: 1.25rem; color: var(--red); font-weight: 600; }

/* ---- Info box (contact sidebar) ---- */
.info-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.info-box h3 { margin-bottom: 1rem; }
.info-box ul { display: flex; flex-direction: column; gap: 0.75rem; }
.info-box li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.info-box li span:first-child { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ---- Emergency steps (about page) ---- */
.esteps { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.25rem; }
.estep  { display: flex; gap: 1rem; align-items: flex-start; }
.estep-num {
  min-width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.estep h3 { margin-bottom: 0.2rem; font-size: 1rem; }
.estep p  { font-size: 0.9rem; }

/* ---- Loading / empty states ---- */
.loading-state, .empty-state { text-align: center; padding: 2.5rem; color: var(--muted); }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--green-2); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 0.75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Prose (single update view) ---- */
.prose { max-width: 720px; }
.prose h1, .prose h2, .prose h3 { color: var(--text); margin-top: 1.75rem; margin-bottom: 0.6rem; }
.prose h1 { margin-top: 0; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.25rem; color: var(--muted); }
.prose a  { color: var(--green-2); }
.prose blockquote { border-left: 4px solid var(--green-2); padding: 0.5rem 1rem; background: var(--green-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; }
.prose img { border-radius: var(--radius); margin: 1.25rem 0; }

/* ---- Footer ---- */
.site-footer { background: #111827; color: #9CA3AF; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.75rem; margin-bottom: 2rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 0.6rem; }
.footer-name { color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; display: inline-block; margin-bottom: 0.75rem; }
.footer-name:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.85rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { color: #9CA3AF; font-size: 0.875rem; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.85rem; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.07); color: #9CA3AF; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; text-decoration: none; transition: background 0.15s, color 0.15s; }
.social-btn:hover { background: var(--green-2); color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
.charity-no { font-size: 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; padding: 0.25rem 0.75rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a     { padding: 0.8rem 1.25rem; border-radius: 0; }
  .nav-links .btn  { margin: 0.5rem 1.25rem; justify-content: center; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 3rem 0 4rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
