/* Mr. Crafty - site styles */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fdf1e3;
  --text: #2b2420;
  --muted: #6e625a;
  --line: #eadfd2;
  --primary: #d9542b;
  --primary-dark: #b8421e;
  --accent: #1f8a84;
  --accent-soft: #e2f3f1;
  --yellow: #f4b63f;
  --pink: #e86a92;
  --purple: #7b5ea7;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 35, 20, 0.08);
  --max: 1160px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--text);
  color: #f6ece2;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--yellow));
  color: #fff;
  font-size: 1.2rem;
}
.logo small { display: block; font-family: var(--font); font-weight: 600; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: var(--surface-2); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-green { background: #25a35a; border-color: #25a35a; }
.btn-green:hover { background: #1d8a4b; border-color: #1d8a4b; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 182, 63, 0.25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(31, 138, 132, 0.15), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.tagline-pill {
  display: inline-flex;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-art div {
  aspect-ratio: 1;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
}
.hero-art div:nth-child(1) { background: #fde3d6; }
.hero-art div:nth-child(2) { background: #fff0c9; transform: translateY(20px); }
.hero-art div:nth-child(3) { background: #e2f3f1; }
.hero-art div:nth-child(4) { background: #f6dde8; transform: translateY(20px); }
.hero-art div:nth-child(5) { background: #e9e1f5; }
.hero-art div:nth-child(6) { background: #fde3d6; transform: translateY(20px); }

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
}
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); white-space: nowrap; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(60, 35, 20, 0.12); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  background: var(--surface-2);
}
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 4px; }

.cat-card { display: flex; flex-direction: column; color: var(--text); }
.cat-card:hover { color: var(--text); }
.cat-card .count { margin-top: auto; padding-top: 12px; font-size: 0.85rem; font-weight: 700; color: var(--accent); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-family: var(--font-head); font-size: 1rem; }
tr:last-child td { border-bottom: none; }
td .price { font-weight: 800; color: var(--primary); white-space: nowrap; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.8rem;
  display: grid; place-items: center;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.measure-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.measure-row:last-child { border-bottom: none; }
.measure-row span { color: var(--muted); text-align: right; }

/* ---------- Notice + CTA ---------- */
.notice {
  background: #fff6dc;
  border: 1px solid #f1d98e;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #6b5413;
  font-size: 0.95rem;
}
.cta {
  background: linear-gradient(135deg, var(--primary), #e9814b);
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #ffeadf; max-width: 560px; margin: 0 auto 24px; }
.cta .btn { background: #fff; color: var(--primary); border-color: #fff; }
.cta .btn:hover { background: var(--text); border-color: var(--text); color: #fff; }
.cta .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }

.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.2rem; }
.contact-item p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #d9cdc2; padding: 56px 0 24px; margin-top: 64px; }
.site-footer a { color: #f6ece2; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25a35a;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 60;
}
.wa-float:hover { color: #fff; background: #1d8a4b; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 420px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}
@media (max-width: 620px) {
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 20px; }
  .logo small { display: none; }
}
