/* =========================================
   GRIEF KIT — Shared Stylesheet
   Spring pastel palette, warm & gentle
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #3D3535;
  background-color: #FDFAF6;
  line-height: 1.8;
  font-size: 17px;
}

/* ---- Color Variables ---- */
:root {
  --cream: #FDFBF5;
  --white: #FFFFFF;

  /* Purple — primary palette */
  --blush: #9B7EC8;           /* medium rich purple — buttons, borders */
  --blush-light: #EDE7F8;     /* very light purple — section backgrounds */
  --blush-dark: #6B4FA8;      /* deep purple — hover states, links, text */

  /* Pastel Yellow — soft as a daffodil, dad's favorite color */
  --sage: #F0DF8A;             /* pastel butter yellow — accents, pills */
  --sage-light: #FDFAE8;       /* very light yellow — section backgrounds */
  --sage-dark: #7A5C00;        /* warm amber — text on yellow backgrounds */

  /* Soft Lavender — secondary purple */
  --lavender: #B8A8D8;         /* medium lavender */
  --lavender-light: #F2EEFB;   /* very light lavender */

  /* Whisper Yellow — warmest background tones */
  --peach: #F7EEB8;            /* very soft pastel yellow */
  --peach-light: #FFFEF5;      /* barely-there yellow — warmest backgrounds */

  /* Natural Green — botanical, earthy, spring */
  --fern: #8FAF80;             /* sage fern green */
  --fern-light: #EBF4E6;       /* very light green — section backgrounds */
  --fern-dark: #4D7A43;        /* deep forest green — text/links */
  --moss: #C8DFC2;             /* soft moss — borders, decorations */

  --text-dark: #2E2640;        /* deep purple-black */
  --text-medium: #5C5078;      /* medium purple-grey */
  --text-light: #9A90B0;       /* light purple-grey */

  --border: #E4DCF4;           /* purple-tinted border */
  --shadow: 0 4px 20px rgba(100, 70, 160, 0.1);
  --shadow-hover: 0 8px 30px rgba(100, 70, 160, 0.18);

  --radius: 18px;
  --radius-sm: 10px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #3A1F6E;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

a {
  color: var(--blush-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--sage-dark); }

strong { color: var(--text-dark); font-weight: 700; }
em { font-style: italic; }

/* ---- Layout ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blush-dark) !important;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.nav__logo:hover { color: var(--sage-dark) !important; }

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-medium);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--blush-dark);
  border-bottom-color: var(--sage);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.2px;
}

.btn--primary {
  background: var(--blush-dark);
  color: var(--white);
}
.btn--primary:hover {
  background: #5A3E96;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 79, 168, 0.38);
}

.btn--secondary {
  background: transparent;
  color: var(--blush-dark);
  border: 2px solid var(--blush);
}
.btn--secondary:hover {
  background: var(--blush-light);
  color: var(--blush-dark);
  transform: translateY(-2px);
}

.btn--sage {
  background: var(--sage);
  color: var(--text-dark);
}
.btn--sage:hover {
  background: #D4B400;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 126, 0, 0.3);
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--sage-dark);
  margin-bottom: 16px;
  display: block;
}

.hero__headline {
  margin-bottom: 20px;
}

.hero__subtext {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section Headings ---- */
.section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--blush-dark);
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-description {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
  color: var(--text-medium);
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card__title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card__text {
  font-size: 0.97rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ---- Photo Placeholder ---- */
.photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--blush-light);
  background: var(--peach-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0 auto;
  flex-shrink: 0;
  overflow: hidden;
}

.photo-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ---- About Bob Section ---- */
.about-bob {
  background: linear-gradient(135deg, var(--peach-light) 0%, var(--sage-light) 100%);
  border-radius: 28px;
  padding: 60px 48px;
  margin: 0 auto;
  border: 1px solid var(--sage);
}

.about-bob__inner {
  display: flex;
  gap: 52px;
  align-items: center;
}

.about-bob__text h2 {
  margin-bottom: 12px;
}

.about-bob__text .signature {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--blush-dark);
  margin-top: 16px;
  display: block;
}

/* ---- Pull Quote ---- */
.pull-quote {
  border-left: 4px solid var(--sage);
  padding: 24px 32px;
  margin: 32px 0;
  background: var(--sage-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.divider--floral {
  text-align: center;
  border: none;
  margin: 48px 0;
  font-size: 1.4rem;
  color: var(--blush);
  letter-spacing: 12px;
}

/* ---- Background Variants ---- */
.bg-cream { background: var(--cream); }
.bg-blush-light { background: var(--blush-light); }
.bg-sage-light { background: var(--sage-light); }
.bg-lavender-light { background: var(--lavender-light); }
.bg-peach-light { background: var(--peach-light); }
.bg-fern-light { background: var(--fern-light); }
.bg-white { background: var(--white); }

/* ---- Botanical Divider ---- */
.botanical-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px auto;
  opacity: 0.75;
}

.floral-sprig {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  opacity: 0.7;
}

/* ---- Featured Resource Cards ---- */
.featured-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.featured-card--green::before { background: linear-gradient(90deg, var(--fern), var(--moss)); }
.featured-card--purple::before { background: linear-gradient(90deg, var(--blush-dark), var(--blush)); }

.featured-card__badge {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.featured-card--green .featured-card__badge {
  background: var(--fern-light);
  color: var(--fern-dark);
  border: 1px solid var(--moss);
}

.featured-card--purple .featured-card__badge {
  background: var(--blush-light);
  color: var(--blush-dark);
  border: 1px solid var(--blush);
}

.featured-card__icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 14px;
}

.featured-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.featured-card p {
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.featured-card .btn {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
}

/* ---- Accordion (Resources) ---- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(180,140,140,0.07);
  transition: box-shadow 0.2s;
}

.accordion__item:hover {
  box-shadow: 0 4px 16px rgba(180,140,140,0.13);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: background 0.2s;
}

.accordion__trigger:hover {
  background: var(--peach-light);
}

.accordion__trigger-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion__emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.accordion__arrow {
  font-size: 1.1rem;
  color: var(--blush-dark);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion__item.is-open .accordion__arrow {
  transform: rotate(180deg);
}

.accordion__content {
  display: none;
  padding: 0 28px 28px;
  color: var(--text-medium);
  line-height: 1.85;
}

.accordion__item.is-open .accordion__content {
  display: block;
}

.accordion__content h4 {
  margin: 18px 0 8px;
  color: var(--text-dark);
  font-size: 1rem;
}

.accordion__content ul,
.accordion__content ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.accordion__content li {
  margin-bottom: 6px;
  color: var(--text-medium);
}

.accordion__content a {
  color: var(--blush-dark);
  font-weight: 600;
}

.accordion__content a:hover {
  color: var(--sage-dark);
}

.resource-pill {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 4px 4px 0;
  border: 1px solid var(--sage);
}

/* ---- Banner / Callout ---- */
.callout {
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 40px 48px;
  text-align: center;
}

.callout h2 {
  margin-bottom: 12px;
}

.callout p {
  margin-bottom: 24px;
}

/* ---- Footer ---- */
.footer {
  background: #3D3535;
  color: #C8B8B8;
  padding: 52px 24px;
  text-align: center;
}

.footer__logo {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: #F5E870 !important;
  display: block;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: #A09090;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin-bottom: 28px;
}

.footer__links a {
  color: #C8B8B8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #F5E0E0;
}

.footer__memorial {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sage);
  margin-bottom: 16px;
}

.footer__copy {
  font-size: 0.82rem;
  color: #7A6A6A;
  margin-bottom: 0;
}

/* ---- Story Page Styles ---- */
.story-prose p {
  font-size: 1.08rem;
  line-height: 2;
  margin-bottom: 1.4rem;
  color: var(--text-medium);
}

.story-prose p.lead {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ---- Petal decorative element ---- */
.petal-row {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 8px;
  margin: 16px 0;
  opacity: 0.5;
}

/* ---- Photo Gallery / Carousel ---- */
.gallery-section {
  padding: 80px 0;
  background: var(--cream);
  overflow: hidden;
}

.gallery-track-wrapper {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 24px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blush) var(--blush-light); /* purple scrollbar */
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}
.gallery-track::-webkit-scrollbar-track {
  background: var(--blush-light);
  border-radius: 10px;
}
.gallery-track::-webkit-scrollbar-thumb {
  background: var(--blush);
  border-radius: 10px;
}

.gallery-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
}

.gallery-slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-slide__img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-slide__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-slide:hover .gallery-slide__img-wrap img {
  transform: scale(1.04);
}

.gallery-slide__img-wrap .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.gallery-slide__img-wrap .img-placeholder span {
  font-size: 2rem;
  opacity: 0.3;
}

.gallery-slide__caption {
  padding: 14px 16px 16px;
}

.gallery-slide__caption p {
  font-size: 0.88rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.gallery-slide__caption .caption-tag {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--sage-dark);
  display: block;
  font-style: normal;
  margin-bottom: 2px;
}

/* Gallery nav arrows */
.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 24px;
}

.gallery-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blush);
  background: var(--white);
  color: var(--blush-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-nav__btn:hover {
  background: var(--blush);
  color: var(--white);
  transform: scale(1.08);
}

.gallery-nav__hint {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* Bob quote card */
.bob-quote {
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid var(--sage);
}

.bob-quote__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.bob-quote__attr {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--sage-dark);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hero { padding: 72px 0 60px; }

  .nav__links { gap: 20px; }
  .nav__links a { font-size: 0.88rem; }

  .about-bob__inner {
    flex-direction: column;
    text-align: center;
  }

  .about-bob {
    padding: 40px 28px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    padding: 32px 24px;
  }

  .accordion__trigger {
    padding: 18px 20px;
    font-size: 0.97rem;
  }

  .accordion__content {
    padding: 0 20px 22px;
  }

  .pull-quote {
    padding: 18px 22px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
