/* Google Fonts: Playfair Display for headers, Lato for body, Great Vibes for calligraphy */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&family=Great+Vibes&display=swap');

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-weight: 900;
  text-shadow: 0 0 1px #000, 0 0 1px #000;
  overflow-x: hidden;
}

/* Ensure images never overflow their container */
img { max-width: 100%; height: auto; }

h1 {
  font-family: 'Great Vibes', cursive;
  color: #2c3e50;
}

h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .nav-list li {
  margin: 0 1rem;
}

nav .nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

/* Hamburger / responsive nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 1100;
}

/* ── Tablet landscape / small desktop ── */
@media (max-width: 1024px){
  main { padding: 2rem 1.5rem; }
  .book-listings { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet / hamburger breakpoint ── */
@media (max-width: 800px){
  .nav-toggle { display: block; }
  nav .nav-list {
    display: none; flex-direction: column;
    background: rgba(44,62,80,0.98);
    position: fixed; top: 56px; left: 0; right: 0;
    padding: 1rem; gap: 0.25rem;
  }
  nav .nav-list.show { display: flex; }
  nav .nav-list li { margin: 0.4rem 0; }
  nav .nav-list li a { font-size: 1.1rem; display: block; padding: 0.5rem 1rem; }
  header { padding: 0.75rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .book-listings { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  section:not(.hero) { padding: 1rem; }
}

/* ── Small tablets / large phones ── */
@media (max-width: 600px){
  main { padding: 1.5rem 1rem; margin-top: 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .book-grid { grid-template-columns: 1fr; }
  .book-listings img { width: 120px; }
  main.about-page p { font-size: 1.1rem; }
}

/* ── Small phones ── */
@media (max-width: 480px){
  main { padding: 1rem 0.75rem; margin-top: 56px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.95rem; }
  section:not(.hero) { padding: 0.75rem; margin-bottom: 1rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  form { margin: 1rem auto; padding: 0.75rem; }
  .book-listings img { width: 100px; }
  footer { padding: 1.5rem 1rem; }
}

main {
  margin-top: 80px;
  padding: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.0;
  position: relative;
  z-index: 1;
}

/* About page - slightly larger, more readable body text */
main.about-page p {
  font-size: 1.25rem; /* larger for improved readability (~20px) */
  line-height: 1.95;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

main.about-page h1, main.about-page h2 { text-align: center; }

.hero p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0.5em;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem; /* reduce gap between title and subtitle */
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.3; /* reduce vertical spacing between lines */
  margin-bottom: 0.5rem; /* tighter spacing between sentences */
}

.btn {
  background-color: #2c3e50;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #22313f;
}

.book-listings img {
  width: 150px;
  height: auto;
}

.book-listings h3 {
  font-size: 1.2rem;
}

.book-listings p {
  font-size: 0.9rem;
}

.book-listings .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.book-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.book-item {
  text-align: center;
}

section:not(.hero) {
  border: 2px solid #2c3e50;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(44,62,80,0.5);
  background: rgba(255,255,255,0.05);
  margin-bottom: 2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-item {
  text-align: center;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 5px;
}

.book-item img {
  max-width: 100%;
  height: auto;
}

footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #2c3e50;
  color: white;
  text-align: left;
  position: relative;
  z-index: 1;
}

footer div {
  margin-bottom: 1rem;
}

footer h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: white; /* override default dark heading color */
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

footer a:hover {
  background-color: #22313f;
} 

form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

input, button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
}

button {
  background-color: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #22313f;
}

/* ── Family grid & cards ── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.family-card {
  border: 2px solid #2c3e50;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(44,62,80,0.3);
  background: rgba(255,255,255,0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(44,62,80,0.4);
}

.family-photo-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  margin-bottom: 1rem;
  border: 1px dashed rgba(255,255,255,0.2);
}

/* ── Book cover placeholder ── */
.book-cover-placeholder {
  width: 150px;
  height: 220px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  font-size: 0.85rem;
  margin: 0 auto 0.5rem;
}

/* ── Photo/receipt gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ── Video section ── */
.video-section video {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem 0;
}

/* ── Donate button accent ── */
.donate-btn {
  background-color: #27ae60;
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
}

.donate-btn:hover {
  background-color: #1e8449;
}