/* ===========================================================
   Craftling Kids Art — shared stylesheet
   Sister site to craftlingco.com — softer, product-led palette
   =========================================================== */

:root {
  --cream: #FBF7F2;
  --lavender: #C9B6E4;
  --lavender-light: #E8DDF6;
  --mint: #A8D5C9;
  --ink: #2B2436;
  --muted: #5B5366;
  --accent: #7B5EA7;
  --accent-hover: #674C8E;
  --white: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 10px 30px -12px rgba(43,36,54,0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--muted); }

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

section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-lavender { background: linear-gradient(180deg, var(--lavender-light) 0%, var(--cream) 100%); }
.section-white { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--white); color: var(--accent); border: 2px solid var(--lavender); }
.btn-secondary:hover { background: var(--lavender-light); color: var(--accent-hover); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,242,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lavender-light);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 60px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--accent); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--lavender-light);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--lavender-light); }
  nav.main-nav a:last-child { border-bottom: none; }
  .nav-cta { margin: 12px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(160deg, var(--lavender-light) 0%, var(--cream) 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-photo {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.hero-photo img { border-radius: 18px; width: 100%; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-photo { order: 1; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-photo { padding: 14px 14px 0; }
.card-photo img { border-radius: 16px; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin-bottom: 2px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.plate {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.plate img { border-radius: 18px; }

/* photo strip */
.photo-strip {
  display: flex;
  align-items: center;
  gap: 40px;
}
.photo-strip .plate { flex: 0 0 46%; }
.photo-strip .strip-copy { flex: 1; }
@media (max-width: 860px) {
  .photo-strip { flex-direction: column; }
  .photo-strip .plate { flex: 0 0 auto; width: 100%; }
}

/* process steps */
.steps { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  flex: 1 1 220px;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lavender-light);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 10px;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--lavender-light); }
.cta-band .contact-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-weight: 700;
}
.cta-band .contact-row a { color: var(--white); }
.cta-band .btn-secondary { background: var(--white); border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D9D3E4;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-weight: 800; font-size: 1.1rem; color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-col a, .footer-col p { display: block; color: #C9C2D6; margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #423A54;
  font-size: 0.85rem;
  color: #9C93AE;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; }
}

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--lavender-light);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: -6px; }
#form-status { font-weight: 700; }

/* ---------- Gallery (product detail) ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.gallery .plate:first-child { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .plate:first-child { grid-column: span 2; grid-row: auto; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.pill-list li {
  background: var(--lavender-light);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--lavender-light);
  color: var(--muted);
}
.info-list li strong { color: var(--ink); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
