/* Destiny Sunday Global — Raising Destinies */
:root {
  --navy: #0a2240;
  --navy-deep: #06162d;
  --gold: #d4af37;
  --gold-soft: #e8c766;
  --white: #ffffff;
  --cream: #f6f3ea;
  --muted: #c9d4e3;
  --font-serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 18px 45px rgba(6, 22, 45, 0.35);
  --shadow-sm: 0 8px 24px rgba(6, 22, 45, 0.22);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  background: radial-gradient(1200px 600px at 10% -10%, #143a66 0%, var(--navy-deep) 45%, #040a14 100%);
  min-height: 100vh;
}

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

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 22, 45, 0.96), rgba(6, 22, 45, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.site-nav a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-color: var(--gold);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(125deg, rgba(10, 34, 64, 0.95), rgba(6, 22, 45, 0.92)),
    radial-gradient(800px 400px at 90% 0%, rgba(212, 175, 55, 0.18), transparent 60%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin: 0 0 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b8922f);
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

.hero-cta:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.pastor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pastor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pastor-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.pastor-card span {
  color: var(--gold);
  font-size: 0.9rem;
}

.stats-strip {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 2.5rem 0 1rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.book-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
}

.cover {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--white);
  text-align: left;
}

.cover-fallback h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.cover-fallback span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.book-meta h3 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.book-meta .author {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.desc {
  font-size: 0.92rem;
  color: var(--muted);
  flex-grow: 1;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8922f);
  color: var(--navy-deep);
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  text-decoration: none;
}

.download-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-wrap {
  flex: 1 1 240px;
}

.search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-sans);
}

.search-wrap input::placeholder {
  color: rgba(201, 212, 227, 0.65);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.5rem;
}

.tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.88rem;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-sans);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(4, 10, 20, 0.85);
}

.site-footer strong {
  color: var(--gold);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.social-links a {
  color: var(--cream);
  font-size: 0.88rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.45);
  color: #b6f0c8;
}

.alert-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #ffc9cf;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .pastor-card {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: rgba(6, 22, 45, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}
