/* ===== Is Your Soul Saved - Custom Styles ===== */

/* --- Base & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #1a1f36;
  --navy-light: #2d3250;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a88a32;
  --cream: #faf6ee;
  --cream-dark: #f0e8d8;
  --crimson: #8b1a1a;
  --crimson-light: #a52a2a;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--navy);
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--crimson); }

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--navy);
  color: var(--cream);
}
.section-dark h2,
.section-dark h3 { color: var(--gold); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header .divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 31, 54, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,31,54,0.82) 0%, rgba(26,31,54,0.55) 50%, rgba(139,26,26,0.35) 100%),
    url('../images/tstone.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 6s infinite;
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
}

.hero-verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(250, 246, 238, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250, 246, 238, 0.4);
}
.btn-outline:hover {
  border-color: var(--cream);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--navy);
  color: var(--cream);
}
.btn-secondary:hover {
  background: var(--navy-light);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-download {
  background: var(--crimson);
  color: var(--cream);
}
.btn-download:hover {
  background: var(--crimson-light);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(250, 246, 238, 0.5);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Content Cards --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.content-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

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

.content-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.content-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.content-card p {
  color: var(--gray-500);
  line-height: 1.8;
}

.scripture-ref {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--crimson);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* --- Featured Tracts Grid --- */
.tracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tract-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

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

.tract-preview {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 2rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tract-preview .pdf-icon {
  color: var(--gold);
  opacity: 0.8;
}

.tract-info {
  padding: 1.25rem;
}

.tract-info h4 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.tract-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.tract-info .btn {
  width: 100%;
  justify-content: center;
}

/* --- Downloads Page --- */
.download-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.category-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.category-btn.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.download-section {
  margin-bottom: 3rem;
}

.download-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.download-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.download-item .file-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--crimson);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
}

.download-item .file-info {
  flex: 1;
  min-width: 0;
}

.download-item .file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-item .file-size {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.download-item .download-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.download-item .download-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* --- Prayer / CTA Banner --- */
.prayer-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.prayer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.prayer-banner h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.prayer-banner p {
  color: rgba(250, 246, 238, 0.85);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  line-height: 1.8;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.contact-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(250, 246, 238, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: rgba(250, 246, 238, 0.6);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(250, 246, 238, 0.5);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  color: var(--cream);
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(250, 246, 238, 0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Prose Content --- */
.prose {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--gray-700);
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 0 8px 8px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--navy);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-verse { font-size: 1rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
  .mobile-toggle { display: block; }

  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 2rem; }

  .content-grid { grid-template-columns: 1fr; }
  .tracts-grid { grid-template-columns: 1fr; }
  .download-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .page-header { padding: 6rem 0 3rem; }
  .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }
}
