:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --text: #20201e;
  --muted: #66645f;
  --line: #ded8cd;
  --forest: #275317;
  --artist: #1D4B97;
  --accent: #275317;
  --shadow: 0 18px 40px rgba(32, 32, 30, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.signature-brand img {
  display: block;
  width: 76px;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.hero {
  min-height: calc(100vh - 77px);
  display: grid;
  place-items: center;
  padding: 56px clamp(18px, 4vw, 56px);
}

.hero-content,
.page-section {
  width: min(1180px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.category-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(32, 32, 30, 0.14);
  outline: none;
}

.category-card span {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card small {
  margin-top: 8px;
  font-size: 1rem;
  color: rgba(32, 32, 30, 0.72);
}

.category-card.forest {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #9CAF88, #c7d4ba);
  color: #253320;
}

.category-card.artist {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #8FA8D6, #c7d7ef);
  color: #21324c;
}

.category-card.baking {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #DDA176, #f0c7a9);
  color: #4c2a18;
}

.category-card.purple {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #C58AAF, #e2bdd2);
  color: #4d263e;
}

.category-card.school-readiness {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #E3C86B, #f2e2aa);
  color: #5a4a14;
}

.category-card.making-difference {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 36%),
    linear-gradient(135deg, #D98282, #ebb4b4);
  color: #5a2323;
}

.category-card.coming-soon {
  cursor: default;
  user-select: none;
}

.category-card.forest small,
.category-card.artist small,
.category-card.baking small,
.category-card.purple small,
.category-card.school-readiness small,
.category-card.making-difference small {
  color: rgba(32, 32, 30, 0.72);
}

.page-section {
  padding: 70px clamp(18px, 4vw, 56px);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 24px;
}

.toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.toolbar label {
  font-weight: 900;
}

.toolbar input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font: inherit;
}

.toolbar input:focus {
  outline: 3px solid rgba(40, 95, 43, 0.16);
  border-color: var(--accent);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(32, 32, 30, 0.07);
  display: grid;
  grid-template-rows: auto 1fr;
}

.plan-card h3 {
  margin: 0;
  padding: 18px 20px;
  height: 132px;
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--line);
}

.image-wrap {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  text-align: left;
  align-self: start;
}

.plan-card img {
  display: block;
  width: 100%;
  height: auto;
}

.empty-message {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
}


@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
  }

  .category-card {
    min-height: 170px;
  }

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


.signature-brand {
  cursor: default;
  user-select: none;
}


body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: 96vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #20201e;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
}



@media (max-width: 760px) {
  .plan-card h3 {
    height: 110px;
  }
}


/* Clear, high-priority alignment fixes */

/* CATEGORY CARDS
   Make headings fit on one line on desktop so all cards align cleanly. */
.category-card {
  min-height: 230px !important;
  padding: 24px !important;
}

.category-card span {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  font-size: clamp(1.18rem, 1.95vw, 1.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}

.category-card small {
  display: block !important;
  min-height: 58px !important;
  max-width: 100% !important;
  margin-top: 12px !important;
  font-size: 0.96rem !important;
  line-height: 1.35 !important;
}

/* INDIVIDUAL ACTIVITY PLAN CARDS
   Remove the bulky title area while still allowing long titles to wrap. */
.plan-card h3 {
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 14px !important;
  font-size: 1.02rem !important;
  line-height: 1.18 !important;
  display: block !important;
}

.plan-card {
  display: block !important;
}

.plan-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 900px) {
  .category-card span {
    white-space: normal !important;
    font-size: clamp(1.35rem, 4.2vw, 1.75rem) !important;
  }

  .category-card small {
    min-height: 0 !important;
  }
}


/* Activity plan title refinement:
   centre the text and reserve a consistent two-line title area */
.plan-card h3 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 8px 14px !important;
  font-size: 1.02rem !important;
  line-height: 1.18 !important;
}


/* Suggest an Activity Plan section */
.suggest-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 76px;
}

.suggest-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.suggest-card h2 {
  max-width: 780px;
}

.suggest-card p {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.05rem;
}

.suggest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #9CAF88;
  color: #253320;
  text-decoration: none;
  font-weight: 900;
}

.suggest-button:hover,
.suggest-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(32, 32, 30, 0.12);
  outline: none;
}

@media (max-width: 760px) {
  .suggest-section {
    margin-bottom: 54px;
  }
}


/* Compact top suggestion button */
.suggest-quick-link {
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 72px;
  display: flex;
  justify-content: center;
}

.suggest-quick-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(32, 32, 30, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.suggest-quick-link a:hover,
.suggest-quick-link a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(32, 32, 30, 0.12);
  outline: none;
}

/* Bottom placement for full suggestion information */
#suggest-activity {
  margin-top: 92px;
  margin-bottom: 72px;
}

@media (max-width: 760px) {
  .suggest-quick-link {
    margin: -18px auto 54px;
  }

  #suggest-activity {
    margin-top: 64px;
  }
}


/* Polished suggestion area */
.suggest-quick-link a {
  background: #f4f4f2 !important;
  max-width: min(720px, 100%) !important;
  text-align: center !important;
}

.suggest-card {
  background: #f4f4f2 !important;
}


/* Global search */
.global-search-section {
  width: min(1180px, calc(100% - 36px));
  margin: -22px auto 54px;
}

.global-search-card {
  background: #f4f4f2;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 10px 26px rgba(32, 32, 30, 0.07);
}

.global-search-card label {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.global-search-card input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: inherit;
}

.global-search-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.global-search-results {
  margin-top: 22px;
}

.plan-category-label {
  margin: 0;
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-category-label + h3 {
  height: 52px !important;
  min-height: 52px !important;
  padding-top: 6px !important;
}

@media (max-width: 760px) {
  .global-search-section {
    margin-top: -10px;
    margin-bottom: 42px;
  }
}


/* Recently added */
.recent-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 58px;
}

.recent-intro {
  margin: 12px 0 0;
  max-width: 680px;
  color: var(--muted);
}

/* Plan card refinement and credit display */
.plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.plan-card h3 {
  margin: 0;
  padding: 10px 14px !important;
  min-height: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 1.02rem !important;
  line-height: 1.18 !important;
  border-bottom: 1px solid var(--line);
}

.plan-category-label {
  margin: 0;
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-category-label + h3 {
  min-height: 54px !important;
  height: 54px !important;
  padding-top: 6px !important;
}

.plan-credit {
  margin: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(32, 32, 30, 0.92);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(32, 32, 30, 0.18);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-1px);
  background: #20201e;
  outline: none;
}

@media (max-width: 760px) {
  .recent-section {
    margin-bottom: 44px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    font-size: 0.92rem;
  }
}


/* Recently Added: six items only is handled in script.js */

/* Subtler suggested-by credit badge */
.plan-card {
  position: relative;
}

.plan-credit {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  max-width: calc(100% - 20px) !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: rgba(32, 32, 30, 0.74) !important;
  box-shadow: 0 6px 14px rgba(32, 32, 30, 0.12) !important;
  font-size: 0.76rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  text-align: center !important;
  pointer-events: none !important;
}


/* Mobile category dropdown */
.mobile-nav {
  display: none;
}

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

.mobile-category-select {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(32, 32, 30, 0.05);
}

.mobile-category-select:focus-visible {
  outline: 2px solid rgba(32, 32, 30, 0.18);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .top-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .signature-brand {
    flex: 0 0 auto;
  }

  .signature-brand img {
    width: 62px;
  }
}
