/* ===== RD3DP — Rose Dudes 3D Printing ===== */

:root {
  --ink: #221f26;
  --paper: #fbf9f6;
  --paper-dim: #f1ede6;
  --rose: #e8447a;
  --rose-dark: #c22f60;
  --blue: #3e6ff2;
  --yellow: #ffc93c;
  --mint: #2fbf8f;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a:focus-visible,
button:focus-visible,
.chip:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Nav ---------- */
.site-header {
  padding: 22px 0 0;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rose-dark);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(34,31,38,0.06);
}

.nav-links a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: var(--paper-dim); }

.nav-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: auto 16px 16px 16px;
    flex-direction: column;
    display: none;
    z-index: 40;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 0 rgba(34,31,38,0.06);
    cursor: pointer;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 6px 0 var(--rose-dark);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--rose-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 0 #050505;
}
.btn-dark:hover { box-shadow: 0 8px 0 #050505; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
}

/* ---------- Category cards ---------- */
.section { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 940px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(34,31,38,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.cat-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 0 rgba(34,31,38,0.1);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cat-icon svg { width: 28px; height: 28px; }

.cat-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.chip {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

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

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.piece-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(34,31,38,0.08);
}

.piece-swatch {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.piece-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  mix-blend-mode: overlay;
}

.piece-swatch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece-tag {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.piece-body { padding: 16px 18px 20px; }

.piece-body h3 { margin-bottom: 4px; }

.piece-meta {
  font-size: 0.85rem;
  color: #6b6670;
  margin: 0;
}

.piece-card[data-cat] { display: block; }
.piece-card.is-hidden { display: none; }

.photo-note {
  font-size: 0.85rem;
  color: #6b6670;
  margin-top: 40px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  margin: 20px 0 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #d8d5db; margin-bottom: 0; }

/* ---------- About page ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.swatch-strip span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(34,31,38,0.1);
}

/* ---------- Contact page ---------- */
.contact-hero {
  text-align: left;
  padding: 60px 0 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 36px 0 60px;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 3px 0 rgba(34,31,38,0.08);
}

.contact-card h3 { margin-bottom: 8px; }

.contact-card a.big-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 4px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.15s ease;
}
.social-row a:hover { background: #e7e2d9; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid #ece7de;
  padding: 34px 0 40px;
  margin-top: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #6b6670;
}

.footer-row a { text-decoration: none; font-weight: 600; color: var(--ink); }
