/* ────────────────────────────────────────
   public.css — GhanaChild public pages
   Used by: index.html, /directory/, /guides/
   Loaded AFTER front_style.css (reuses its tokens)
   ──────────────────────────────────────── */

/* ── NAV LINKS ── */
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-links { display: flex; gap: 1.2rem; list-style: none; }
.nav-links a {
  color: rgba(250,250,250,0.78); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
@media (max-width: 600px) {
  .nav-right { gap: .8rem; }
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .75rem; }
}
@media (max-width: 380px) { .nav-links .hide-xs { display: none; } }

/* ── HERO ADDITIONS ── */
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(250,250,250,0.85);
  max-width: 640px; margin: 0 auto 1.6rem;
  opacity: 0; animation: fadeUp .9s .55s forwards;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-block; padding: 1rem 1.8rem; border-radius: 4px;
  border: 1px solid rgba(218,165,32,.55); color: var(--gold);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  opacity: 0; animation: fadeUp .9s .9s forwards;
  transition: background .25s, color .25s;
}
.btn-ghost:hover { background: rgba(218,165,32,.12); color: var(--gold-light); }
.btn-dark {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 4px;
  background: var(--charcoal); color: var(--off-white); text-decoration: none;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
}
.btn-dark:hover { background: #333; }

/* ── GENERIC LIGHT SECTION ── */
.section { padding: 6rem 1.5rem; }
.section-light { background: var(--cream); }
.section-white { background: var(--white); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-light .section-heading,
.section-white .section-heading { color: var(--charcoal); margin-bottom: 1rem; }
.section-intro {
  text-align: center; color: var(--muted); max-width: 640px;
  margin: 0 auto 3rem; font-size: 1.05rem;
}
@media (max-width: 768px) { .section { padding: 4rem 1.2rem; } }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
  background: var(--white); border-radius: 10px; padding: 1.8rem 1.5rem;
  border: 1px solid rgba(26,26,26,.07);
  box-shadow: 0 2px 10px rgba(44,26,14,.05);
  transition: transform .25s, box-shadow .25s;
}
.section-white .feature-card { background: var(--cream); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(44,26,14,.1); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(218,165,32,.15); color: var(--terracotta-dark);
  font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }
.feature-card a { color: var(--terracotta-dark); font-weight: 600; text-decoration: none; }
.feature-card a:hover { text-decoration: underline; }

/* ── WHO IS THIS FOR ── */
.who-wrap { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
.who-wrap img { width: 100%; height: auto; border-radius: 12px; display: block; box-shadow: 0 12px 36px rgba(44,26,14,.18); }
.who-list { list-style: none; display: grid; gap: 1.1rem; }
.who-list li { padding-left: 2.2rem; position: relative; }
.who-list li::before {
  content: '✦'; position: absolute; left: 0; top: .05rem;
  color: var(--gold); font-size: 1.1rem;
}
.who-list strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.who-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .who-wrap { grid-template-columns: 1fr; } }

/* ── STEPS ── */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { text-align: center; padding: 1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--charcoal); color: var(--gold);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
}
.step h3 { font-family: var(--serif); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ── DAY NAME WIDGET ── */
.dayname-box {
  max-width: 620px; margin: 0 auto; background: var(--charcoal); color: var(--off-white);
  border-radius: 14px; padding: 2.2rem; text-align: center;
  border: 1px solid rgba(218,165,32,.25);
}
.dayname-box h2 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: .5rem; }
.dayname-box p { color: rgba(250,250,250,.7); }
.dayname-form { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 1rem; }
.dayname-form input[type="date"] {
  font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--off-white);
  color-scheme: dark;
}
.dayname-form .btn-primary { opacity: 1; animation: none; padding: .8rem 1.5rem; }
.dayname-result { min-height: 3rem; font-size: 1.1rem; }
.dayname-result strong { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; }
.dayname-box .more { color: var(--gold); font-weight: 600; }

/* ── CARDS (guides / directory) ── */
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 10px;
  padding: 1.5rem; text-decoration: none; color: inherit;
  border: 1px solid rgba(26,26,26,.08); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(44,26,14,.1); }
.card .tag {
  align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); background: rgba(46,139,87,.12); padding: .2rem .6rem; border-radius: 20px; margin-bottom: .8rem;
}
.card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .4rem; line-height: 1.3; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card .meta { font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.card .read { margin-top: .9rem; color: var(--terracotta-dark); font-weight: 600; font-size: .9rem; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white); border-radius: 8px; margin-bottom: .8rem;
  border: 1px solid rgba(26,26,26,.08);
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; position: relative; padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.3rem; top: .9rem; font-size: 1.4rem; color: var(--terracotta); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ── WAITLIST COUNTER ── */
.waitlist-count { color: var(--gold); font-weight: 600; margin: -1rem 0 2rem; min-height: 1.2em; }

/* ── FOOTER (expanded) ── */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: .8rem 0; }
.footer-nav a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; }
.footer-nav a:hover { color: var(--gold); }

/* ── PAGE HEADER (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C1A0E 55%, #1A2B1E 100%);
  color: var(--off-white); padding: 8rem 1.5rem 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: .8rem; }
.page-hero p { color: rgba(250,250,250,.78); max-width: 680px; margin: 0 auto; }
.page-hero .hero-eyebrow { opacity: 1; animation: none; margin-bottom: .8rem; }
.breadcrumbs { font-size: .8rem; margin-bottom: 1rem; color: rgba(250,250,250,.55); }
.breadcrumbs a { color: var(--gold); text-decoration: none; }

/* ── ARTICLE (guides) ── */
.article { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.article h2 { font-family: var(--serif); font-size: 1.7rem; margin: 2.4rem 0 .8rem; line-height: 1.3; }
.article h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.article p, .article li { font-size: 1.04rem; margin-bottom: .9rem; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article a { color: var(--terracotta-dark); font-weight: 500; }
.article table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .96rem; background: var(--white); }
.article th, .article td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid rgba(26,26,26,.1); }
.article th { background: var(--charcoal); color: var(--gold); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout {
  background: rgba(218,165,32,.12); border-left: 4px solid var(--gold); padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0; margin: 1.4rem 0; font-size: .97rem;
}
.callout.warn { background: rgba(193,105,60,.1); border-color: var(--terracotta); }
.article .updated { font-size: .85rem; color: var(--muted); }
.toc { background: var(--white); border-radius: 8px; padding: 1.2rem 1.4rem; margin: 1.5rem 0; border: 1px solid rgba(26,26,26,.08); }
.toc strong { display: block; margin-bottom: .4rem; }
.toc ol { margin: 0; }
.toc li { margin-bottom: .2rem; font-size: .95rem; }
.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid rgba(26,26,26,.1); margin-top: 2.5rem; padding-top: 1rem; }
.cta-band {
  background: var(--charcoal); color: var(--off-white); border-radius: 12px; padding: 2rem; text-align: center; margin-top: 3rem;
}
.cta-band h2 { color: var(--off-white); margin-top: 0; }
.cta-band .btn-primary { opacity: 1; animation: none; }
.symbol-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 1.2rem 0 2rem; }
.symbol { background: var(--white); border-radius: 10px; padding: 1.2rem; border: 1px solid rgba(26,26,26,.08); }
.symbol h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.symbol em { display: block; color: var(--terracotta-dark); font-size: .88rem; margin-bottom: .4rem; }
.symbol p { font-size: .93rem; margin: 0; color: var(--muted); }

/* ── DIRECTORY ── */
.dir-filters { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.dir-filters input, .dir-filters select {
  font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem; border-radius: 4px;
  border: 1px solid rgba(26,26,26,.18); background: var(--white); min-width: 220px;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.chips a {
  font-size: .85rem; padding: .35rem .9rem; border-radius: 20px; text-decoration: none;
  background: var(--white); color: var(--charcoal); border: 1px solid rgba(26,26,26,.12);
}
.chips a:hover, .chips a.active { background: var(--charcoal); color: var(--gold); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  padding: .5rem .9rem; border-radius: 4px; background: var(--white); text-decoration: none; color: var(--charcoal);
  border: 1px solid rgba(26,26,26,.12);
}
.pagination .current { background: var(--charcoal); color: var(--gold); }
.listing-detail { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.listing-media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; }
.listing-media iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin-bottom: 1.5rem; }
.listing-facts { display: flex; gap: 1rem 2rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.listing-facts a { color: var(--terracotta-dark); font-weight: 600; }
.listing-body { font-size: 1.05rem; white-space: pre-line; }
.login-prompt { background: var(--white); border: 1px dashed rgba(218,165,32,.7); border-radius: 10px; padding: 1.3rem; margin-top: 2rem; text-align: center; }

/* Hide the '|' separators when values render as chips on mobile */
.hero-values span:not(:last-child)::after { content: ' |'; }
@media (max-width: 480px) { .hero-values span:not(:last-child)::after { content: none; } }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-headline, .hero-sub, .hero-lead, .btn-primary, .btn-ghost { opacity: 1; }
}
