/* ==========================================================================
   JAMES TAMANG MINISTRIES - CORE STYLESHEET
   "We preach and teach God's word."
   Architecture: Clean, Modular Vanilla CSS3 (No Framework Dependencies)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&display=swap');

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --navy: #082F5B;
  --dark-navy: #051D38;
  --deep-navy: #031427;
  --gold: #C9952E;
  --light-gold: #E1B454;
  --pale-gold: #F6EBD0;
  --gold-tint: rgba(201, 149, 46, 0.12);
  --white: #FFFFFF;
  --off-white: #F9F8F5;
  --warm-gray: #F2EFE9;
  --border-color: #E6E2D8;
  --border-light: rgba(8, 47, 91, 0.08);

  /* Typography Colors */
  --text-main: #242E38;
  --text-muted: #5C6773;
  --text-light: #8A96A3;
  --text-white: #FFFFFF;

  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #E1B454 0%, #C9952E 50%, #A8771A 100%);
  --gold-gradient-hover: linear-gradient(135deg, #E9BF64 0%, #D4A33B 50%, #B88523 100%);
  --navy-gradient: linear-gradient(145deg, #082F5B 0%, #051D38 100%);
  --navy-deep-gradient: linear-gradient(180deg, #082F5B 0%, #031427 100%);
  --cream-gradient: linear-gradient(180deg, #FFFFFF 0%, #F9F8F5 100%);

  /* Typography Families */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(5, 29, 56, 0.05);
  --shadow-md: 0 8px 24px rgba(5, 29, 56, 0.08);
  --shadow-lg: 0 16px 36px rgba(5, 29, 56, 0.12);
  --shadow-gold: 0 8px 25px rgba(201, 149, 46, 0.28);
  --shadow-modal: 0 25px 60px rgba(3, 20, 39, 0.45);

  /* Layout & Transitions */
  --max-width: 1260px;
  --container-padding: 24px;
  --header-height: 86px;
  --header-scrolled-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--off-white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* Section Eyebrow / Subtitle */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-eyebrow.no-flank::before,
.section-eyebrow.no-flank::after {
  display: none;
}

/* Decorative Gold Divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.2rem auto 2rem auto;
}

.gold-divider.align-left {
  justify-content: flex-start;
  margin: 1rem 0 1.8rem 0;
}

.gold-divider .line {
  width: 50px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}

.gold-divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   5. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.section-padding-sm {
  padding-top: clamp(40px, 5vw, 60px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin: 0 0 2.5rem 0;
}

.section-header .section-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & CTA CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201, 149, 46, 0.3);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 149, 46, 0.45);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(8, 47, 91, 0.2);
}

.btn-navy:hover {
  background: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 47, 91, 0.35);
  color: var(--white);
}

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

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. STICKY HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  padding-bottom: 49px;
    padding-top: 47px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #051D38;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(201, 149, 46, 0.25);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: var(--header-scrolled-height);
  background-color: rgba(5, 29, 56, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(201, 149, 46, 0.45);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo-img {
  height: 127px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.site-header.scrolled .site-logo-img {
  height: 115px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: var(--gold);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: var(--gold);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--dark-navy);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 90px 30px 40px 30px;
  transition: right var(--transition-slow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 29, 56, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold);
  padding-left: 6px;
}

.mobile-drawer-contact {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(5, 29, 56, 0.94) 0%, rgba(8, 47, 91, 0.88) 50%, rgba(3, 16, 32, 0.96) 100%), url('../images/jamesssss.jpg') center/cover no-repeat;
  color: var(--white);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}

/* Ambient Background Motifs */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(201, 149, 46, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(8, 47, 91, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gold);
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.hero-headline {
  color: var(--white);
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.hero-headline span.gold-highlight {
  color: var(--light-gold);
  font-style: italic;
  display: block;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-trust-item svg {
  color: var(--light-gold);
  flex-shrink: 0;
}

/* Hero Portrait Frame */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-halo-circle {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 149, 46, 0.35);
  top: -5%;
  left: -5%;
  pointer-events: none;
  animation: pulseHalo 6s ease-in-out infinite;
}

@keyframes pulseHalo {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.03); opacity: 0.8; }
}

.hero-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(201, 149, 46, 0.2);
  border: 2px solid rgba(201, 149, 46, 0.4);
  background: var(--navy);
  max-width: 440px;
  width: 100%;
}

.hero-portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-portrait-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(5, 29, 56, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 149, 46, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.hero-badge-text h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.hero-badge-text p {
  font-size: 0.78rem;
  color: var(--light-gold);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. INTRODUCTION / WELCOME SECTION
   -------------------------------------------------------------------------- */
.intro-section {
  background: var(--white);
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 70px);
}

.intro-image-block {
  position: relative;
}

.intro-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.intro-img-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-quote-card {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.intro-quote-card p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}

.intro-quote-card span {
  font-size: 0.75rem;
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
  color: var(--light-gold);
  text-transform: uppercase;
}

.intro-content-block {
  padding-left: 10px;
}

.intro-title {
  margin-bottom: 1.2rem;
}

.intro-lead {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.intro-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.8rem 0 2.2rem 0;
}

.intro-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.intro-pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.intro-pillar-text h6 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.intro-pillar-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. MINISTRY PURPOSE / MISSION SECTION (4 CARDS)
   -------------------------------------------------------------------------- */
.mission-section {
  background-color: var(--off-white);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mission-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 149, 46, 0.4);
}

.mission-card:hover::before {
  background: var(--gold-gradient);
}

.mission-icon-box {
  width: 60px;
  height: 60px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--navy);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.mission-card:hover .mission-icon-box {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: scale(1.05);
}

.mission-card h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.mission-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.mission-scripture-tag {
  font-size: 0.75rem;
  font-family: var(--font-accent);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   11. FEATURED BOOK / SALES SECTION
   -------------------------------------------------------------------------- */
.featured-book-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EA 100%);
  position: relative;
  overflow: hidden;
}

.book-showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 149, 46, 0.3);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(30px, 5vw, 55px);
  align-items: center;
  position: relative;
}

.book-showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at top right, rgba(201, 149, 46, 0.15), transparent 70%);
  pointer-events: none;
  border-top-right-radius: var(--radius-lg);
}

.book-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-3d {
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  box-shadow: -15px 20px 40px rgba(5, 29, 56, 0.25), 0 0 20px rgba(201, 149, 46, 0.2);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.book-cover-3d:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.book-badge-ribbon {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold-gradient);
  color: var(--white);
  padding: 6px 14px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.book-info-content {
  display: flex;
  flex-direction: column;
}

.book-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.book-tag {
  background: var(--gold-tint);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #F59E0B;
  font-size: 0.85rem;
  font-weight: 600;
}

.book-rating span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.book-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.book-author {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.book-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.book-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.8rem;
}

.book-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.book-spec-item svg {
  color: var(--gold);
}

.book-purchase-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.book-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-current {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}

.price-original {
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  height: 46px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--warm-gray);
}

.qty-input {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

/* Book Action CTAs */
.book-cta-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.trust-badges-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge-item svg {
  color: #10B981;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. QR PAYMENT MODAL & ORDER WORKFLOW
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 20, 39, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-normal);
  border: 1px solid rgba(201, 149, 46, 0.3);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.2rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.modal-header {
  padding: 28px 32px 20px 32px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.modal-header h3 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-body {
  padding: 28px 32px;
}

/* Step Progression Indicator */
.modal-steps-nav {
  display: flex;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.step-tab {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.step-tab.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Order Summary Box */
.modal-order-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.summary-book-thumb {
  width: 55px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.summary-details {
  flex-grow: 1;
}

.summary-details h5 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.summary-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.summary-total {
  text-align: right;
}

.summary-total span {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  display: block;
}

.summary-total strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
}

/* Step 1: QR Payment Box */
.qr-payment-view {
  text-align: center;
}

.qr-code-frame {
  display: inline-block;
  padding: 14px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(201, 149, 46, 0.15);
  margin: 10px auto 20px auto;
}

.qr-code-frame img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
}

.qr-instructions {
  max-width: 480px;
  margin: 0 auto 24px auto;
}

.qr-instructions h4 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.qr-instructions p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.payment-apps-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.app-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
}

/* Step 2: Customer Order Form */
.order-form-view {
  display: none;
}

.order-form-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 149, 46, 0.15);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* File Upload Screenshot Zone */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  background: var(--off-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--gold);
  background: rgba(201, 149, 46, 0.05);
}

.upload-dropzone svg {
  margin: 0 auto 6px auto;
  color: var(--gold);
}

.upload-dropzone p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.upload-preview-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
}

/* Alternative WhatsApp Direct Confirmation */
.whatsapp-alt-block {
  margin-top: 20px;
  padding: 14px 18px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.whatsapp-alt-text p {
  font-size: 0.85rem;
  color: #166534;
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. SERMONS / MESSAGES SECTION
   -------------------------------------------------------------------------- */
.sermons-section {
  background: var(--white);
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8, 47, 91, 0.2);
}

.sermon-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}

.sermon-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sermon-card:hover .sermon-thumbnail {
  transform: scale(1.05);
}

.sermon-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 29, 56, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.sermon-card:hover .sermon-play-overlay {
  background: rgba(5, 29, 56, 0.55);
}

.play-circle {
  width: 52px;
  height: 52px;
  background: var(--white);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.sermon-card:hover .play-circle {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.sermon-badge-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(5, 29, 56, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.sermon-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sermon-scripture {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sermon-content h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.sermon-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.sermon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.sermon-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. TESTIMONIAL / IMPACT SECTION
   -------------------------------------------------------------------------- */
.testimonials-section {
  background: var(--off-white);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 149, 46, 0.35);
}

.testimonial-quote-icon {
  color: var(--light-gold);
  opacity: 0.4;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--light-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   15. SCRIPTURE / INSPIRATIONAL QUOTE BANNER
   -------------------------------------------------------------------------- */
.scripture-banner {
  background: var(--navy-deep-gradient);
  color: var(--white);
  position: relative;
  text-align: center;
  padding: clamp(65px, 8vw, 100px) 20px;
  overflow: hidden;
}

.scripture-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(201, 149, 46, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.scripture-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.scripture-icon {
  margin: 0 auto 1.5rem auto;
  color: var(--light-gold);
}

.scripture-text {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.scripture-ref {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-gold);
  border-top: 1.5px solid rgba(201, 149, 46, 0.5);
  border-bottom: 1.5px solid rgba(201, 149, 46, 0.5);
  padding: 6px 20px;
}

/* --------------------------------------------------------------------------
   16. NEWSLETTER / STAY CONNECTED CTA
   -------------------------------------------------------------------------- */
.newsletter-section {
  background: var(--white);
}

.newsletter-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3e74 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 65px) clamp(24px, 5vw, 60px);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.newsletter-content h3 {
  color: var(--white);
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 0.95rem;
}

.newsletter-input::placeholder {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   17. INNER PAGE HERO BANNERS (About, Books, Sermons, Contact)
   -------------------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, rgba(5, 29, 56, 0.92) 0%, rgba(8, 47, 91, 0.88) 100%), url('../images/jamesssss.jpg') center/cover no-repeat;
  color: var(--white);
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.page-banner-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin: 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: var(--font-accent);
  color: var(--light-gold);
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
  position: relative;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.85fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  margin-bottom: 60px;
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--light-gold);
  font-size: 1.05rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.4rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--light-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

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

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL UTILITY CLASSES
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}
