/* =====================================================
   DEMO INTERACTIONS — Created to Stand Out
   Shared stylesheet for all pages: WD-01, WD-02, WD-03, WD-04
   ===================================================== */

/* ── Smooth scroll ───────────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ── Navigation active states ────────────────────── */
.nav-link[aria-current="page"],
.nav-link.active,
.site-nav a[aria-current="page"],
.site-nav a.active,
.nav-links a[aria-current="page"],
.nav-links a.active {
  border-bottom: 2px solid #c78214;
  padding-bottom: 1px;
}


/* ── Fade-in animation (used by initFadeIn) ─────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-animate {
  opacity: 0;
  animation: fadeInUp 0.55s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .demo-animate { animation: none; opacity: 1; }
}


/* ── Legacy scroll fade-in (WD-01 / WD-03 classes) ─ */
.js-ready section,
.js-ready .s-hero,
.js-ready .s-story,
.js-ready .s-why,
.js-ready .s-believe,
.js-ready .s-building,
.js-ready .s-invite,
.js-ready .hero,
.js-ready .signs-section,
.js-ready .myths-section,
.js-ready .pathways-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-ready .ctso-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready section,
  .js-ready .s-hero, .js-ready .s-story, .js-ready .s-why,
  .js-ready .s-believe, .js-ready .s-building, .js-ready .s-invite,
  .js-ready .hero, .js-ready .signs-section,
  .js-ready .myths-section, .js-ready .pathways-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ── Soft hover on buttons / links ───────────────── */
a { transition: opacity 0.18s ease; }
button { transition: opacity 0.18s ease, background 0.18s ease; }
a:hover { opacity: 0.88; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #c78214;
  outline-offset: 3px;
  border-radius: 3px;
}

.btn-primary:hover, .btn-gold:hover, .btn-outline:hover {
  opacity: 0.88;
  transition: opacity 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  a, button { transition: none !important; }
}


/* ── Coming Soon toast (full-width top bar) ─────── */
.ctso-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 9999;
  background: #123524;
  color: #f6efe6;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 11px 22px 11px 18px;
  border-radius: 8px;
  border-left: 3px solid #c78214;
  box-shadow: 0 4px 20px rgba(18, 53, 36, 0.32);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.ctso-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ctso-toast { transition: none; }
}


/* ── Coming Soon inline tooltip ──────────────────── */
.cs-message {
  display: inline-block;
  background: #f1e8e1;
  border: 1px solid rgba(199,130,20,0.3);
  color: #14110d;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(18,53,36,0.15);
}
.cs-message.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cs-message { transition: none; }
}


/* ── Read Aloud This Section ─────────────────────── */
.ctso-ras {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.ctso-ras__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #123524;
  color: #ffffff;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.ctso-ras__btn:hover { opacity: 0.88; }
.ctso-ras__btn:focus-visible { outline: 2px solid #c78214; outline-offset: 3px; border-radius: 50px; }

.ctso-ras__btn--on-dark {
  background: #f1e8e1;
  color: #123524;
}

.ctso-ras__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ctso-ras__ctrl {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid #123524;
  background: transparent;
  color: #123524;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.ctso-ras__ctrl:hover { background: #123524; color: #f1e8e1; }
.ctso-ras__ctrl:focus-visible { outline: 2px solid #c78214; outline-offset: 3px; border-radius: 50px; }

.ctso-ras__ctrl--on-dark {
  border-color: rgba(241, 232, 225, 0.6);
  color: #f1e8e1;
}
.ctso-ras__ctrl--on-dark:hover { background: #f1e8e1; color: #123524; }

@media (max-width: 540px) {
  .ctso-ras { gap: 8px; }
  .ctso-ras__btn { font-size: 14px; padding: 9px 16px; }
  .ctso-ras__ctrl { font-size: 13px; padding: 6px 14px; }
}


/* ── Voice Guide button ──────────────────────────── */
.ctso-vg-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  background: #123524;
  color: #f6efe6;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 24px;
  border: 1px solid rgba(199, 130, 20, 0.42);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(18, 53, 36, 0.32);
  transition: background 0.15s ease;
}
.ctso-vg-btn:hover { background: #0d271b; }
.ctso-vg-btn:focus-visible { outline: 2px solid #c78214; outline-offset: 3px; }

.ctso-vg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ── Voice Guide modal backdrop ──────────────────── */
.ctso-vg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(18, 53, 36, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ctso-vg-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}


/* ── Voice Guide modal panel ─────────────────────── */
.ctso-vg-panel {
  background: #f1e8e1;
  border-radius: 14px;
  padding: 38px 42px 36px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.22s ease;
  box-shadow: 0 12px 44px rgba(18, 53, 36, 0.26);
}
.ctso-vg-backdrop.open .ctso-vg-panel {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ctso-vg-backdrop,
  .ctso-vg-panel { transition: none; }
}

.ctso-vg-panel__eyebrow {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c78214;
  margin-bottom: 9px;
}

.ctso-vg-panel__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  color: #123524;
  margin-bottom: 4px;
  line-height: 1.1;
}

.ctso-vg-panel__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: #c78214;
  margin-bottom: 22px;
}

.ctso-vg-panel__body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.82;
  color: #14110d;
  margin-bottom: 28px;
}

.ctso-vg-close {
  background: #123524;
  color: #f6efe6;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  padding: 11px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ctso-vg-close:hover { background: #0d271b; }
.ctso-vg-close:focus-visible { outline: 2px solid #c78214; outline-offset: 3px; }
