/*
Theme Name: Pico the Parrot
Theme URI: https://picotheparrot.com
Author: Dr. Frederic Pearl (Stooge)
Description: Custom theme for picotheparrot.com — the world of Pico the Parrot.
Version: 1.0.0
*/

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=Caveat:wght@400;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --green:    #3A7D3A;
  --yellow:   #F5C200;
  --coral:    #E8603C;
  --pink:     #D4447A;
  --purple:   #0e6655;
  --blue:     #2A6BAD;
  --offwhite: #FFFDF5;
  --dark:     #1A1A1A;
  --section-pad: clamp(3rem, 8vw, 6rem);
  --content-max: 1100px;
  --radius: 12px;
  --shadow: 0 6px 28px rgba(0,0,0,0.18);
  --shadow-soft: 0 3px 14px rgba(0,0,0,0.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--offwhite);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container {
  width: 90%;
  max-width: var(--content-max);
  margin-inline: auto;
}

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,26,26,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--offwhite);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-brand svg { width: 28px; height: 28px; }

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

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,194,0,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--offwhite); border-radius: 2px;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26,26,26,0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child { padding: 1rem 1.5rem; }
  .nav-cta { display: inline-flex; width: auto; }
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, #0a2e1a 0%, #0e4a2e 40%, #082a18 100%);
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 60%, rgba(245,194,0,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(232,96,60,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 92%;
  max-width: 1200px;
  position: relative; z-index: 1;
}

.hero-text { color: var(--offwhite); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,194,0,0.15);
  border: 1px solid rgba(245,194,0,0.4);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--yellow); }

.hero-byline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: rgba(255,253,245,0.7);
  margin-bottom: 1.6rem;
}
.hero-byline a { color: var(--coral); border-bottom: 1px solid rgba(232,96,60,0.4); }
.hero-byline a:hover { color: var(--yellow); }

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(255,253,245,0.75);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--yellow); color: var(--dark);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem; border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,194,0,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,253,245,0.8); font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,253,245,0.3); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--yellow); border-color: var(--yellow); }

.hero-image-wrap {
  display: flex; justify-content: center; align-items: flex-end;
}

.hero-poster {
  width: 100%; max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-bottom: 3rem; }
  .hero-eyebrow, .hero-desc { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-image-wrap { order: -1; margin-top: 1rem; }
  .hero-poster { max-width: 260px; }
}

/* ── KICKSTARTER BANNER ── */
.ks-banner {
  background: var(--coral);
  padding: 2rem 0;
  position: relative; overflow: hidden;
}
.ks-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 18px);
}
.ks-banner .container {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.ks-left { display: flex; align-items: center; gap: 1.2rem; }
.ks-badge {
  background: rgba(0,0,0,0.2); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 6px; white-space: nowrap;
}
.ks-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900; color: #fff; line-height: 1.2;
}
.ks-text p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-top: 0.2rem; }
.btn-ks {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--coral);
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.8rem; border-radius: 100px; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-ks:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

@media (max-width: 600px) {
  .ks-banner .container { justify-content: center; text-align: center; }
  .ks-left { flex-direction: column; align-items: center; gap: 0.6rem; }
}

/* ── SECTION COMMON ── */
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.65; margin-bottom: 0.6rem;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--dark);
  line-height: 1.1; margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 1.05rem; color: #555;
  max-width: 560px; margin-bottom: 3rem; line-height: 1.7;
}

/* ── CHARACTERS ── */
.characters { padding: var(--section-pad) 0; background: var(--offwhite); }

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.5rem;
}

.char-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.char-art { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f0ebe0; }
.char-ella .char-art { object-position: top; }

.char-body { padding: 1.2rem 1.4rem 1.5rem; }
.char-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
.char-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.char-desc { font-family: 'Caveat', cursive; font-size: 1rem; color: #555; line-height: 1.6; }

.char-pico { border-top: 4px solid var(--green); }
.char-pico .char-role { color: var(--green); }
.char-stooge { border-top: 4px solid var(--blue); }
.char-stooge .char-role { color: var(--blue); }
.char-ella { border-top: 4px solid var(--purple); }
.char-ella .char-role { color: var(--purple); }
.char-rocket { border-top: 4px solid var(--coral); }
.char-rocket .char-role { color: var(--coral); }
.char-dh { border-top: 4px solid var(--pink); }
.char-dh .char-role { color: var(--pink); }

/* ── BOOK ── */
.book-section { padding: var(--section-pad) 0; background: var(--dark); color: var(--offwhite); overflow: hidden; }

.book-inner {
  display: grid; grid-template-columns: 400px 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}

.book-cover { width: 100%; border-radius: 12px; box-shadow: 0 32px 80px rgba(0,0,0,0.7), 8px 8px 0 rgba(245,194,0,0.2); }

.book-section .section-label { color: var(--yellow); opacity: 1; }
.book-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.book-section h2 em { font-style: italic; color: var(--yellow); }
.book-section p { font-size: 1.05rem; color: rgba(255,253,245,0.78); line-height: 1.75; margin-bottom: 1rem; max-width: 500px; }

.book-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,253,245,0.8); border: 1px solid rgba(255,253,245,0.3);
  font-size: 0.9rem; font-weight: 500; padding: 0.8rem 1.6rem; border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: var(--yellow); color: var(--yellow); }

.book-spreads {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-top: 2.5rem;
}
.spread-thumb {
  aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.spread-thumb:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(0,0,0,0.5); }

@media (max-width: 860px) {
  .book-inner { grid-template-columns: 1fr; text-align: center; }
  .book-cover-wrap { margin-inline: auto; max-width: 300px; }
  .book-ctas { justify-content: center; }
  .book-section p { margin-inline: auto; }
}
@media (max-width: 500px) {
  .book-spreads { grid-template-columns: repeat(2, 1fr); }
}

/* ── COMIC TEASER ── */
.comic-teaser { padding: var(--section-pad) 0; background: var(--yellow); }

.comic-teaser-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.comic-teaser .section-label { color: var(--green); opacity: 1; }
.comic-teaser h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 0.8rem; }
.comic-teaser p { font-size: 1.05rem; color: #2a2a2a; line-height: 1.7; margin-bottom: 1rem; max-width: 480px; }

.comic-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--dark); color: var(--yellow);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem; border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.btn-green { background: var(--green); color: #fff; }

.comic-strip-img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

@media (max-width: 768px) {
  .comic-teaser-inner { grid-template-columns: 1fr; text-align: center; }
  .comic-ctas { justify-content: center; }
  .comic-teaser p { margin-inline: auto; }
}

/* ── SHOP CALLOUT ── */
.shop-callout { padding: var(--section-pad) 0; background: var(--offwhite); }

.shop-callout-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.shop-callout .section-label { color: var(--coral); opacity: 1; }
.shop-callout h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--dark); margin-bottom: 0.8rem; }
.shop-callout p { font-size: 1.05rem; color: #444; line-height: 1.7; margin-bottom: 1rem; max-width: 460px; }

.shop-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.btn-coral {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--coral); color: #fff;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem; border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,96,60,0.35); }

.btn-ghost-coral {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--coral); font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid rgba(232,96,60,0.4); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost-coral:hover { color: var(--dark); border-color: var(--dark); }

.shop-art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.shop-art-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.shop-art-grid img:hover { transform: scale(1.03); }
.shop-art-grid img:first-child { grid-column: span 2; aspect-ratio: 2/1; }

@media (max-width: 768px) {
  .shop-callout-inner { grid-template-columns: 1fr; text-align: center; }
  .shop-ctas { justify-content: center; }
  .shop-callout p { margin-inline: auto; }
}

/* ── STOOGE BIO ── */
.stooge-bio {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #0a2e1a 0%, #0e4a2e 100%);
  color: var(--offwhite);
}

.stooge-bio-inner {
  display: grid; grid-template-columns: 1fr 380px;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

.stooge-bio .section-label { color: var(--coral); opacity: 1; }
.stooge-bio h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.stooge-bio p { font-size: 1rem; color: rgba(255,253,245,0.78); line-height: 1.8; margin-bottom: 1rem; max-width: 540px; }
.stooge-explain {
  font-family: 'Caveat', cursive; font-size: 1.15rem;
  color: var(--yellow);
  border-left: 3px solid var(--yellow); padding-left: 1rem; margin-top: 1.5rem;
}

.stooge-art { width: 100%; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }

@media (max-width: 860px) {
  .stooge-bio-inner { grid-template-columns: 1fr; text-align: center; }
  .stooge-art-wrap { margin-inline: auto; max-width: 280px; }
  .stooge-explain { border-left: none; padding-left: 0; border-top: 3px solid var(--yellow); padding-top: 1rem; }
  .stooge-bio p { margin-inline: auto; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark); color: var(--offwhite);
  padding: 3.5rem 0 2.5rem; text-align: center;
}

.footer-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2rem; max-width: 900px;
  margin-inline: auto; padding-inline: 1.5rem;
  align-items: start;
}

.footer-col-heading {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 0.8rem;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-links a { color: rgba(255,253,245,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }

.footer-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--yellow); margin-bottom: 0.3rem; }
.footer-meta { font-size: 0.9rem; color: rgba(255,253,245,0.6); line-height: 1.9; }

.footer-social { display: flex; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.footer-social a { color: rgba(255,253,245,0.5); display: flex; align-items: center; transition: color 0.2s; }
.footer-social a:hover { color: var(--yellow); }

.footer-divider { width: 48px; height: 1px; background: rgba(255,255,255,0.15); margin: 1.4rem auto; }
.footer-copy { font-family: 'Caveat', cursive; font-size: 1.05rem; color: rgba(255,253,245,0.45); }

.footer-address { text-align: right; }
.footer-address address { font-style: normal; font-size: 0.9rem; color: rgba(255,253,245,0.6); line-height: 1.9; }

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-address { text-align: center; }
  .footer-links { text-align: center; }
}

/* ── FADE IN ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
}
