/* ===========================================================
   CraftVibe — colorful, playful craft supplies & DIY kits
   Shared stylesheet
   =========================================================== */

:root {
  /* Brand palette */
  --coral:   #ff5d73;
  --coral-dk:#e8415a;
  --teal:    #2ec4b6;
  --teal-dk: #1ba89b;
  --yellow:  #ffc857;
  --purple:  #7b5cff;
  --pink:    #ff8fb1;
  --cream:   #fff7ef;
  --ink:     #2b2440;
  --ink-soft:#5b5470;
  --white:   #ffffff;

  --radius:  18px;
  --radius-lg: 28px;
  --shadow:  0 14px 34px rgba(43, 36, 64, 0.12);
  --shadow-sm: 0 6px 16px rgba(43, 36, 64, 0.10);
  --maxw:    1180px;

  --font-head: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--coral);
  background: #fff0f2;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 0 var(--coral-dk); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--coral-dk); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 0 var(--teal-dk); }
.btn--teal:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--teal-dk); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #ffe3d6;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: conic-gradient(from 120deg, var(--coral), var(--yellow), var(--teal), var(--purple), var(--coral));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
  transform: rotate(-6deg);
}
.brand b { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  font-weight: 700; padding: 9px 15px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: #fff0f2; color: var(--coral); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin-bottom: 18px; }
.hero h1 .hl { color: var(--coral); }
.hero h1 .hl2 { color: var(--teal); }
.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-soft); }
.hero-badge span { font-size: 1.5rem; }

.hero-art {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background:
     radial-gradient(circle at 30% 25%, var(--yellow) 0 16%, transparent 17%),
     radial-gradient(circle at 78% 70%, var(--teal) 0 13%, transparent 14%),
     radial-gradient(circle at 70% 18%, var(--pink) 0 10%, transparent 11%),
     linear-gradient(140deg, #fff 0%, #ffeef0 100%);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  border: 4px solid #fff;
}
.hero-art .emoji-pile { font-size: clamp(3rem, 12vw, 7rem); line-height: 1; text-align: center; filter: drop-shadow(0 8px 12px rgba(0,0,0,.12)); }
.hero-art .pill {
  position: absolute; background: #fff; border-radius: 999px; padding: 9px 16px;
  font-weight: 800; font-family: var(--font-head); box-shadow: var(--shadow-sm); font-size: .95rem;
}
.hero-art .pill--1 { top: 16px; left: -10px; color: var(--coral); }
.hero-art .pill--2 { bottom: 24px; right: -8px; color: var(--teal); }
.hero-art .pill--3 { bottom: 90px; left: -16px; color: var(--purple); }

.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: -1; }
.blob--1 { width: 280px; height: 280px; background: #ffe0a3; top: -60px; right: -40px; }
.blob--2 { width: 220px; height: 220px; background: #bff3ee; bottom: -50px; left: -30px; }

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 14px 0; overflow: hidden; }
.strip-track { display: flex; gap: 48px; white-space: nowrap; animation: scroll 22s linear infinite; font-family: var(--font-head); font-weight: 700; width: max-content; }
.strip-track span { display: inline-flex; align-items: center; gap: 10px; }
.strip-track .dot { color: var(--yellow); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 42px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-sm); border: 2px solid #fff; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--yellow); }
.cat-card .ico { font-size: 2.6rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-card p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 4rem; position: relative; }
.product-thumb .tag {
  position: absolute; top: 12px; left: 12px; background: var(--coral); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; padding: 4px 12px; border-radius: 999px;
}
.t-coral { background: #fff0f2; } .t-teal { background: #e4faf7; } .t-yellow { background: #fff6e2; }
.t-purple { background: #f1edff; } .t-pink { background: #ffeef4; } .t-mint { background: #eafaf0; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.18rem; margin-bottom: 4px; }
.product-body .desc { color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--coral); }
.stars { color: var(--yellow); font-size: .95rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff; margin: 0 auto 16px; transform: rotate(-4deg);
}
.step:nth-child(1) .num { background: var(--coral); }
.step:nth-child(2) .num { background: var(--teal); }
.step:nth-child(3) .num { background: var(--purple); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Feature band ---------- */
.band { background: linear-gradient(135deg, var(--purple), var(--coral)); color: #fff; border-radius: var(--radius-lg); padding: 54px 44px; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.band p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 22px; }
.band .btn--ghost { background: #fff; border-color: #fff; }
.band-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat .big { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; }
.stat .lbl { font-size: .9rem; opacity: .92; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.quote { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { margin-bottom: 10px; }
.quote p { color: var(--ink-soft); margin-bottom: 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--yellow); border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; }
.newsletter h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px; }
.newsletter p { color: #7a5a14; font-weight: 600; margin-bottom: 24px; }
.news-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.news-form input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 3px solid #fff;
  font-family: var(--font-body); font-size: 1rem; outline: none;
}
.news-form input:focus { border-color: var(--coral); }

/* ---------- Forms (contact) ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius); border: 2px solid #efe6dc;
  font-family: var(--font-body); font-size: 1rem; background: #fffdfb; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 600px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-art { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(140deg, #ffeef0, #e4faf7); display: grid; place-items: center; font-size: 6rem; box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 42px; }
.value { background:#fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.value .ico { font-size: 2.2rem; margin-bottom: 10px; }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Shopify embed area ---------- */
.shopify-note {
  background: #e4faf7; border: 2px dashed var(--teal); border-radius: var(--radius);
  padding: 22px; color: var(--teal-dk); font-weight: 600; text-align: center; margin-top: 30px;
}
.shopify-note code { background:#fff; padding: 2px 7px; border-radius: 6px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d3ea; padding: 60px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #b7afce; font-size: .95rem; max-width: 280px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-col a { display: block; padding: 5px 0; color: #b7afce; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--coral); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .88rem; color: #9890b3; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid, .about-grid { grid-template-columns: 1fr; }
  .cat-grid, .product-grid, .steps, .quote-grid, .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: var(--cream); flex-direction: column;
    align-items: stretch; padding: 14px 22px 22px; gap: 4px; border-bottom: 2px solid #ffe3d6;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: block; }
  .cat-grid, .product-grid, .steps, .quote-grid, .values, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .band, .newsletter, .form-card { padding: 32px 22px; }
}
