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

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #2c3e50;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.logo-placeholder {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e74c3c;
}

.nav-cta {
  margin-left: 30px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-bar {
  display: block;
  width: 25px;
  height: 3px;
  background: #2c3e50;
  margin: 4px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #2c5f8a;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1e4a6e;
}

.btn-secondary {
  background-color: transparent;
  color: #2c3e50;
  border-color: #2c3e50;
}

.btn-secondary:hover {
  background-color: #2c3e50;
  color: #fff;
}

.btn-accent {
  background-color: #f39c12;
  color: #fff;
}

.btn-accent:hover {
  background-color: #e67e22;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-text {
  background: none;
  border: none;
  color: #e74c3c;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.btn-text:hover {
  color: #c0392b;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background: #FFF9F0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
}

.hero-image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

/* Experience Grid */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.experience-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.experience-card:hover {
  transform: translateY(-5px);
}

.experience-icon {
  margin-bottom: 20px;
}

.icon-image {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.experience-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #e74c3c;
}

.experience-text {
  color: #666;
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
}

.featured-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: #f8f9fa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.featured-artwork {
  flex: 1;
  min-width: 300px;
}

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

.featured-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.episode-label {
  font-weight: 700;
  color: #e74c3c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.featured-title,
.story-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.featured-description {
  color: #555;
  margin-bottom: 20px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Stories Grid */
.stories-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.story-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-artwork {
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-content {
  padding: 20px;
}

.story-title {
  font-size: 1.5rem;
}

.story-description {
  color: #666;
  margin-bottom: 15px;
}

.story-card-coming {
  opacity: 0.7;
}

/* Parents Section */
.parents-section {
  padding: 80px 0;
}

.parents-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.parents-content {
  flex: 1;
}

.parents-visual {
  flex: 1;
}

.parents-image {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Scripture Section */
.scripture-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  text-align: center;
}

.scripture-section .section-title {
  color: #fff;
}

.scripture-section .section-text {
  color: #ddd;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.newsletter-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #e74c3c;
}

.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;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 40px 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  color: #ddd;
  font-size: 0.9rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e74c3c;
}

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

.footer-bottom {
  background: #1a252f;
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    gap: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-content {
    padding: 20px;
  }

  .parents-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav-list {
    align-items: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* Change ONLY the background color of the hero "Explore the Stories" button to #0180E8 */
.hero-explore-btn {
  background-color: #0180E8;
}

/* Keep the button text white and preserve existing size, shape, rounded corners, typography, positioning, padding, and spacing */
.hero-explore-btn {
  color: #fff;
}

/* Ensure hover state also uses the new blue */
.hero-explore-btn:hover {
  background-color: #0180E8;
}

/* Hero headline color changes */
.hero-highlight-blue {
  color: #0180E8;
}

.hero-highlight-gold {
  color: #f39c12;
}

/* Change ONLY the final period after "Remember" to #FFC400 */
.hero-highlight-gold {
  color: #FFC400;
}

/* Change ONLY the background color of the top navigation "Explore the Stories" button to #0180E8 */
.nav-cta {
  background-color: #0180E8;
}

/* Change ONLY the background color of the lower call-to-action "Explore the Stories" button to #0180E8 */
.scripture-section .btn-primary {
  background-color: #0180E8;
}

/* Replace the READ image with the newly uploaded image */
.experience-card:nth-child(3) .icon-image {
  content: url('images/read.png');
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* Replace the REMEMBER image with the newly uploaded image */
.experience-card:nth-child(4) .icon-image {
  content: url('images/remember.png');
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* Replace the featured image in the Begin the Journey card with the newly uploaded Creation image */
.featured-image {
  content: url('images/episode-1.png');
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* Begin the Journey - Episode 1 button styles */
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

/* Remove the "Preview the Story" button */
.featured-actions .btn-text {
  display: none;
}

/* Read the Story FREE - primary blue */
.featured-actions .btn-primary {
  background-color: #0180E8;
  border-color: #0180E8;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Watch the Story - secondary outline */
.featured-actions .btn-secondary {
  background-color: #ffffff;
  border: 2px solid #0180E8;
  color: #0180E8;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Ensure consistent height and vertical alignment */
.featured-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
}

/* Responsive behavior: wrap on smaller screens */
@media (max-width: 768px) {
  .featured-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .featured-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-actions .btn {
    width: 100%;
  }
}

/* NEW: Force the three buttons onto one horizontal row on desktop */
@media (min-width: 769px) {
  .featured-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .featured-actions .btn {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Replace the Episode 1 image in the Explore the Stories section with the newly uploaded Creation image */
.story-card:first-child .story-image {
  content: url('images/episode-1.png');
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 200px;
}

/* Change ONLY the background color of the "Keep Me Updated" button to the bright KJV4Kids primary blue (#0180E8) */
.newsletter-form .btn-primary {
  background-color: #0180E8;
}

/* Preserve the white text and all other properties */
.newsletter-form .btn-primary {
  color: #fff;
}

/* Ensure hover state also uses the same blue */
.newsletter-form .btn-primary:hover {
  background-color: #0180E8;
}

/* Increase footer logo size by 15% */
.footer-logo {
  height: 57.5px; /* 50px * 1.15 */
  width: auto;
}

/* Privacy Policy Page Styles */
.privacy-policy-section {
  padding: 60px 0;
  background-color: #fff;
}

.privacy-policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-policy-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  text-align: center;
}

.privacy-policy-effective-date {
  text-align: center;
  font-weight: 600;
  color: #555;
  margin-bottom: 30px;
}

.privacy-policy-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.privacy-policy-content p {
  margin-bottom: 15px;
}

.privacy-policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-policy-list li {
  margin-bottom: 30px;
}

.privacy-policy-list h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.privacy-policy-list ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.privacy-policy-list ul li {
  margin-bottom: 5px;
}

.privacy-policy-content address {
  font-style: normal;
  line-height: 1.6;
  margin-top: 10px;
}

.privacy-policy-content address a {
  color: #0180E8;
  text-decoration: underline;
}

.privacy-policy-content address a:hover {
  color: #0056b3;
}

/* Responsive adjustments for privacy page */
@media (max-width: 768px) {
  .privacy-policy-title {
    font-size: 2rem;
  }

  .privacy-policy-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .privacy-policy-title {
    font-size: 1.8rem;
  }

  .privacy-policy-list h2 {
    font-size: 1.3rem;
  }
}

/* === KJV4Kids Recovery Package: local asset safeguards === */
.logo-placeholder,
.footer-logo { object-fit: contain; }
.hero-image { width: 100%; height: auto; object-fit: contain; }
.experience-card:nth-child(1) .icon-image { content: url('images/see.png'); }
.experience-card:nth-child(2) .icon-image { content: url('images/hear.png'); }
.experience-card:nth-child(3) .icon-image { content: url('images/read.png'); }
.experience-card:nth-child(4) .icon-image { content: url('images/remember.png'); }
.featured-image { content: url('images/episode-1.png'); }
.story-card:first-child .story-image { content: url('images/episode-1.png'); }
.parents-image { content: url('images/family.jpg'); }

/* Keep final approved blue on principal calls to action. */
.nav-cta,
.hero-explore-btn,
.scripture-section .btn-primary,
.newsletter-form .btn-primary,
.featured-actions .btn-primary {
  background-color: #0180E8;
  border-color: #0180E8;
}

/* === VISUAL VERIFICATION CORRECTIONS — approved 2026-08-29 === */
/* 1) Keep desktop navigation labels on one line. */
@media (min-width: 769px) {
  .nav-link { white-space: nowrap; }
  .nav-list { gap: 24px; }
}

/* 2) All four KJV4Kids experience headings use official brand blue. */
.experience-title { color: #0180E8; }

/* 3) Keep all three Episode 1 actions on one horizontal row on desktop. */
@media (min-width: 769px) {
  .featured-content { min-width: 0; }
  .featured-actions {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 8px;
    align-items: center;
    justify-content: start;
    flex-wrap: nowrap;
  }
  .featured-actions .btn {
    width: auto;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* 4) Preserve the approved outlined Watch the Story treatment. */
.featured-actions .btn-secondary {
  background-color: #ffffff;
  border: 2px solid #0180E8;
  color: #0180E8;
}

/* 5) Newsletter controls: visible placeholders and unclipped button label. */
.form-group input {
  color: #2c3e50;
  background-color: #ffffff;
  line-height: 1.25;
}
.form-group input::placeholder {
  color: #6b7280;
  opacity: 1;
}
.newsletter-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  line-height: 1.2;
  padding: 12px 24px;
  overflow: visible;
  white-space: nowrap;
}
