/* 
   Zzorp Website Brand Style Sheet
   Colors: Teal, Orange, Yellow, White background
   Font: Fredoka
*/

/* Core Custom Properties */
:root {
  --teal-primary: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #f0fdfa;
  
  --orange-primary: #ea580c;
  --orange-dark: #c2410c;
  --orange-light: #fff7ed;
  
  --yellow-primary: #eab308;
  --yellow-dark: #ca8a04;
  --yellow-light: #fefce8;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-offset: #fafafa;
  --bg-gray-light: #f1f5f9;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  --box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.08);
  --box-shadow-large: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --box-shadow-hover: 0 20px 35px -10px rgba(13, 148, 136, 0.15);
  
  --font-family: 'Fredoka', sans-serif;
  --container-width: 1200px;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility Containers & Grids */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-center {
  text-align: center;
}

.align-center {
  align-items: center;
}

.max-width-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.full-width {
  width: 100%;
}

/* Section Header Styles */
.section-header {
  margin-bottom: 48px;
}

.section-tagline {
  display: inline-block;
  color: var(--teal-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Common Card Base Styling */
.card {
  background: var(--bg-main);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 2px solid transparent;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.border-teal {
  border-color: rgba(13, 148, 136, 0.15);
}
.border-teal:hover {
  border-color: var(--teal-primary);
}

.border-orange {
  border-color: rgba(234, 88, 12, 0.15);
}
.border-orange:hover {
  border-color: var(--orange-primary);
}

.border-yellow {
  border-color: rgba(234, 179, 8, 0.15);
}
.border-yellow:hover {
  border-color: var(--yellow-primary);
}

.border-gray {
  border-color: var(--bg-gray-light);
}

/* Buttons Base Styling */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-teal {
  background-color: var(--teal-primary);
  color: var(--bg-main);
}
.btn-teal:hover {
  background-color: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.btn-orange {
  background-color: var(--orange-primary);
  color: var(--bg-main);
}
.btn-orange:hover {
  background-color: var(--orange-dark);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}

.btn-yellow {
  background-color: var(--yellow-primary);
  color: var(--text-main);
}
.btn-yellow:hover {
  background-color: var(--yellow-dark);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.25);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--bg-gray-light);
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s;
}

.main-navigation {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--teal-primary);
}

.nav-btn-primary {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--teal-light);
  color: var(--teal-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--border-radius-xl);
  border: 2px solid var(--teal-primary);
  transition: all 0.2s;
}

.nav-btn-primary:hover {
  background-color: var(--teal-primary);
  color: var(--bg-main);
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-main);
    border-bottom: 2px solid var(--bg-gray-light);
    padding: 24px;
    box-shadow: var(--box-shadow-large);
  }
  
  .main-navigation.is-open {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  
  .header-cta-btn {
    display: block;
    margin-top: 8px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--bg-main);
  padding: 80px 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .hero-content {
    flex: 1;
    max-width: 580px;
  }
  .hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

.age-badge {
  display: inline-block;
  background-color: var(--teal-light);
  color: var(--teal-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 16px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions .btn {
  flex: 1 1 200px;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

/* Hero Space Decorations */
.space-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.planet-teal {
  top: 15%;
  right: -50px;
  width: 100px;
  height: 100px;
  background-color: var(--teal-light);
  border: 4px solid var(--teal-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.planet-orange {
  bottom: 10%;
  left: -30px;
  width: 70px;
  height: 70px;
  background-color: var(--orange-light);
  border: 4px solid var(--orange-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.star-yellow-1 {
  top: 10%;
  left: 10%;
  width: 20px;
  height: 20px;
  background-color: var(--yellow-primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.5;
}

.star-yellow-2 {
  bottom: 20%;
  right: 45%;
  width: 16px;
  height: 16px;
  background-color: var(--yellow-primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.6;
}

/* Sections Base Layout */
section {
  padding: 80px 0;
}

.bg-yellow-light {
  background-color: var(--yellow-light);
}

.bg-gray-light {
  background-color: var(--bg-offset);
}

/* Intro Section Character Profiles */
.characters-grid {
  margin-top: 48px;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-img-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 3px solid transparent;
}

.border-teal .character-img-wrapper {
  background-color: var(--teal-light);
  border-color: rgba(13, 148, 136, 0.2);
}

.border-orange .character-img-wrapper {
  background-color: var(--orange-light);
  border-color: rgba(234, 88, 12, 0.2);
}

.border-yellow .character-img-wrapper {
  background-color: var(--yellow-light);
  border-color: rgba(234, 179, 8, 0.2);
}

.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-role {
  font-weight: 700;
  color: var(--teal-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.character-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.premise-box {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  background-color: var(--teal-light);
  border: 2px dashed rgba(13, 148, 136, 0.3);
  font-size: 1.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Learning Approach Section */
.workflow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .workflow-container {
    flex-direction: row;
    justify-content: space-between;
    max-width: 100%;
  }
}

.workflow-step {
  flex: 1;
  text-align: center;
  background: var(--bg-main);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  border: 2px solid var(--bg-gray-light);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--teal-primary);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.workflow-step h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.workflow-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.workflow-arrow {
  font-size: 2rem;
  color: var(--teal-primary);
  font-weight: 700;
}

@media (min-width: 992px) {
  .workflow-arrow {
    transform: rotate(-90deg);
  }
}

/* Distinction Callout */
.highlight-block {
  margin-top: 64px;
  padding: 48px;
  border-radius: var(--border-radius-lg);
}

.bg-teal-light {
  background-color: var(--teal-light);
  border: 2px solid rgba(13, 148, 136, 0.1);
}

.highlight-block h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.distinction-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.distinction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .distinction-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.distinction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-main);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(13, 148, 136, 0.1);
  text-align: left;
}

.check-icon {
  color: var(--teal-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.dist-text {
  font-size: 0.95rem;
}

.key-question-callout {
  margin-top: 40px;
  padding: 32px;
  background-color: var(--orange-light);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--orange-primary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.question-title {
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.question-explanation {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* The Five-Minute Fork / Story Section */
.story-intro {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.comparison-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  background: var(--bg-offset);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--bg-gray-light);
  max-width: 480px;
}

.comp-item {
  flex: 1;
  text-align: center;
}

.comp-time {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-primary);
}

.comp-vs {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-muted);
}

.comp-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.discussion-note {
  font-size: 1rem;
  color: var(--text-muted);
  border-left: 4px solid var(--orange-primary);
  padding-left: 16px;
  margin-top: 24px;
}

.image-pair {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.image-container {
  display: flex;
  flex-direction: column;
}

.rounded-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  object-fit: cover;
}

.shadow {
  box-shadow: var(--box-shadow);
}

.image-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Resources Cards */
.resource-cards-grid {
  margin-top: 48px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.resource-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 20px;
  border-bottom-left-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bg-main);
}

.teal-bg {
  background-color: var(--teal-primary);
}

.orange-bg {
  background-color: var(--orange-primary);
}

.resource-card h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  margin-top: 12px;
}

.resource-target {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.resource-description {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.resource-features {
  list-style: none;
  margin-bottom: auto; /* Push subsequent elements down */
  padding-bottom: 24px;
}

.resource-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.resource-features li::before {
  content: "•";
  color: var(--teal-primary);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.border-orange .resource-features li::before {
  color: var(--orange-primary);
}

.no-collect-notice {
  background-color: var(--bg-offset);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-weight: bold;
  font-size: 1rem;
  color: var(--teal-primary);
}

.border-orange .info-icon {
  color: var(--orange-primary);
}

/* Book Section */
.book-cover {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

.shadow-large {
  box-shadow: var(--box-shadow-large);
}

.book-details h2 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.book-subtitle {
  font-size: 1.4rem;
  color: var(--orange-primary);
  margin-bottom: 20px;
}

.book-desc {
  margin-bottom: 24px;
}

.book-specs {
  background-color: var(--bg-main);
  padding: 24px;
  border-radius: var(--border-radius-md);
  margin-bottom: 32px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.book-specs p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.book-specs p:last-child {
  margin-bottom: 0;
}

/* Teachers Section */
.curriculum-grid {
  margin-top: 48px;
}

.curriculum-outcomes h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.outcomes-list {
  list-style: none;
}

.outcomes-list li {
  margin-bottom: 20px;
  font-size: 1rem;
}

.outcomes-list li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--teal-primary);
  margin-bottom: 4px;
}

.curriculum-links-box {
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.curriculum-links-box h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.link-category {
  margin-bottom: 20px;
}

.link-category:last-child {
  margin-bottom: 0;
}

.link-category h5 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 4px;
  font-weight: 700;
}

.link-category p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About Creator */
.creator-title {
  font-size: 1.6rem;
  color: var(--teal-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.creator-visual .creator-img {
  max-width: 400px;
  width: 100%;
}

/* Footer styling */
.site-footer {
  background-color: var(--bg-offset);
  border-top: 2px solid var(--bg-gray-light);
  padding: 48px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-primary);
}

/* Media Query adjustments for layout components */
@media (max-width: 991px) {
  section {
    padding: 60px 0;
  }
  .hero-section {
    padding: 40px 0;
  }
  .comparison-box {
    margin: 24px auto;
  }
}

/* Accessibility: prefers-reduced-motion compatibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  .card, .btn, .nav-btn-primary, .nav-item {
    transition: none !important;
    transform: none !important;
  }
}
