/* ============================================================
   Trunk Heaven Sanctuary — Full Site
   Extends style.css (shared palette/type tokens + the coming-soon
   page's .hero/.footer/.signup components) with the additional
   layout patterns the full multi-page site needs: nav, content
   bands, cards, and a clearly-marked placeholder style for content
   still awaited from the client.
   ============================================================ */

/* ---------------------------------------------------------
   Draft banner — shown while this site is a work-in-progress
   for client review, not yet public. Remove this whole block
   (and its markup in each page) once the site is ready to launch.
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   Hero photo — overrides the coming-soon page's gradient/texture
   placeholder (style.css) now that real sanctuary photography
   exists. Scoped to site.css so the root coming-soon page (which
   doesn't load this file) is untouched.
   --------------------------------------------------------- */

.hero {
  background:
    linear-gradient(180deg, rgba(20, 28, 17, 0.35), rgba(20, 28, 17, 0.8)),
    url("images/elephants-hero.jpg") center/cover no-repeat;
}

/* ---------------------------------------------------------
   Photo figures — real sanctuary photography used throughout
   the full site, with an honest caption crediting the source.
   --------------------------------------------------------- */

.th-photo {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin: 2rem 0 0.75rem;
}

.th-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.th-photo-caption {
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.6;
  margin: 0 0 1.5rem;
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */

.th-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
  border-bottom: 1px solid rgba(43, 33, 25, 0.08);
}

.th-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.th-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bark);
  text-decoration: none;
}

.th-nav__brand-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
  color: var(--bark);
  opacity: 1;
  flex-shrink: 0;
}

.th-nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.th-nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bark);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.th-nav__links a:hover,
.th-nav__links a.is-active {
  opacity: 1;
  color: var(--clay);
}

/* ---------------------------------------------------------
   Content bands
   --------------------------------------------------------- */

.th-band {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.th-band--light {
  background: var(--ivory);
  color: var(--bark);
}

.th-band--dark {
  background: var(--forest-dark);
  color: var(--ivory);
}

.th-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.th-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
  font-weight: 700;
}

.th-band--dark .th-eyebrow {
  color: var(--gold);
}

.th-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.th-lede {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  max-width: 42em;
  margin: 0 0 1.5rem;
  opacity: 0.88;
}

.th-body {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 42em;
  opacity: 0.85;
}

.th-body + .th-body {
  margin-top: 1.1rem;
}

.th-body a,
.th-faq__a a,
.th-card__text a,
.th-placeholder a {
  color: var(--clay);
  text-decoration-color: rgba(181, 114, 63, 0.5);
}

.th-band--dark .th-body a,
.th-band--dark .th-faq__a a,
.th-band--dark .th-card__text a,
.th-band--dark .th-placeholder a {
  color: var(--gold);
  text-decoration-color: rgba(207, 157, 78, 0.5);
}

/* ---------------------------------------------------------
   Checklist (Why Hands-Off)
   --------------------------------------------------------- */

.th-checklist {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
}

.th-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.th-checklist li::before {
  content: "—";
  color: var(--clay);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Card grids
   --------------------------------------------------------- */

.th-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.th-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.th-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.th-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.th-card {
  padding: 1.85rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(43, 33, 25, 0.1);
  background: rgba(43, 33, 25, 0.03);
}

.th-band--dark .th-card {
  border-color: rgba(246, 239, 225, 0.14);
  background: rgba(246, 239, 225, 0.05);
}

.th-card__letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.th-band--light .th-card__letter {
  color: var(--clay);
}

.th-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.th-band--dark .th-card__eyebrow {
  color: var(--gold);
}

.th-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.th-card__text {
  font-size: 0.93rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

.th-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* Elephant portrait — an illustrated stand-in until real photos
   arrive. Swap the inner <svg> for a real photo <img> once
   available; keeps the same rounded-frame footprint either way. */
.th-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(207, 157, 78, 0.25), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.th-portrait svg {
  width: 100%;
  height: auto;
  color: var(--gold);
  opacity: 0.92;
}

.th-portrait--photo {
  padding: 0;
  background: none;
  overflow: hidden;
}

.th-portrait--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.th-portrait-caption {
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.55;
  margin: 0 0 1.1rem;
  text-align: center;
}

/* ---------------------------------------------------------
   Placeholder callout — for content still awaited from the
   client. Never fill this with invented facts; leave it visible
   as a placeholder until real content replaces it.
   --------------------------------------------------------- */

.th-placeholder {
  margin-top: 0.9rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed currentColor;
  opacity: 0.6;
  border-radius: 10px;
  font-size: 0.78rem;
  font-style: italic;
}

/* ---------------------------------------------------------
   Note callout — confirmed, real information the visitor
   needs to see (safety notes, logistics). Unlike
   .th-placeholder, this is never a stand-in for missing
   content — only use it for facts already in hand.
   --------------------------------------------------------- */

.th-note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--clay);
  background: rgba(180, 83, 58, 0.08);
  border-radius: 0 12px 12px 0;
}

.th-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.th-note p + p {
  margin-top: 0.6rem;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.th-btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  background: var(--clay);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.th-btn:hover {
  background: var(--clay-light);
}

.th-btn:active {
  transform: scale(0.97);
}

.th-btn--ghost {
  background: transparent;
  border: 1px solid rgba(246, 239, 225, 0.5);
  color: var(--ivory);
}

.th-btn--ghost:hover {
  background: rgba(246, 239, 225, 0.1);
}

.th-band--light .th-btn--ghost {
  color: var(--bark);
  border-color: rgba(43, 33, 25, 0.35);
}

.th-band--light .th-btn--ghost:hover {
  background: rgba(43, 33, 25, 0.06);
}

.th-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   Impact flow (Visit → Support → CARE → Impact)
   --------------------------------------------------------- */

.th-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 2.75rem 0 0;
}

.th-flow__step {
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--ivory);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.th-flow__arrow {
  color: var(--clay);
  font-size: 1.3rem;
  opacity: 0.6;
}

/* ---------------------------------------------------------
   Elephant profile page
   --------------------------------------------------------- */

.th-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  max-width: 42em;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(246, 239, 225, 0.06);
  border: 1px solid rgba(246, 239, 225, 0.14);
}

.th-profile-meta div {
  font-size: 0.85rem;
}

.th-profile-meta dt {
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.th-profile-meta dd {
  margin: 0.2rem 0 0;
}

/* ---------------------------------------------------------
   Site footer links (secondary nav: FAQ, Policies, Contact)
   --------------------------------------------------------- */

.th-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.th-footer-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ivory-dim);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.th-footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer .social {
  justify-content: center;
  margin: 0 0 1.25rem;
}

.footer .social__link {
  width: 34px;
  height: 34px;
}

.footer .social__link svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------
   Simple content list (FAQ answers, policy points)
   --------------------------------------------------------- */

.th-faq {
  margin: 2.5rem 0 0;
}

.th-faq__item {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(246, 239, 225, 0.14);
}

.th-band--light .th-faq__item {
  border-bottom-color: rgba(43, 33, 25, 0.12);
}

.th-faq__item:first-child {
  padding-top: 0;
}

.th-faq__q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.th-faq__a {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0;
  max-width: 42em;
}

@media (max-width: 640px) {
  .th-nav__links {
    gap: 1.1rem;
  }
}

.th-card__text + .th-card__text { margin-top: 0.9em; }
.th-note p + p { margin-top: 0.4em; }

/* ---------------------------------------------------------
   Launch additions: nav CTA, program timelines, enquiry form
   --------------------------------------------------------- */

.th-nav__links a.th-nav__cta {
  opacity: 1;
  color: var(--ivory);
  background: var(--clay);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.th-nav__links a.th-nav__cta:hover,
.th-nav__links a.th-nav__cta.is-active {
  color: var(--ivory);
  background: var(--clay-light);
}

.th-timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 46em;
  border-left: 2px solid var(--gold);
}

.th-timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  padding: 0 0 1.6rem 1.5rem;
  position: relative;
}

.th-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.th-timeline__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clay);
  line-height: 1.5;
}

.th-band--dark .th-timeline__time {
  color: var(--gold);
}

.th-timeline__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.th-timeline p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
}

.th-fineprint {
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.7;
  max-width: 46em;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .th-timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.th-enquiry {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .th-enquiry { grid-template-columns: 1fr; gap: 2rem; }
}

.th-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.th-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.th-form__field[hidden] { display: none; }

.th-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.th-form input[type="text"],
.th-form input[type="email"],
.th-form input[type="date"],
.th-form select,
.th-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--bark);
  background: #fff;
  border: 1px solid rgba(24, 24, 26, 0.25);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.th-form input:focus,
.th-form select:focus,
.th-form textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}

.th-form__feedback {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.3em;
  color: var(--forest-dark);
}

.th-form__feedback[data-state="error"] { color: var(--clay); }

.th-enquiry__side {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(24, 24, 26, 0.12);
  background: rgba(24, 24, 26, 0.03);
}

@media (max-width: 1180px) {
  .th-nav__links { gap: 1rem; }
  .th-nav__links a { font-size: 0.8rem; }
}
.th-nav__brand span:last-child { white-space: nowrap; }
.th-nav__links { justify-content: flex-end; }

@media (max-width: 820px) {
  .th-nav { position: static; }
  .th-nav__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 1.25rem; }
  .th-nav__links { justify-content: flex-start; gap: 0.4rem 1rem; }
}

.hero__logo {
  width: clamp(120px, 18vw, 160px);
  margin: 0 auto 1.5rem;
}

.th-band__inner > .th-portrait-caption { max-width: 360px; }

/* Error pages (404 / 403 / 500) */
.th-error { min-height: 60vh; display: flex; align-items: center; }
.th-error .th-band__inner { width: 100%; }
.th-error__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--gold);
  opacity: 0.85;
}
.th-error a:not(.th-btn) { color: var(--gold); }

/* Brand elephant (the logo icon) in the CARE band */
.th-eli {
  float: right;
  width: clamp(110px, 17vw, 190px);
  height: auto;
  aspect-ratio: 118 / 111;
  margin: 0 0 0.75rem 1.5rem;
  -webkit-mask-image: url("images/brand/trunk-heaven-icon-elephant.svg");
  mask-image: url("images/brand/trunk-heaven-icon-elephant.svg");
  color: var(--gold);
  opacity: 1;
  pointer-events: none;
}
.th-care .th-grid { clear: both; }

@media (prefers-reduced-motion: no-preference) {
  .th-eli { transform-origin: 50% 85%; animation: th-eli-sway 5s ease-in-out infinite; }
}
@keyframes th-eli-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-4px); }
}

/* Policy questions form (unlisted page) */
.th-policyform { max-width: 46em; }
.th-q { border: 1px solid rgba(24, 24, 26, 0.15); border-radius: 14px; padding: 1.1rem 1.25rem 1.25rem; margin: 0 0 1.1rem; background: rgba(24, 24, 26, 0.02); }
.th-q legend { font-weight: 700; font-size: 1rem; padding: 0 0.4rem; }
.th-q__proposal { font-size: 0.92rem; line-height: 1.6; margin: 0.25rem 0 0.75rem; opacity: 0.85; }
.th-q__opt { display: block; font-size: 0.95rem; font-weight: 400; margin: 0.35rem 0; cursor: pointer; }
.th-q__opt input { margin-right: 0.5rem; }
.th-q__note { margin-top: 0.6rem; }
.th-q input[type="text"], .th-q textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.95rem; padding: 0.6rem 0.8rem; border: 1px solid rgba(24, 24, 26, 0.25); border-radius: 10px; background: #fff; color: var(--bark); }
.th-form .th-q__opt { font-weight: 400; }
