/* ============================================================
   MODULE: Base Styles — Reset, Typography, Utilities
   Greater Tshwane Area — Church Website
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; transition: all var(--duration) var(--ease); }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ── Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-y) 0; }

/* ── Section Labels / Typography Utilities ── */
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--soft-gold);
  margin-bottom: 12px;
  font-weight: 600;
  display: block;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--deep-brown);
}
.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--duration) var(--ease);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary   { background: var(--soft-gold); color: var(--deep-brown); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,83,0.35); }
.btn-dark      { background: var(--deep-brown); color: white; }
.btn-dark:hover { background: var(--warm-brown); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; color: var(--deep-brown); border: 2px solid var(--deep-brown); }
.btn-outline:hover { background: var(--deep-brown); color: white; }
.btn-light     { background: white; color: var(--deep-brown); }
.btn-light:hover { background: var(--gold-light); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.btn-full { width: 100%; }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ── Loading Spinner ── */
.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status Messages ── */
.status-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 12px;
  align-items: center;
  gap: 10px;
}
.status-msg.show { display: flex; }
.status-msg.success { background: #EAFAF1; color: #1E7846; border: 1px solid #A9DFBF; }
.status-msg.error   { background: #FDEDEC; color: #922B21; border: 1px solid #F1948A; }

/* ── Responsive Helpers ── */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .show-mobile-only { display: none !important; }
}
