/* ============================================================
   EIPL — Emotional Intelligence Practice Lab
   Palette: cream bg, deep teal primary, sage accent, warm text
   ============================================================ */

html { color-scheme: light; }

:root {
  --cream:       #F5F2EC;
  --cream-alt:   #EDE9E1;
  --teal:        #2C5F6A;
  --teal-dark:   #1E4550;
  --sage:        #6B8F71;
  --text:        #2E2A25;
  --text-muted:  #6B6460;
  --white:       #FFFFFF;
  --border:      #D9D4CB;
  --radius:      10px;
  --max-width:   1100px;
  --narrow:      720px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--teal-dark); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--teal-dark); margin-bottom: 1.2rem; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--teal); margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1rem;
  color: var(--teal);
  font-style: italic;
  margin-top: 1.2rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: var(--narrow);
}
.section {
  padding: 5rem 1.5rem;
}
.section-alt {
  background: var(--cream-alt);
}
.center-text { text-align: center; }
.center-cta  { text-align: center; margin-top: 2.5rem; }

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo img {
  height: 70px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--teal);
}

/* ---- Hero ---- */
.hero {
  padding: 0.5rem 1.5rem 5rem;
  text-align: center;
  background: var(--cream);
}
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Georgia', serif;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Georgia', serif;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---- Three-col grid ---- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ---- Logo display (above What is EIPL) ---- */
.logo-display {
  padding: 1.5rem 1.5rem 0;
  background: var(--cream);
  text-align: center;
}
.logo-display img {
  max-width: 520px;
  width: 70%;
  margin: 0 auto;
}

/* ---- Plain cards (What This Is) ---- */
.card-plain {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.card-plain p { color: var(--text-muted); margin: 0; }
.card-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.card-no   { display: block; font-size: 1.5rem; color: #cc2200; margin-bottom: 0.5rem; font-weight: 700; }
.card-yes  { border-color: var(--sage); }
.card-yes p { color: var(--text); font-weight: 600; }
.card-check { display: block; font-size: 1.5rem; color: var(--sage); margin-bottom: 0.5rem; }

/* ---- Session cards ---- */
.session-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.session-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.session-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.session-card h3 { color: var(--teal); padding: 1.2rem 1.5rem 0.4rem; }
.session-card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; padding: 0 1.5rem 1.5rem; }

/* ---- Steps ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p   { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---- Events list ---- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}
.event-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.event-date-block {
  flex-shrink: 0;
  text-align: center;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  min-width: 64px;
}
.event-date-block .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}
.event-date-block .day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.event-card--full {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.event-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.event-card-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
}
.event-info { flex: 1; }
.event-info h3 { color: var(--teal-dark); margin-bottom: 0.3rem; }
.event-info .event-time { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.event-info p  { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.event-info .btn-primary { font-size: 0.9rem; padding: 0.6rem 1.4rem; }

/* ---- GPT grid ---- */
.gpt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.gpt-grid--featured {
  grid-template-columns: 1fr;
  max-width: 480px;
}
.gpt-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.btn-coming-soon {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
  cursor: default;
  margin-top: 0.5rem;
}
.gpt-card {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.gpt-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--cream-alt);
  color: var(--teal);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.gpt-label--current  { background: var(--teal); color: var(--white); border-color: var(--teal); }
.gpt-label--popular  { background: var(--sage); color: var(--white); border-color: var(--sage); }
.gpt-label--start    { background: var(--cream-alt); color: var(--teal-dark); }
.gpt-card h3 { color: var(--teal-dark); margin: 0; }
.gpt-card .gpt-author { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.gpt-card .gpt-desc   { font-size: 0.95rem; color: var(--text-muted); flex: 1; margin: 0; }
.gpt-card .btn-primary { font-size: 0.9rem; padding: 0.6rem 1.4rem; align-self: flex-start; margin-top: 0.5rem; }

/* ---- Founder section ---- */
.founder-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.founder-photo {
  flex-shrink: 0;
  width: 200px;
}
.founder-photo img {
  width: 100%;
  border-radius: 50%;
  display: block;
}
.founder-text h2 { margin-bottom: 1.2rem; }
.founder-sig {
  font-style: italic;
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .founder-row {
    flex-direction: column;
    align-items: center;
  }
  .founder-photo { width: 160px; }
}

/* ---- About session rows ---- */
.about-sessions {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.about-session-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-session-row--reverse { flex-direction: row-reverse; }
.about-session-img {
  flex-shrink: 0;
  width: 240px;
  height: 180px;
  overflow: hidden;
}
.about-session-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about-session-text {
  padding: 1.5rem 1.5rem 1.5rem 0;
  flex: 1;
}
.about-session-row--reverse .about-session-text {
  padding: 1.5rem 0 1.5rem 1.5rem;
}
.about-session-text h3 { color: var(--teal); margin-bottom: 0.5rem; }
.about-session-text p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 768px) {
  .about-session-row,
  .about-session-row--reverse { flex-direction: column; }
  .about-session-img { width: 100%; height: 180px; }
  .about-session-text,
  .about-session-row--reverse .about-session-text { padding: 1.2rem; }
}

/* ---- Footer note ---- */
.footer-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--teal-dark);
  padding: 3rem 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  height: 56px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---- Loading state ---- */
.loading { color: var(--text-muted); font-style: italic; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.8rem 2rem;
  }
  .nav-toggle { display: block; }

  .three-col       { grid-template-columns: 1fr; }
  .gpt-grid        { grid-template-columns: 1fr; }
  .gpt-grid--three { grid-template-columns: 1fr; }

  .event-card {
    flex-direction: column;
    gap: 1rem;
  }
  .event-card-body {
    flex-direction: column;
    gap: 1rem;
  }
  .event-date-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    min-width: auto;
    align-self: flex-start;
  }
  .event-date-block .month { font-size: 0.8rem; }
  .event-date-block .day   { font-size: 1.2rem; }

  .hero    { padding: 4rem 1.5rem 3.5rem; }
  .section { padding: 3.5rem 1.5rem; }
}
