/* ============================================================
   Active Listening League — style.css
   ============================================================ */

:root {
  --bg:          #7bf7fd;   /* bright aqua background */
  --nav:         #008B8B;   /* dark teal nav bar */
  --btn:         #005f6b;   /* darkest cyan buttons */
  --card-head:   #005f6b;   /* darkest cyan — headings */
  --card-body:   #006f7a;   /* dark cyan — body text */
  --form-text:   #005f6b;   /* darkest cyan — text inside form fields */
  --white:       #ffffff;
  --yellow:      #FFE833;   /* bright sunshine yellow */
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--card-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  background: var(--nav);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.nav-brand .brand-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.nav-brand .brand-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--yellow);
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(0,0,0,0.2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* ── Main Content ──────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

/* ── White Card ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* Interior pages: narrower card, ~78% width, leaves room for sunburst on right */
.page-card {
  max-width: 78%;
}

/* ── Typography ────────────────────────────────────────────── */
h1 {
  font-family: 'Lora', serif;
  color: var(--card-head);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
h2 {
  font-family: 'Lora', serif;
  color: var(--card-head);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}
h3 {
  font-family: 'Lora', serif;
  color: var(--card-body);
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

p  { line-height: 1.7; margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; line-height: 1.7; }
li { margin-bottom: 0.5rem; }
a  { color: var(--btn); }
a:hover { color: var(--card-head); }
strong { color: var(--card-head); }

/* ── Hero (index.html) ─────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.hero-video { flex: 1 1 55%; min-width: 0; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hero-burst {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Content + Form Row ────────────────────────────────────── */
.content-form-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}
.content-col { flex: 1 1 55%; min-width: 0; }
.form-col    { flex: 0 0 300px; min-width: 0; }

/* ── Signup Form ───────────────────────────────────────────── */
.signup-box {
  background: var(--nav);
  border-radius: 12px;
  padding: 1.5rem;
}
.signup-box h2 {
  color: var(--white);
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}
.signup-box .sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  font-style: italic;
}
.signup-box label {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.03em;
}
.signup-box input[type=text],
.signup-box input[type=email],
.signup-box input[type=tel],
.signup-box select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  background: #ffffff;
  color: var(--form-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}
.signup-box input::placeholder { color: #7aa8ad; }
.signup-box input:focus,
.signup-box select:focus {
  outline: none;
  border-color: var(--yellow);
}
.signup-box select         { color: var(--form-text); }
.signup-box select option  { color: var(--form-text); background: #fff; }

.disclaimer {
  color: rgba(255,255,255,0.82);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.checkbox-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.checkbox-row label {
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 400;
}
.checkbox-row a { color: var(--yellow); }

.btn-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--yellow);
  color: var(--card-head);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ── Sunburst ──────────────────────────────────────────────── */
.burst {
  display: inline-block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.burst.sz-200 { width: 200px; height: 200px; }
.burst.sz-240 { width: 240px; height: 240px; }

.burst .rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
  transform-origin: center center;
}
.burst:hover .rays { animation-duration: 5s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.burst .core {
  position: absolute;
  inset: 0;
  margin: 14%;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.no-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.no-row   { display: flex; align-items: baseline; gap: 3px; }

.no-word {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 0.85em;
  color: var(--btn);
  letter-spacing: -0.02em;
}
.rest-word {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.75em;
  color: var(--card-head);
  letter-spacing: -0.02em;
}
.indent-row {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.7em;
  color: var(--card-head);
  padding-left: 0.4em;
  letter-spacing: -0.02em;
}
.burst .divider {
  width: 60%;
  height: 2px;
  background: var(--btn);
  margin: 6px 0;
  border-radius: 1px;
}
.bottom-half { text-align: center; }
.free-text {
  font-family: 'Abril Fatface', cursive;
  font-size: 1.6em;
  color: var(--btn);
  line-height: 1;
}
.live-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.55em;
  color: var(--card-body);
  letter-spacing: 0.02em;
}

.burst.sz-200 .core { font-size: 0.83rem; }
.burst.sz-240 .core { font-size: 1rem; }

/* ── Floating sunburst (interior pages) ──────────────────── */
.float-burst-wrap {
  position: fixed;
  top: 0;
  bottom: 0;
  right: calc(50% - 550px);
  width: calc(1100px * 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 200;
}
.float-burst-wrap a {
  pointer-events: all;
}

@media (max-width: 1300px) {
  .float-burst-wrap {
    position: fixed;
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    width: auto;
    display: block;
  }
  .float-burst-wrap .burst.sz-200 { width: 150px; height: 150px; }
  .float-burst-wrap .burst.sz-200 .core { font-size: 0.63rem; }
  .page-card { max-width: 100%; }
}

/* ── Page-specific ─────────────────────────────────────────── */
.research-entry {
  border-left: 4px solid var(--btn);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.research-entry p   { margin: 0; }
.research-entry .doi { font-size: 0.85rem; }

.essay-list { list-style: none; margin: 0; padding: 0; }
.essay-list li { border-bottom: 1px solid rgba(8,61,71,0.12); padding: 1rem 0; }
.essay-list li:last-child { border-bottom: none; }
.essay-list a { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700; color: var(--card-head); text-decoration: none; }
.essay-list a:hover { text-decoration: underline; }
.essay-meta { font-size: 0.82rem; color: var(--card-body); margin-top: 0.25rem; }

.essay-content { max-width: 700px; }
.essay-content p { font-size: 1.05rem; }
.essay-content blockquote {
  border-left: 4px solid var(--btn);
  padding-left: 1rem;
  color: var(--card-body);
  font-style: italic;
  margin: 1rem 0;
}

.tos-content h2 { margin-top: 2rem; }
.tos-content h3 { margin-top: 1.5rem; }
.tos-content .emergency-banner {
  background: #fef2f2; border: 2px solid #ef4444; border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  color: #991b1b; font-weight: 600; font-size: 0.95rem; line-height: 1.6;
}

.live-class-hero { text-align: center; padding: 2rem 0 1rem; }
.live-class-hero h1 { font-size: 2.2rem; }
.about-section { margin-bottom: 1.5rem; }
.about-section h2 { margin-bottom: 0.5rem; }

.not-found { text-align: center; padding: 4rem 1rem; }
.not-found .big-num { font-family: 'Lora', serif; font-size: 8rem; color: var(--white); opacity: 0.4; line-height: 1; }
.not-found h1 { color: var(--white); margin: 0.5rem 0; }
.not-found p  { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.not-found a.btn {
  display: inline-block; background: var(--yellow); color: var(--card-head);
  font-weight: 700; padding: 0.75rem 2rem; border-radius: 10px; text-decoration: none;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--nav);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.82rem;
  margin-top: auto;
}
footer a { color: var(--yellow); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero { flex-direction: column; gap: 1.5rem; }
  .hero-video { flex: none; width: 100%; }
  .hero-burst .burst.sz-200 { width: 160px; height: 160px; }
  .hero-burst .burst.sz-200 .core { font-size: 0.68rem; }

  .content-form-row { flex-direction: column; }
  .form-col { flex: none; width: 100%; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--nav); padding: 1rem; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; display: block; }
  .hamburger { display: flex; }
  nav { position: relative; }

  main { padding: 1.25rem 1rem 6rem; }
  h1 { font-size: 1.6rem; }
  .not-found .big-num { font-size: 5rem; }

  .float-burst-wrap .burst.sz-200 { width: 110px; height: 110px; }
  .float-burst-wrap .burst.sz-200 .core { font-size: 0.46rem; }
}
