/* ==========================================================
   ✏️ BRAND COLORS (matched to the BibleTalk logo)
   ========================================================== */
:root {
  --navy: #0d1830;
  --navy-deep: #08101f;
  --orange: #f47b20;
  --orange-dark: #d9650f;
  --blue: #2a8be0;
  --blue-light: #5fb0f5;
  --bg: #ffffff;
  --tint: #f3f6fb;
  --text: #2c3446;
  --muted: #687089;
  --border: #e3e8f0;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --max-width: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 92px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #c9d2e6; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 700; color: var(--orange); margin-bottom: .9em;
}
.small { font-size: .88rem; color: var(--muted); }
.section-dark .small { color: #8f9bb8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
  background: var(--orange); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; border: 2px solid var(--orange);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: .85rem; }
.btn-ghost { background: transparent; border-color: var(--blue-light); color: #fff; }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--blue-light); }
.brand b { color: var(--orange); }
.brand em { font-style: normal; font-weight: 600; color: #fff; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #d6ddee; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 78% 45%, rgba(42,139,224,.28), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(244,123,32,.18), transparent 45%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 80px 0 100px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hl-orange { color: var(--orange); }
.hl-blue { color: var(--blue-light); }
.hero-text { font-size: 1.15rem; color: #c3cde3; max-width: 560px; margin-bottom: 2em; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo img {
  width: 100%; max-width: 420px; margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(42,139,224,.45)) drop-shadow(0 0 80px rgba(244,123,32,.2));
}

/* ---------- Perks ---------- */
.perks { background: #fff; border-bottom: 1px solid var(--border); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.perk { display: flex; gap: 14px; align-items: center; padding: 26px 18px; }
.perk svg { flex: 0 0 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff1e6; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perk:nth-child(2) svg { background: #e8f3fd; stroke: var(--blue); }
.perk strong { display: block; font-family: var(--font-heading); color: var(--navy); font-size: .95rem; }
.perk span { font-size: .88rem; color: var(--muted); }

/* ---------- Shop tools ---------- */
.shop-tools { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 600 .88rem var(--font-body); color: var(--navy); background: var(--tint);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background .15s, color .15s;
}
.filters button:hover { border-color: var(--blue); }
.filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { position: relative; flex: 0 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input {
  width: 100%; font: inherit; font-size: .95rem; padding: 10px 14px 10px 40px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: 0 14px 36px rgba(13,24,48,.12); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 4 / 3; }
.product-media img, .product-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--navy); }
.preview-btn {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  font: 700 .82rem var(--font-heading); color: #fff; background: rgba(13,24,48,.82);
  border: 0; border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: background .2s;
}
.preview-btn svg { width: 18px; height: 18px; fill: var(--orange); }
.preview-btn:hover { background: var(--orange); }
.preview-btn:hover svg { fill: #fff; }
.etsy-alt { align-self: flex-end; margin-top: 10px; font-size: .84rem; font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.etsy-alt:hover { text-decoration: underline; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy);
  font: 700 .72rem var(--font-heading); text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue); margin-bottom: .4em; }
.product-desc { font-size: .92rem; color: var(--muted); margin-bottom: .6em; }
.product-format { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 1.1em; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.btn-buy { padding: 9px 18px; font-size: .85rem; }
.btn-buy.is-soon { background: var(--tint); border-color: var(--border); color: var(--muted); cursor: default; transform: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.etsy-note { text-align: center; margin-top: 40px; color: var(--muted); }
.etsy-note a { font-weight: 700; color: var(--orange-dark); }

/* Automatic covers (used when a product has no image) */
.cover {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; color: #fff;
}
.cover svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.cover span { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; line-height: 1.3; max-width: 220px; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.cover-0 { background: linear-gradient(140deg, #ffa053, #e8620c); }                 /* Journals & Planners */
.cover-1 { background: linear-gradient(140deg, #4aa6f2, #1a62b8); }                 /* Sunday School */
.cover-2 { background: linear-gradient(140deg, #ffb347 0%, #f47b20 45%, #2a8be0 100%); } /* Activity Sheets */
.cover-3 {                                                                          /* Vestment Patterns: brocade */
  color: #f3d58f;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e9c27a' stroke-opacity='.45' stroke-width='1.2'%3E%3Cpath d='M24 2 46 24 24 46 2 24z'/%3E%3Ccircle cx='24' cy='24' r='7'/%3E%3Cpath d='M24 13c3 4 3 7 0 11-3-4-3-7 0-11zM24 35c3-4 3-7 0-11-3 4-3 7 0 11zM13 24c4-3 7-3 11 0-4 3-7 3-11 0zM35 24c-4-3-7-3-11 0 4 3 7 3 11 0z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(140deg, #6b1530, #3b0a1d);
}
.cover-4 { background: linear-gradient(140deg, #1d2d52, #0b1428); }                 /* Church Templates */
.cover-5 { background: linear-gradient(140deg, #fdf3e4, #f1dcc0); color: var(--navy); } /* Wall Art */
.cover-5 span { text-shadow: none; }

/* ---------- Free printable ---------- */
.free-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.free-preview { display: grid; place-items: center; }
.free-preview img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.sheet {
  position: relative; width: 240px; aspect-ratio: 8.5 / 11; background: #fff; border-radius: 6px;
  padding: 34px 26px; rotate: -4deg; box-shadow: 0 30px 60px rgba(0,0,0,.4), 14px 14px 0 var(--blue);
  display: flex; flex-direction: column; gap: 18px;
}
.sheet strong { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.15; color: var(--navy); }
.sheet-tag { align-self: flex-start; background: var(--orange); color: #fff; font: 800 .72rem var(--font-heading); letter-spacing: .1em; padding: 4px 10px; border-radius: 4px; }
.sheet-lines { flex: 1; background: repeating-linear-gradient(transparent 0 16px, var(--border) 16px 18px); }
.signup { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; margin-top: 24px; }
.signup .btn { white-space: nowrap; }
.signup input { font: inherit; font-size: 1rem; padding: 13px 18px; border-radius: 999px; border: 1px solid #2a3a5e; background: #13223f; color: #fff; }
.signup input::placeholder { color: #8391b0; }
.signup input:focus { outline: 2px solid var(--blue-light); outline-offset: 1px; }
.form-status { margin: 12px 0 4px; font-weight: 600; color: #ffb27a; min-height: 1em; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-featured { grid-column: span 2; grid-row: span 2; }
.video { min-width: 0; }
.video-thumb, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: 12px; overflow: hidden; background: var(--navy); cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 24, 48, .12);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: background .2s;
}
.video-featured .video-play { width: 76px; height: 76px; }
.video-play svg { width: 45%; height: 45%; fill: #fff; margin-left: 4px; }
.video-thumb:hover .video-play { background: var(--orange-dark); }
.video h3 { font-size: 1rem; margin: 12px 2px 0; line-height: 1.35; }
.video-featured h3 { font-size: 1.3rem; }
.video h3 a { color: var(--navy); text-decoration: none; }
.video h3 a:hover { color: var(--orange); }
.video-more { text-align: center; margin-top: 40px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.about-card { display: grid; gap: 14px; }
.stat { background: var(--tint); border-radius: var(--radius); padding: 22px 26px; border-left: 5px solid var(--orange); }
.stat:nth-child(2) { border-left-color: var(--blue); }
.stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-heading); font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9aa6c2; padding: 60px 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 40px; }
.brand-light { margin-bottom: 14px; }
.brand img { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.brand-light img { width: 40px; height: 40px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #9aa6c2; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.copyright { border-top: 1px solid rgba(255,255,255,.07); margin-top: 40px; padding-top: 20px; font-size: .84rem; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 220px; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .free-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-featured { grid-row: auto; }
  .signup { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .perks-grid { grid-template-columns: 1fr; }
  .perk { padding: 14px 0; }
  .perks-grid .perk:first-child { padding-top: 22px; }
  .perks-grid .perk:last-child { padding-bottom: 22px; }
  .search { flex-basis: 100%; }
  .video-grid { grid-template-columns: 1fr; }
  .video-featured { grid-column: auto; }
  .video-featured h3 { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .sheet { width: 200px; }
}
