/* ============================================
   Divine Love Ministry — base.css
   Design tokens, resets, typography, utilities
   ============================================ */

:root {
  /* Brand colors — drawn from the logo */
  --violet-900: #3d1d61;
  --violet-800: #4a2478;
  --violet-700: #5b2d8e;   /* primary */
  --violet-600: #6d3aa6;
  --violet-100: #ede6f6;
  --violet-50:  #f7f3fb;

  --blue-600: #1e8fc4;
  --blue-500: #2ba6de;     /* logo chevron blue */
  --blue-100: #e3f3fb;

  --charcoal: #2b2733;
  --ink-soft: #555061;
  --gray-100: #f6f4f9;
  --gray-200: #eceaf1;
  --gray-300: #d9d5e2;
  --white: #ffffff;

  --gold-500: #d9a441;     /* small warm accent for donate emphasis */

  /* Typography */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.625rem;
  --fs-hero: clamp(2.25rem, 5.5vw, 3.75rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6rem;

  /* Radii + shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(43, 39, 51, 0.08);
  --shadow-md: 0 6px 24px rgba(61, 29, 97, 0.10);
  --shadow-lg: 0 14px 40px rgba(61, 29, 97, 0.14);

  --container: 1140px;
  --nav-height: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 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-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--violet-700);
  text-decoration: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--charcoal);
  font-weight: 600;
}

h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-2xl)); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

.lead {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: 62ch;
}

.text-muted { color: var(--ink-soft); }

/* ---------- Layout utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-6);
}

.section--tint {
  background: var(--gray-100);
}

.section--violet {
  background: var(--violet-800);
  color: var(--white);
}

.section--violet h2,
.section--violet h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
}

.section--violet .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

/* Eyebrow with the chevron motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin-bottom: var(--sp-2);
}

.section--violet .eyebrow {
  color: var(--blue-500);
}

.eyebrow svg {
  width: 22px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--violet-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--violet-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid var(--violet-700);
  color: var(--violet-700);
  background: transparent;
}

.btn--outline:hover {
  background: var(--violet-50);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--violet-700);
}

.btn--light:hover {
  background: var(--violet-100);
  transform: translateY(-2px);
}

.btn--ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Image placeholders ---------- */
/* Replace each .img-slot with your real <img> — keep the alt text meaningful */
.img-slot {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--violet-100) 0%, var(--blue-100) 100%);
  border: 1.5px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--violet-700);
}

.img-slot::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
}

.img-slot svg {
  width: 42px;
  height: 42px;
  opacity: 0.55;
}

.img-slot--16x9 { aspect-ratio: 16 / 9; }
.img-slot--4x3  { aspect-ratio: 4 / 3; }
.img-slot--3x4  { aspect-ratio: 3 / 4; }
.img-slot--1x1  { aspect-ratio: 1 / 1; }

/* When you add real images inside a slot, they fill it */
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card { transition: none; }
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 200;
  background: var(--violet-700);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Slots that already contain an image drop the placeholder styling */
.img-slot:has(img) {
  border-style: solid;
  border-color: transparent;
}
.img-slot:has(img)::after { content: none; }
.img-slot:has(img) > svg { display: none; }
