/* =========================================
   FaithDraft — Warm White + Gold Theme
   ========================================= */

/* ===== COLOR VARIABLES ===== */
:root {
  --bg: #f7f4ec;            /* soft warm white background */
  --surface: #ffffff;       /* card & container background */
  --muted: #6b7280;         /* soft gray text */
  --text: #1f2933;          /* dark slate text */

  --brand: #d4a84f;         /* warm gold */
  --brand-2: #b07e3b;       /* deeper amber gold */

  --ring: rgba(212, 168, 79, 0.35); /* focus ring */
}

/* Make padding/borders not blow up widths */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ===== GLOBAL / BODY ===== */
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: radial-gradient(
    1200px 800px at 10% 0%,
    #fdf8ec 0%,
    #f7f4ec 40%,
    #f1e9dc 100%
  );
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}
.section.alt {
  background: #fbf8f0;
}

h1, h2, h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(212, 168, 79, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), #f6e3b4);
  color: #3b2f14;
  font-weight: 800;
  box-shadow: 0 6px 24px rgba(212, 168, 79, 0.35);
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--brand-2);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #3a2b16;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.fade {
  color: var(--brand-2);
}

.hero-section p {
  margin: 0;
}

.hero-subtle {
  margin-top: 0.75rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
}

.hero-card-body {
  z-index: 2;
}

.mini-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-2);
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 79, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.card.highlight {
  outline: 1px solid rgba(212, 168, 79, 0.55);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  color: #3b2f14;
  background: linear-gradient(180deg, #f9e7b8, #d4a84f);
  box-shadow: 0 8px 24px rgba(212, 168, 79, 0.4);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(212, 168, 79, 0.4);
}

.btn-ghost:hover {
  border-color: rgba(212, 168, 79, 0.7);
}

/* ===== FORMS ===== */
label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 79, 0.25);
  background: #fffdf7;
  font-size: 0.95rem;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ring);
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding-top: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card p {
  color: var(--text);
}
.testimonial-name {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.coming-soon {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===== SERMON GENERATOR ===== */
.sermon-preview {
  margin-top: 2rem;
}

.sermon-body {
  white-space: normal;
  color: var(--text);
  background: #fffdf7;
  border: 1px solid rgba(212, 168, 79, 0.25);
  border-radius: 12px;
  padding: 1rem;
}

/* Autocomplete dropdown */
.autocomplete-list {
  background: #fffdf7;
  border: 1px solid rgba(212, 168, 79, 0.25);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
  position: absolute;
  width: 100%;
  z-index: 50;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

.autocomplete-item:hover {
  background: rgba(212, 168, 79, 0.15);
}

/* Presets */
.preset-row {
  margin-top: 1.25rem;
}

.preset-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-buttons .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: #fbf8f0;
}

.newsletter-card {
  padding: 1.75rem 1.5rem;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.newsletter-copy h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.newsletter-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 168, 79, 0.15);
  color: var(--brand-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.newsletter-perks {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.newsletter-perks li {
  margin-bottom: 0.4rem;
}

.newsletter-form-wrapper label {
  font-size: 0.9rem;
}

.newsletter-form-wrapper .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.newsletter-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.newsletter-footnote {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== ABOUT SECTION ===== */
.mission-banner {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
}

.verse-block {
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--muted);
}

.verse-ref {
  margin-top: 0.25rem;
  opacity: 0.85;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  margin-bottom: 0.75rem;
}
.values-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.creator-line {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE / MOBILE
   ========================================= */

/* Mobile nav & header adjustments */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #fffdf7;
    border-bottom: 1px solid #e2d4b6;
  }

  .header-inner {
    gap: 0.75rem;
  }

  /* Show hamburger, hide inline nav into dropdown */
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #fffdf7;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    border-bottom: 1px solid #e2d4b6;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
  }

  /* Animate hamburger into X */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Stack hero and grids on tablets & down */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-subtle {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    width: 100%;
  }

  .testimonials-grid,
  .pricing-grid,
  .faq-grid,
  .about-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
  }
}

/* Form & spacing tweaks on mobile */
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  #sermonForm {
    padding: 0;
  }

  #sermonForm label {
    font-size: 0.9rem;
  }

  #sermonForm input,
  #sermonForm select {
    width: 100%;
    font-size: 0.95rem;
  }

  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  .newsletter-form-wrapper input {
    width: 100%;
  }

  .newsletter-form-wrapper .btn {
    width: 100%;
  }

  .sermon-preview {
    margin-top: 1.5rem;
  }
}

/* Tiny phones */
@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.7rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .site-header .brand {
    font-size: 1.05rem;
  }

  .section {
    padding: 2rem 0;
  }
}
/* Small button variant for inline actions */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Sermon header row */
.sermon-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sermon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.modal p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}
/* Sermon text: don't let long words/verses overflow */
.sermon-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Slightly reduce side padding on small screens to prevent edge overflow */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

