/* ============================================
   Curious Cat Club — curiouscatclub.com
   Warm treehouse theme, kid-friendly & polished
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --cream: #FFF8F0;
  --warm-beige: #F5E6D3;
  --wood-light: #D4A574;
  --wood-medium: #B8834A;
  --wood-dark: #8B5E3C;
  --purple-deep: #5B3A8C;
  --purple-light: #7B52B5;
  --purple-glow: #9B6FD4;
  --green-leaf: #6BBF59;
  --green-dark: #4A9E3A;
  --sky-blue: #87CEEB;
  --gold: #F5C842;
  --coral: #FF7F6B;
  --text-dark: #3D2B1F;
  --text-medium: #5C4033;
  --text-light: #7A6455;
  --shadow-soft: rgba(139, 94, 60, 0.15);
  --shadow-medium: rgba(139, 94, 60, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a {
  color: var(--purple-deep);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--purple-light); }

/* ---- Navigation ---- */

.navbar {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(91, 58, 140, 0.3);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-light) 40%, var(--sky-blue) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .app-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero .tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #F0B020);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.4);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  color: white;
  box-shadow: 0 4px 12px rgba(91, 58, 140, 0.3);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-leaf), var(--green-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(107, 191, 89, 0.3);
}

/* ---- Sections ---- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Feature Cards ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--purple-glow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ---- Character Cards ---- */

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.character-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-soft);
  transition: transform 0.3s;
}
.character-card:hover {
  transform: scale(1.03);
}

.character-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.character-card h3 {
  color: var(--wood-dark);
  margin-bottom: 0.25rem;
}

.character-card .role {
  color: var(--purple-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.character-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ---- Avatars ---- */

.avatars-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.avatars-row img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--warm-beige);
  padding: 8px;
  box-shadow: 0 3px 10px var(--shadow-soft);
  transition: transform 0.3s;
}
.avatars-row img:hover { transform: scale(1.1) rotate(5deg); }

/* ---- Wood Panel (for policy/support pages) ---- */

.wood-panel {
  background: linear-gradient(180deg, #F5E6D3, #EDD9C4);
  border: 3px solid var(--wood-medium);
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  margin: 3rem auto;
  box-shadow: 0 6px 24px var(--shadow-medium);
}

.wood-panel h1 {
  color: var(--wood-dark);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.wood-panel .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.wood-panel h2 {
  color: var(--wood-dark);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.wood-panel p, .wood-panel li {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.7;
}

.wood-panel ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.wood-panel li {
  margin-bottom: 0.4rem;
}

/* ---- Contact Form ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.85rem 1rem;
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--purple-light);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- FAQ ---- */

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.faq-item h3 {
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* ---- Footer ---- */

.footer {
  background: linear-gradient(135deg, var(--wood-dark), #6B4226);
  color: var(--warm-beige);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer a {
  color: var(--warm-beige);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.footer a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---- Page Header (non-home pages) ---- */

.page-header {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  padding: 3rem 2rem 4rem;
  text-align: center;
  color: white;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-header h1 {
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2.2rem; }
  .hero .app-icon { width: 120px; height: 120px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .wood-panel { margin: 2rem 1rem; padding: 2rem 1.5rem; }
  .section { padding: 3rem 1.5rem; }

  .avatars-row img { width: 70px; height: 70px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: 1fr 1fr; }
}
