/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600&family=Dancing+Script:wght@400;700&display=swap');

/* =========================
   ROOT & RESET
========================= */
:root {
  --primary: #556B2F;
  --secondary: #778F4A;
  --accent: #F5F5DC;
  --dark: #2F4F2F;
  --muted: #F0F8E0;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Text', serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  padding-top: 80px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
  font-family: 'Dancing Script', cursive;
}

/* =========================
   CONTAINERS & SECTIONS
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 800px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Reduced global section padding to minimise whitespace */
.section {
  padding: 50px 0;
}

.section.muted {
  background: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
}

/* =========================
   GLOBAL SPACING FIXES
========================= */
section {
  margin-bottom: 30px;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  background: var(--white);
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 1s ease-out;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: #666;
}

.brand-parent {
  font-size: 0.65rem;
  color: #777;
  font-style: italic;
  margin-top: 2px;
}


.logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byl-logo { height: 50px; }
.mvm-logo { height: 25px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

/* =========================
   HERO & PAGE HEADERS
========================= */
.hero {
  background: var(--accent);
  padding: 100px 0;
}

.hero-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.page-header {
  padding: 70px 0 30px; /* tightened */
  background: var(--accent);
  text-align: center;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.page-header h1 {
  color: var(--primary);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 15px;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.primary:hover {
  background: #3D5A1F;
}

/* =========================
   GRIDS & CARDS
========================= */
.grid-5,
.service-grid,
.store-grid,
.stories-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid,
.store-grid,
.stories-grid,
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.service-card,
.store-card,
.story-card,
.gallery-item {
  background: var(--white);
  padding: 18px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.card h3,
.service-card h3,
.store-card h3,
.story-card h3,
.gallery-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* =========================
   GALLERY
========================= */
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.gallery-item p {
  font-size: 0.9rem;
  color: var(--dark);
  text-align: center;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   IMPACT
========================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.impact-item strong {
  font-size: 2rem;
  color: var(--primary);
}

/* =========================
   FORMS
========================= */
.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-size: 0.85rem;
  color: #444;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #2F4F2F;
  color: var(--white);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   SMALL TEXT
========================= */
.small {
  font-size: 0.8rem;
  color: #666;
}

.note {
  font-size: 0.85rem;
  color: #555;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }

  .hero h1 { font-size: 1.7rem; }
  .section { padding: 45px 0; }

  .byl-logo { height: 40px; }
  .mvm-logo { height: 20px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.65rem; }
  .logos { gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 35px 0; }

  .byl-logo { height: 35px; }
  .mvm-logo { height: 18px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.6rem; }
  .logos { gap: 5px; }

  .btn { padding: 10px 18px; font-size: 0.9rem; }
}

/* =========================
   SHARING BUTTONS
========================= */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s;
}

.share-buttons a:hover {
  background: var(--secondary);
}

.share-buttons a i { font-size: 16px; }

/* =========================
   STORY CARD SPECIFIC
========================= */
.stories-section {
  padding: 40px 0; /* tightened */
}

.stories-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.story-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 22px;     /* tightened */
  margin: 0;
  max-width: 100%;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.story-card h3 {
  font-family: 'Dancing Script', cursive;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 10px; /* tightened */
}

.story-card p {
  font-family: 'Crimson Text', serif;
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 16px; /* tightened */
  line-height: 1.7;
}

.story-card .share-buttons {
  margin-top: auto;
}

.story-card a {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.story-card a:hover {
  background-color: #1f2a20;
  color: #fff;
}

.story-card .share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.story-card .share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.story-card .share-buttons a:hover {
  background: var(--secondary);
}

.story-card .share-buttons i {
  font-size: 16px;
}

/* =========================================================
   STORE / DIGITAL RESOURCE CARD FIXES
   Purpose: make resource cards match height/alignment,
   keep buttons aligned, and stabilise PayPal embed card.
========================================================= */

/* Make grid items stretch to equal height */
.store-grid {
  align-items: stretch;
}

/* Turn store cards into structured flex cards */
.store-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Prevent paragraphs from creating inconsistent gaps */
.store-card p {
  margin-bottom: 0;
}

/* Push buttons to the bottom so cards align neatly (default) */
.store-card .btn {
  margin-top: auto;
  width: fit-content;
}

/* PayPal embed card: ensure it doesn't look shorter than others */
#journaling-package {
  min-height: 280px;
  justify-content: center;
}

/* Make sure PayPal container uses full width */
#journaling-package > div {
  width: 100%;
}

/* =========================================================
   FIX: PDF CARDS MUST MATCH CONTENT HEIGHT (NO STRETCH)
========================================================= */
#daily-planner-2026,
#journal-template {
  /* This overrides the grid's "stretch to same height" behavior */
  align-self: start;          /* KEY FIX: stops card stretching */
  height: auto;

  /* Make them compact */
  padding: 14px;
  display: block;             /* avoid flex stretching behavior */
}

#daily-planner-2026 h3,
#journal-template h3 {
  margin-bottom: 8px;
}

#daily-planner-2026 p,
#journal-template p {
  margin-bottom: 10px;
  line-height: 1.55;
}

/* Keep button close to text (no auto push-down) */
#daily-planner-2026 .btn,
#journal-template .btn {
  margin-top: 0;
}
