/* Christian Concepts for Kids — Updated 2026 */
:root {
  --green: #2c5f4e;
  --green-dark: #1e4336;
  --navy: #1e4d6b;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #f8f4eb;
  --cream-dark: #efe8d8;
  --text: #2d2a26;
  --text-soft: #5c564e;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(30, 67, 54, 0.12);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.45rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* Header */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.logo-img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 180px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.logo span { display: block; font-size: 0.72rem; font-family: "Source Sans 3", sans-serif; font-weight: 500; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; }

nav ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

nav a:hover, nav a.active { color: var(--green); }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--green-dark) !important;
}
.btn-gold:hover { background: #b8911c; }

.btn-outline {
  background: transparent;
  color: var(--green) !important;
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: white !important; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: url("../images/oJHdw.jpg") center/cover no-repeat;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(30,67,54,0.82) 0%, rgba(30,67,54,0.45) 55%, rgba(30,77,107,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 680px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.hero h1 { color: white; margin-bottom: 0.6rem; }

.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.8rem;
  max-width: 34em;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4.5rem 0; }

.section-intro { max-width: 680px; margin-bottom: 2.4rem; }
.section-intro p { color: var(--text-soft); font-size: 1.12rem; }

.bg-white { background: var(--white); }
.bg-green { background: var(--green); color: white; }
.bg-green h2, .bg-green h3 { color: white; }
.bg-navy { background: var(--navy); color: white; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img { width: 100%; height: 210px; object-fit: cover; }

.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--text-soft); font-size: 0.98rem; }

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.audience-item {
  background: var(--white);
  padding: 1.5rem 1.3rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.audience-item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.audience-item p { font-size: 0.95rem; color: var(--text-soft); }

/* Book feature */
.book-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.book-cover {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.book-meta { color: var(--text-soft); margin: 0.6rem 0 1.2rem; font-size: 0.98rem; }

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.quote {
  background: var(--cream);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.quote p { font-style: italic; margin-bottom: 0.8rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--green); font-size: 0.95rem; }

/* Faith */
.faith-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.faith-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faith-item h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

/* Activity carousel */
.carousel-section { padding-top: 0.4rem; }
.carousel {
  max-width: 980px;
  margin: 0 auto;
}
.carousel-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1e4336;
  aspect-ratio: 16 / 9;
}
.carousel-track { position: relative; height: 100%; }
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(16, 36, 28, 0.88));
  color: #fff;
}
.carousel-slide figcaption strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}
.carousel-slide figcaption span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.carousel-btn:hover { background: var(--gold-light); }
.carousel-btn.prev { left: 0.8rem; }
.carousel-btn.next { right: 0.8rem; }
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.carousel-dots { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.carousel-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c1b0;
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--green); transform: scale(1.15); }
.carousel-pause {
  background: none;
  border: 0;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}
@media (max-width: 700px) {
  .carousel-frame { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 40px; height: 40px; }
}

/* Contact */
.contact-box {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
}

.contact-box p { margin-bottom: 0.6rem; }
.phone { font-size: 1.4rem; font-weight: 700; color: var(--green); }

/* Footer */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.82);
  padding: 2.4rem 0 1.6rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer a { color: var(--gold-light); }
footer .copy { margin-top: 1.6rem; opacity: 0.7; font-size: 0.85rem; }

/* Page header for inner pages */
.page-hero {
  background: var(--green);
  color: white;
  padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { color: white; }
.page-hero p { color: rgba(255,255,255,0.88); margin-top: 0.4rem; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -100px;
  background: var(--gold);
  color: var(--green-dark) !important;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

a { text-underline-offset: 0.15em; }
a:hover { text-decoration: underline; }
.btn:hover, nav a:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Store */
.book-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
}
.book-card-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.book-card .sub { font-size: 1.1rem; margin-bottom: 0.3rem; }
.book-card .meta, .book-card .isbn { color: var(--text-soft); font-size: 0.95rem; }
.book-card .price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.5rem 0 0.8rem;
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.buy-note {
  background: var(--cream-dark);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  margin-bottom: 0;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
}
.faq-item h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.35;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.05rem 1.3rem;
  font: inherit;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
}
.faq-item button::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-size: 1.3rem;
}
.faq-item button[aria-expanded="true"]::after { content: "–"; }
.faq-item .faq-panel { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  #site-nav { display: none; width: 100%; }
  #site-nav.is-open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0 1rem; }
  .book-feature, .about-split, .book-card { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; background-position: 70% center; }
  .hero-content { padding: 4rem 0; }
}
