/* ZUBBERDUST DESIGN INC. — warm, modern, orange-forward */

:root {
  --orange: #f97316;
  --orange-tint: #fff3e8;
  --green: #2f9e44;
  --ink: #1c1712;
  --ink-soft: #5c544a;
  --paper: #fdfaf6;
  --white: #ffffff;
  --line: #ece2d6;
  /* Height of the sticky top bar, used to offset in-page anchor jumps */
  --topbar-offset: 5.2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-offset); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(253, 250, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.logo:hover { color: var(--orange); }
.logo-badge {
  display: grid; place-items: center;
  width: 2.2rem; height: 2rem;
  border-radius: 0.55rem;
  background: var(--orange);
  color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
}

.topbar-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.92rem; }
.topbar-nav a { color: var(--ink); font-weight: 500; }
.topbar-nav a:hover { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--orange); color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: #e85d04; color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.88rem; }
.btn-large { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ---------- Layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { margin: clamp(3rem, 8vh, 5rem) auto; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

/* ---------- Hero ---------- */
.hero { margin-top: clamp(3.5rem, 12vh, 6.5rem); margin-bottom: clamp(3rem, 8vh, 5rem); }

.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin-bottom: 1.1rem; }
.accent { color: var(--orange); }

.hero p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- Services ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 23, 18, 0.08);
  border-color: #f7b57e;
}
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-text { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(140deg, var(--orange-tint) 0%, #fff5ec 60%, #f0faf1 100%);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.contact-card h2 { margin-bottom: 1.4rem; }
.contact-meta { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-dim { color: #9a917f; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .hero .btn { display: block; width: max-content; }
}

/* Header wraps to two rows on narrow screens, so the anchor offset grows */
@media (max-width: 520px) {
  :root { --topbar-offset: 8.1rem; }
}

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