/* =========================================================
   PlayCrate — style.css
   DARK grape-violet theme. Deep violet-black canvas, ivory
   text, grape fills, pale lavender accents, deep panels.
   ========================================================= */

:root {
  --bg: #141019;
  --bg-deep: #0F0C14;
  --text: #F1EDF6;
  --grape: #7B5EA7;
  --grape-bright: #8B6FBA;
  --grape-soft: #C8B3EE;
  --lavender: #D8CFF0;
  --panel: #1E1826;
  --panel-2: #221B2E;
  --hairline: #5B4791;
  --hairline-soft: #2A2138;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--grape-soft);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--lavender);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.16;
  color: var(--text);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--grape);
  color: var(--text);
  border-color: var(--grape);
}

.btn-primary:hover {
  background: var(--grape-bright);
  border-color: var(--grape-bright);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--grape-soft);
  border-color: var(--grape-soft);
}

.btn-ghost:hover {
  background: var(--panel);
  color: var(--text);
}

/* =========================================================
   BLOCK NAV — slim sticky strip, brand toy-block glyph left,
   per-link block glyphs right, no CTA button.
   ========================================================= */

.block-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .25s ease;
}

.block-nav.is-scrolled {
  box-shadow: 0 10px 30px #0A0810;
}

.block-nav .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--grape);
  border-radius: 3px;
  position: relative;
  flex: 0 0 auto;
}

.brand-glyph::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: var(--grape);
  border-radius: 2px;
}

.brand-word {
  line-height: 1.1;
}

.brand-name {
  display: block;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--text);
}

.brand-caption {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grape-soft);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text);
  padding: 6px 0;
}

.nav-glyph {
  width: 8px;
  height: 8px;
  border: 1px solid var(--grape);
  border-radius: 2px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-glyph::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 4px;
  height: 4px;
  border: 1px solid var(--grape);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--grape-soft);
}

.nav-link.is-active {
  color: var(--grape-soft);
}

.nav-link.is-active .nav-glyph {
  background: var(--grape);
  border-color: var(--grape);
}

.nav-link.is-active .nav-glyph::before {
  background: var(--grape);
  border-color: var(--grape);
}

.nav-toggle {
  display: none;
  background: var(--grape);
  color: var(--text);
  border: 0;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 10px 8px;
}

.nav-toggle .nav-toggle-lines {
  display: block;
  position: relative;
  width: 20px;
  height: 12px;
  margin: 0 auto;
}

.nav-toggle .nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: top .2s ease, transform .2s ease;
}

.nav-toggle .nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle .nav-toggle-lines span:nth-child(2) { top: 5px; }
.nav-toggle .nav-toggle-lines span:nth-child(3) { top: 10px; }

.block-nav.is-open .nav-toggle .nav-toggle-lines span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.block-nav.is-open .nav-toggle .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.block-nav.is-open .nav-toggle .nav-toggle-lines span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-drop {
  display: none;
  background: var(--panel);
  border-top: 1px solid var(--hairline);
}

.block-nav.is-open .nav-drop {
  display: block;
}

.nav-drop-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  color: var(--text);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  border-bottom: 1px solid var(--panel-2);
}

.nav-drop-link.is-active {
  color: var(--grape-soft);
}

/* =========================================================
   CRATE HERO
   ========================================================= */

.crate-hero {
  padding: 100px 0 120px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline-soft);
}

.crate-hero .hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  flex: 1 1 56%;
}

.eyebrow-chip {
  display: inline-block;
  background: var(--grape);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  margin: 26px 0 22px;
  letter-spacing: -0.01em;
}

.hero-title .hl-accent {
  color: var(--grape-soft);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.78;
  color: var(--text);
  max-width: 580px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Toy crate graphic */

.crate-visual {
  flex: 0 1 44%;
  display: flex;
  justify-content: center;
  position: relative;
}

.crate-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 54px 40px 46px;
  position: relative;
  width: 100%;
  max-width: 440px;
}

.crate-panel::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--grape);
  border-radius: 50%;
}

.toy-crate {
  position: relative;
  width: 260px;
  height: 240px;
  margin: 0 auto;
}

.crate-box {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 232px;
  height: 194px;
  border: 3px solid var(--grape);
  border-radius: 6px;
  background: transparent;
}

.crate-box::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -3px;
  height: 46px;
  background: var(--grape);
  border-radius: 0 0 4px 4px;
}

.crate-block {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.crate-block .knob {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
}

.crate-block.grape {
  background: var(--grape);
}

.crate-block.lavender {
  background: var(--lavender);
}

.crate-block.outline {
  background: transparent;
  border: 2px solid var(--grape);
}

.crate-block.outline .knob {
  background: transparent;
  border: 2px solid var(--grape);
  width: 10px;
  height: 10px;
}

.crate-block.b1 {
  bottom: 54px;
  left: 20px;
}

.crate-block.b2 {
  bottom: 68px;
  left: 90px;
}

.crate-block.b3 {
  bottom: 54px;
  right: 20px;
}

.star-four {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 10px;
  height: 34px;
  border: 3px solid var(--grape);
  transform: rotate(45deg);
}

.star-four::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 34px;
  height: 10px;
  border: 3px solid var(--grape);
}

/* =========================================================
   SECTION SHELL
   ========================================================= */

.site-section {
  padding: 96px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-kicker {
  color: var(--grape-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-title {
  font-size: 42px;
  margin-top: 12px;
}

.section-intro {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text);
}

/* =========================================================
   1) TOY GRID
   ========================================================= */

.home-page .toy-grid {
  background: var(--bg);
}

.grid-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.toy-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease;
}

.toy-panel:hover {
  transform: translateY(-4px);
  border-color: var(--grape);
}

.mini-glyph {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--grape);
  border-radius: 4px;
  position: relative;
  margin-bottom: 20px;
}

.mini-glyph::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 7px;
  width: 12px;
  height: 12px;
  background: var(--grape);
  border-radius: 3px;
}

.toy-panel h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.toy-panel p {
  color: var(--text);
  line-height: 1.78;
}

/* =========================================================
   2) AGE LANES
   ========================================================= */

.home-page .age-lanes {
  background: var(--bg-deep);
}

.lanes-list {
  border-top: 1px solid var(--hairline);
}

.age-lane {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}

.age-chip {
  flex: 0 0 auto;
  min-width: 92px;
  text-align: center;
  background: var(--grape);
  color: var(--text);
  border-radius: 22px;
  padding: 11px 20px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
}

.age-lane h3 {
  font-size: 24px;
  margin: 4px 0 10px;
}

.age-lane p {
  max-width: 840px;
  line-height: 1.78;
}

/* =========================================================
   3) PLAY DUO
   ========================================================= */

.home-page .play-duo {
  background: var(--bg);
}

.duo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
}

.duo-row + .duo-row {
  border-top: 1px solid var(--hairline);
}

.duo-copy h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.duo-copy p {
  max-width: 560px;
  line-height: 1.78;
}

.duo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-big {
  position: relative;
  width: 120px;
  height: 120px;
}

.star-big .sb {
  position: absolute;
  border: 4px solid var(--grape);
  border-radius: 8px;
}

.star-big .sb1 {
  width: 84px;
  height: 84px;
  left: 18px;
  top: 18px;
  transform: rotate(45deg);
}

.star-big .sb2 {
  width: 46px;
  height: 46px;
  left: 37px;
  top: 37px;
  transform: rotate(45deg);
}

.star-big .sb3 {
  width: 18px;
  height: 18px;
  left: 51px;
  top: 51px;
  background: var(--grape);
  border: 0;
}

.duo-checks {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.duo-checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
}

.check-square {
  width: 15px;
  height: 15px;
  background: var(--grape);
  border-radius: 3px;
  flex: 0 0 auto;
}

/* =========================================================
   4) JOY BAND
   ========================================================= */

.home-page .joy-band {
  background: var(--grape);
}

.band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.joy-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.joy-label {
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================================================
   5) WONDER PANEL
   ========================================================= */

.home-page .wonder-panel {
  background: var(--bg);
}

.wonder-card {
  background: var(--panel);
  border-left: 6px solid var(--grape);
  border-radius: 14px;
  padding: 66px 52px;
}

.wonder-statement {
  font-size: 40px;
  color: var(--text);
  max-width: 940px;
}

.wonder-sub {
  margin-top: 20px;
  color: var(--lavender);
  font-size: 19px;
  max-width: 720px;
}

/* =========================================================
   6) CTA BLOCK
   ========================================================= */

.home-page .cta-band {
  background: var(--bg-deep);
}

.cta-block {
  text-align: center;
  padding: 20px 24px 0;
}

.cta-block h2 {
  font-size: 40px;
}

.cta-block p {
  max-width: 660px;
  margin: 18px auto 34px;
  color: var(--text);
  font-size: 17px;
}

/* =========================================================
   BLOCK FOOTER
   ========================================================= */

.block-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 38px;
}

.footer-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--grape-soft);
}

.footer-contact {
  color: var(--grape-soft);
  font-size: 14px;
  letter-spacing: .02em;
}

.footer-row2 {
  margin-top: 38px;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-motif {
  width: 12px;
  height: 12px;
  background: var(--grape);
  border-radius: 3px;
  position: relative;
  flex: 0 0 auto;
}

.footer-motif::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: var(--grape);
  border-radius: 2px;
}

.footer-legal {
  flex: 1;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
}

.footer-legal a {
  color: var(--grape-soft);
}

/* =========================================================
   SECONDARY PAGES (services / contact)
   ========================================================= */

.page-hero {
  padding: 92px 0 66px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline-soft);
}

.page-hero h1 {
  font-size: 50px;
  margin: 22px 0 18px;
}

.page-hero .hero-sub {
  font-size: 18px;
}

.service-list {
  padding-top: 40px;
}

.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 46px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.service-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  color: var(--grape-soft);
  font-weight: 700;
  line-height: 1;
  padding-top: 4px;
}

.service-block h2 {
  font-size: 27px;
  margin-bottom: 12px;
}

.service-block p {
  max-width: 840px;
  line-height: 1.78;
  margin-bottom: 12px;
}

.service-tag {
  display: inline-block;
  background: var(--grape);
  color: var(--text);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.process-wrap {
  padding: 70px 0;
  background: var(--bg-deep);
}

.process-list {
  list-style: none;
  margin-top: 30px;
}

.process-list li {
  counter-increment: proc;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.process-list {
  counter-reset: proc;
}

.process-list li::before {
  content: "0" counter(proc);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  color: var(--grape-soft);
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1;
  padding-top: 2px;
}

.process-list h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.process-list p {
  max-width: 760px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  padding: 60px 0;
}

.info-block {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 34px 30px;
}

.info-block h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.info-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-square {
  width: 16px;
  height: 16px;
  background: var(--grape);
  border-radius: 3px;
  flex: 0 0 auto;
  margin-top: 6px;
  position: relative;
}

.info-square::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--grape);
  border-radius: 2px;
}

.info-line p {
  font-size: 16px;
  line-height: 1.7;
}

.info-line p strong {
  display: block;
  color: var(--grape-soft);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 36px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  color: var(--lavender);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--text);
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--grape);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  color: var(--lavender);
  font-size: 15px;
  font-weight: 600;
  min-height: 0;
}

/* FAQ accordion (contact page) */

.faq-wrap {
  padding: 0 0 96px;
}

.faq-list {
  margin-top: 34px;
  max-width: 900px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin-bottom: 14px;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: inherit;
}

.faq-mark {
  color: var(--grape-soft);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: var(--text);
  line-height: 1.75;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-item.is-open .faq-mark {
  transform: rotate(45deg);
}

/* =========================================================
   SCROLL REVEAL (safe default below in noscript)
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1020px) {
  .crate-hero .hero-inner {
    flex-direction: column;
    gap: 48px;
  }

  .hero-copy {
    flex: 1 1 auto;
    width: 100%;
  }

  .crate-visual {
    flex: 1 1 auto;
    width: 100%;
    max-width: 460px;
  }

  .grid-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .duo-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .duo-visual {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .wonder-statement {
    font-size: 30px;
  }

  .band-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-panels {
    grid-template-columns: 1fr;
  }

  .age-lane {
    flex-direction: column;
    gap: 14px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-row1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row2 {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-legal {
    text-align: left;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .wonder-card {
    padding: 44px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
