/* SnapHub.co.nz — vibrant print shop (Imagine-inspired) */
:root {
  --bg0: #1a0533;
  --bg1: #4c1d95;
  --bg2: #7c3aed;
  --pink: #ec4899;
  --coral: #f43f5e;
  --orange: #f97316;
  --yellow: #facc15;
  --mint: #2dd4bf;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 22px;
  --max: 1180px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Nunito", "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(244, 63, 94, 0.45), transparent 55%),
    radial-gradient(800px 480px at 90% 10%, rgba(124, 58, 237, 0.55), transparent 50%),
    radial-gradient(700px 420px at 50% 100%, rgba(34, 211, 238, 0.25), transparent 55%),
    linear-gradient(165deg, #ff4d6d 0%, #7c3aed 42%, #1e1b4b 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0,0,0,0.25);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-size: 0.92em;
}

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(26, 5, 51, 0.55);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: conic-gradient(from 210deg, #f97316, #ec4899, #8b5cf6, #22d3ee, #f97316);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
  flex-shrink: 0;
}
.logo-mark span {
  width: 22px;
  height: 22px;
  border: 2.5px solid #fff;
  border-radius: 7px;
  position: relative;
}
.logo-mark span::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.logo-text strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.logo-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav a:hover { color: #fff; }
.nav-cta {
  background: #fff !important;
  color: #1a0533 !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.menu-btn span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}
.hero h1 .c1 { color: #fff; }
.hero h1 .c2 { color: var(--yellow); }
.hero h1 .c3 {
  background: linear-gradient(90deg, #2dd4bf, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40ch;
  margin: 0 0 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, #facc15, #f97316 55%, #ec4899);
  color: #1a0533;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-block { width: 100%; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.12);
}

/* Floating collage */
.collage {
  position: relative;
  min-height: 420px;
}
.polaroid {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.polaroid:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.polaroid .ph {
  border-radius: 8px;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.p1 { width: 48%; top: 0; right: 4%; transform: rotate(8deg); z-index: 2; }
.p2 { width: 42%; top: 18%; left: 0; transform: rotate(-10deg); z-index: 3; }
.p3 { width: 46%; top: 8%; right: 18%; transform: rotate(4deg); z-index: 1; }
.p4 { width: 34%; bottom: 8%; left: 18%; transform: rotate(6deg); z-index: 4; }
.p5 { width: 36%; bottom: 0; right: 2%; transform: rotate(-7deg); z-index: 3; }
.ph-lake { background-image: linear-gradient(145deg, #0ea5e9, #a78bfa 40%, #f472b6); }
.ph-beach { background-image: linear-gradient(160deg, #fbbf24, #f97316 40%, #0ea5e9); }
.ph-portrait { background-image: linear-gradient(140deg, #fb7185, #c084fc 50%, #38bdf8); }
.ph-balloons { background-image: linear-gradient(180deg, #38bdf8, #a3e635 60%, #f472b6); }
.ph-dog { background-image: linear-gradient(145deg, #fde047, #4ade80 45%, #fb923c); }
.float-star {
  position: absolute;
  font-size: 1.6rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  animation: bob 4s ease-in-out infinite;
}
.s1 { top: 4%; left: 42%; }
.s2 { top: 40%; right: 0; animation-delay: 0.8s; }
.s3 { bottom: 20%; left: 6%; animation-delay: 1.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: 3.5rem 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.section-head p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.3rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px solid rgba(255,255,255,0.12);
}
.product-card:hover { transform: translateY(-5px); }
.product-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0.8rem 0 0.4rem;
  letter-spacing: -0.02em;
}
.product-card p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  flex: 1;
}
.product-card .go {
  margin-top: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.pc1 { background: linear-gradient(145deg, #fb7185, #f43f5e); }
.pc2 { background: linear-gradient(145deg, #2dd4bf, #0891b2); }
.pc3 { background: linear-gradient(145deg, #fbbf24, #f59e0b); color: #1a0533; }
.pc3 p { color: rgba(26, 5, 51, 0.8); }
.pc3 .go { background: rgba(0,0,0,0.12); color: #1a0533; }
.pc4 { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

/* Sizes */
.panel {
  background: rgba(15, 6, 40, 0.45);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.sizes-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
.printer-chip {
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(124,58,237,0.35));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.printer-chip strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.printer-chip p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.table-wrap { overflow-x: auto; border-radius: 16px; }
table.sizes {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
table.sizes th,
table.sizes td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
table.sizes th {
  background: rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
table.sizes tr:hover td { background: rgba(255,255,255,0.04); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.2);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.tag.warn {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.35);
}

/* Feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.feature p { margin: 0 0 0.8rem; color: var(--muted); }
.feature ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.feature li { margin-bottom: 0.35rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}
.g-item {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}
.g-item::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, #f472b6, #a78bfa, #22d3ee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.g-fill {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.g-upload {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  background: rgba(15, 6, 40, 0.5);
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.g1 { background-image: linear-gradient(145deg, #f97316, #7c3aed); }
.g2 { background-image: linear-gradient(160deg, #0ea5e9, #f43f5e); }
.g3 { background-image: linear-gradient(140deg, #fbbf24, #ec4899); }
.g4 { background-image: linear-gradient(150deg, #22d3ee, #6366f1); }
.g5 { background-image: linear-gradient(145deg, #a855f7, #f472b6); }
.g6 { background-image: linear-gradient(145deg, #84cc16, #f59e0b); }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(30, 27, 75, 0.7));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  gap: 0.85rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.contact-form select option { color: #111; }
.form-note { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  margin-top: 1rem;
  background: rgba(10, 4, 24, 0.35);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.breadcrumb a:hover { color: #fff; }

/* Result page */
.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.result-card {
  width: min(480px, 100%);
  background: rgba(15, 6, 40, 0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .sizes-intro,
  .feature-grid,
  .contact-wrap { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .collage { min-height: 360px; margin-top: 1rem; }
}
@media (max-width: 700px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 6, 40, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.2rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 2rem; }
}
