/* 
  Site: Tempopanda Questn
  Theme: Lilac Winter Almanac
*/

:root {
  /* Dynamic Palette (Strictly No Blue) */
  --bg-canvas: #f3f0fa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #faf5ff;
  --text-primary: #334155;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --accent-primary: #9333ea;
  --accent-secondary: #7e22ce;
  --border-subtle: #e2e8f0;
  --divider-line: #cbd5e1;
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 4px 12px rgba(0, 0, 0, 0.05);
  
  /* Layout constraints */
  --max-content: 1100px;
  --radius-sm: 4px;
}

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

html {
  lang: en;
  scroll-behavior: smooth;
}

body {
  font-family: 'Charter', 'Cambria', 'Georgia', serif;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1.125rem;
  /* System Rule: Never overflow-x: hidden on html or body. */
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: normal;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; border-bottom: 1px solid var(--divider-line); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p { margin-bottom: 1.5rem; max-width: 72ch; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-kinetic);
}

a:hover {
  color: var(--accent-secondary);
}

/* Image constraints */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

img.cover {
  width: 100%;
  object-fit: cover;
}

/* Structure & Layout */
.content-col {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-col {
  max-width: 72ch;
  margin: 0 auto;
}

/* Tonal Bands (Alternating full-width sections) */
.band-light {
  background-color: var(--bg-surface);
  padding: 5rem 0;
  width: 100%;
}

.band-tonal {
  background-color: var(--bg-canvas);
  padding: 6rem 0;
  width: 100%;
  /* Gentle diagonal clip-path edges */
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  margin: -1rem 0;
  position: relative;
  z-index: 1;
}

/* Header & Brand (Desktop/Mobile) */
.site-header {
  position: relative; /* Moves up on scroll */
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  z-index: 100;
}

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

/* Brand at far left, NEVER centered */
.brand-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
}

/* Navigation - small caps */
.site-nav {
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: center; /* Nav row beneath brand is centered */
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  font-variant: small-caps;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-primary);
  background-image: linear-gradient(rgba(51, 65, 85, 0.6), rgba(51, 65, 85, 0.7)), url('images/hero-multigenerational-singing.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-inverse);
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  color: var(--text-inverse);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 20ch;
  margin: 0 auto 1.5rem auto;
  border: none;
}

.hero p {
  font-size: 1.25rem;
  max-width: 60ch;
  margin: 0 auto 2rem auto;
  color: #f1f5f9;
}

/* Buttons and Actions */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-kinetic), transform 0.3s var(--ease-kinetic);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  color: var(--accent-primary);
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0;
  margin-left: 1rem;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.btn-secondary:hover::after {
  width: 100%;
}

/* Icon-led List Rows (Replacing Cards) */
.topic-list {
  list-style: none;
  margin: 2rem 0;
}

.topic-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider-line);
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.topic-content {
  flex-grow: 1;
}

.topic-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.topic-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.topic-action {
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.05em;
  position: relative;
}

.topic-action::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}
.topic-action:hover::after {
  width: 100%;
}

/* Forms (Contact Tool) */
.tool-form {
  background: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-canvas);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

/* Margin Source Notes */
.source-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--divider-line);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* FAQ List */
.faq-list {
  list-style: none;
}
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--divider-line);
}
.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* Footer Colophon */
.site-footer {
  border-top: 2px solid var(--divider-line);
  padding: 4rem 1.5rem 2rem 1.5rem;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: var(--max-content);
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-variant: small-caps;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border: none;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Animation & Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
  }
  .site-nav.active {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .topic-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .band-tonal {
    clip-path: polygon(0 1%, 100% 0, 100% 99%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
