/* ==========================================================================
   Tulsa Bricks — shared site stylesheet
   One source of truth for the design system across all pages.
   Brand: bold Bauhaus primaries, Brick Black type, Soft White ground.
   Display = Outfit, Copy = DM Sans.
   ========================================================================== */

:root {
  /* Brand palette */
  --red: #FF1020;        --red-deep: #D60C1A;
  --blue: #155CF4;       --blue-deep: #0E45BE;   --blue-light: #3B7BFF;
  --yellow: #F5BE00;     --yellow-deep: #CC9D00;
  --pink: #F03D93;       --pink-deep: #C42D73;
  --green: #2CC84D;      --green-deep: #1F9A3A;
  --black: #221F24;
  --soft-white: #F2F0EC;
  --warm-gray: #E4E1DC;
  --paper: #FFFFFF;

  --ink: #221F24;
  --ink-soft: rgba(34, 31, 36, 0.70);
  --ink-mute: rgba(34, 31, 36, 0.52);
  --line: rgba(34, 31, 36, 0.12);

  /* Legacy aliases — older markup references these names.
     Primary interactive colour is Play Blue; warm/dark map to Brick Black. */
  --orange: var(--blue);
  --orange-light: var(--blue-light);
  --orange-deep: var(--blue-deep);
  --navy: var(--black);
  --navy-deep: var(--black);
  --mustard: var(--yellow);
  --mustard-deep: var(--yellow-deep);
  --sky: var(--blue);
  --cream: var(--soft-white);
  --cream-warm: var(--warm-gray);

  /* Type */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-wordmark: 'Outfit', 'DM Sans', -apple-system, sans-serif;

  --nav-h: 62px;
  --maxw: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--soft-white);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

main { position: relative; z-index: 1; }

/* Accessibility helpers --------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--black); color: var(--soft-white);
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  z-index: 200; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Top navigation — light, clean, multicolour logo
   ========================================================================== */
.nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(34, 31, 36, 0.04), 0 6px 20px rgba(34, 31, 36, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  height: var(--nav-h);
}
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; height: 30px; width: auto; }
.nav-brand .brand-logo { height: 30px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { background: rgba(21, 92, 244, 0.10); color: var(--blue-deep); }
.nav-links a.active { background: var(--black); color: #fff; }
.nav-links a.active:hover { background: var(--black); color: #fff; }
.nav-links a.shop {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue-deep);
  font-weight: 700;
}
.nav-links a.shop:hover { background: var(--blue-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--soft-white);
    padding: 10px 14px 18px;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(34, 31, 36, 0.16);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-links a.shop { text-align: center; margin-top: 6px; }
}

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero { position: relative; text-align: center; padding: 64px 24px 40px; max-width: var(--maxw); margin: 0 auto; z-index: 2; }
.page-eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 6.6vw, 62px); line-height: 1.02; letter-spacing: -1.6px;
  color: var(--black); margin-bottom: 16px;
}
.page-intro {
  font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6; color: var(--ink-soft);
  max-width: 660px; margin: 0 auto; text-wrap: pretty;
}
.divider { display: flex; width: 104px; height: 5px; margin: 22px auto 0; border-radius: 3px; overflow: hidden; }
.divider span { flex: 1; }
.divider span:nth-child(1) { background: var(--red); }
.divider span:nth-child(2) { background: var(--blue); }
.divider span:nth-child(3) { background: var(--yellow); }

/* ==========================================================================
   Content sections
   ========================================================================== */
section.block { padding: 28px 24px; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
section.block.tight { padding-top: 8px; }

.section-eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(27px, 4.6vw, 38px); letter-spacing: -1px; line-height: 1.1;
  color: var(--black); margin-bottom: 18px;
}
.prose p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--blue); }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 4px 18px rgba(34, 31, 36, 0.06);
}
.card.accent-top { position: relative; }
.card.accent-top::before {
  content: ''; position: absolute; top: -1px; left: 26px; right: 26px;
  height: 5px; background: var(--red); border-radius: 3px 3px 0 0;
}
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--black); margin-bottom: 8px; letter-spacing: -0.4px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue-deep);
  border-radius: 11px; padding: 15px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.3px; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 20px rgba(21, 92, 244, 0.26);
}
.btn:hover { transform: translateY(-2px); background: var(--blue-light); box-shadow: 0 10px 26px rgba(21, 92, 244, 0.34); }
.btn.ghost { background: transparent; color: var(--black); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(34, 31, 36, 0.05); border-color: var(--black); }

/* Info rows --------------------------------------------------------------- */
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: rgba(21, 92, 244, 0.10); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; }
.info-row .label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
.info-row .value { font-size: 17px; color: var(--ink); font-weight: 500; }
.info-row .value a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--line); }
.info-row .value a:hover { color: var(--blue); border-color: var(--blue); }

/* Tables ------------------------------------------------------------------ */
.price-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; }
.price-table th, .price-table td { text-align: left; padding: 15px 16px; font-size: 16px; }
.price-table thead th { background: var(--black); color: var(--soft-white); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.price-table tbody tr { background: var(--paper); border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table .tier { font-family: var(--font-display); font-weight: 700; color: var(--black); }
.price-table .price { font-family: var(--font-display); font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgba(34,31,36,0.06); }

/* Placeholders ------------------------------------------------------------ */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(34,31,36,0.04) 0 14px, rgba(34,31,36,0.07) 14px 28px);
  border: 2px dashed rgba(34, 31, 36, 0.20);
  border-radius: 16px; color: var(--ink-mute); min-height: 220px; padding: 24px;
}
.placeholder .ph-tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--blue-deep); }
.placeholder .ph-note { font-size: 14px; max-width: 360px; }

/* Draft badge ------------------------------------------------------------- */
.draft-flag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245, 190, 0, 0.22); border: 1px solid var(--yellow-deep);
  color: #6b5400; border-radius: 100px; padding: 6px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.3px;
}

/* Callout ----------------------------------------------------------------- */
.callout { background: var(--black); color: var(--soft-white); border-radius: 18px; padding: 36px 32px; text-align: center; }
.callout h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(25px, 4vw, 34px); letter-spacing: -0.8px; margin-bottom: 12px; }
.callout p { color: rgba(242, 240, 236, 0.82); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 auto 22px; }

/* Brick motif — recolour the isometric 2x2 brick via CSS mask ------------- */
.brick {
  display: inline-block;
  width: 56px; height: 56px;
  background-color: var(--blue);
  -webkit-mask: url('/brick-2x2.svg') no-repeat center / contain;
          mask: url('/brick-2x2.svg') no-repeat center / contain;
}
.brick-red    { background-color: var(--red); }
.brick-blue   { background-color: var(--blue); }
.brick-yellow { background-color: var(--yellow); }
.brick-pink   { background-color: var(--pink); }
.brick-green  { background-color: var(--green); }

/* ==========================================================================
   Memphis kit — bright, recolourable decorative elements
   Colour any shape with a .c-* class (sets currentColor). Default = blue.
   ========================================================================== */
.c-red{color:var(--red)} .c-blue{color:var(--blue)} .c-yellow{color:var(--yellow)}
.c-pink{color:var(--pink)} .c-green{color:var(--green)} .c-black{color:var(--black)} .c-white{color:#fff}

/* Black & white checkerboard (signature) — larger squares, fewer of them */
.checker {
  --checker: 28px;
  background-color: #fff;
  background-image:
    conic-gradient(var(--black) 25%, transparent 0 50%, var(--black) 0 75%, transparent 0);
  background-size: calc(var(--checker) * 2) calc(var(--checker) * 2);
}
.checker-strip { height: 56px; width: 100%; }

/* Stud bar — solid colour with soft, watermarked tone-on-tone studs */
.stud-bar { position: relative; height: 54px; width: 100%; background: currentColor; color: var(--blue); }
.stud-bar::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, transparent 0 14px, rgba(255,255,255,0.18) 14px 17px, transparent 17px);
  background-size: 64px 100%;
  background-position: center;
}

/* Squiggle divider — recoloured via mask */
.squiggle {
  height: 18px; width: 100%;
  color: var(--blue);
  background-color: currentColor;
  -webkit-mask: url('/memphis/squiggle.svg') repeat-x left center / auto 100%;
          mask: url('/memphis/squiggle.svg') repeat-x left center / auto 100%;
}

/* Horizontal stripes */
.stripes { color: var(--green); background: repeating-linear-gradient(0deg, currentColor 0 6px, transparent 6px 12px); }

/* Triangle */
.tri { display: inline-block; width: 34px; height: 34px; color: var(--yellow); background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* Filled dot + hollow ring (the brick-stud rings) */
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; color: var(--pink); background: currentColor; }
.ring { display: inline-block; width: 26px; height: 26px; border-radius: 50%; color: var(--blue); border: 5px solid currentColor; background: transparent; box-sizing: border-box; }

/* Half-pill / arch cap (the "D" shape) */
.arch { display: inline-block; width: 48px; height: 26px; color: var(--blue); background: currentColor; border-radius: 999px 999px 0 0; }

/* Confetti layer — sprinkle shapes, absolutely positioned, non-interactive */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.confetti > * { position: absolute; }

/* Uploaded Memphis art — triangle cluster + squiggle row, recoloured via mask */
.tri-field {
  display: inline-block; color: var(--blue); background-color: currentColor;
  -webkit-mask: url('/memphis/triangles.svg') no-repeat center / contain;
          mask: url('/memphis/triangles.svg') no-repeat center / contain;
}
.squig {
  display: inline-block; color: var(--green); background-color: currentColor;
  -webkit-mask: url('/memphis/squiggle-row.svg') no-repeat center / contain;
          mask: url('/memphis/squiggle-row.svg') no-repeat center / contain;
}

/* Floating motion for hero decoration — gentle drift + subtle wobble.
   Each piece sets --rot (base angle), --amp (rise), --wob (wobble), --dur, --delay. */
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(var(--amp, -16px)) rotate(calc(var(--rot, 0deg) + var(--wob, 0deg))); }
}
.float-piece { animation: drift var(--dur, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .float-piece { animation: none !important; } }

/* Section that carries a confetti layer keeps content above it */
.has-deco { position: relative; }
.has-deco > :not(.confetti) { position: relative; z-index: 1; }

/* Memphis photo frame — black keyline + hard offset colour shadow */
.photo-frame { display: block; line-height: 0; }
.photo-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 16px;
  border: 3px solid var(--black);
  box-shadow: 10px 10px 0 0 var(--blue);
}
.photo-frame.f-red img    { box-shadow: 10px 10px 0 0 var(--red); }
.photo-frame.f-blue img   { box-shadow: 10px 10px 0 0 var(--blue); }
.photo-frame.f-yellow img { box-shadow: 10px 10px 0 0 var(--yellow); }
.photo-frame.f-pink img   { box-shadow: 10px 10px 0 0 var(--pink); }
.photo-frame.f-green img  { box-shadow: 10px 10px 0 0 var(--green); }
@media (max-width: 560px) { .photo-frame img { box-shadow: 6px 6px 0 0 var(--blue); } }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background: var(--black);
  color: #fff;
  margin: 0;
  padding: 52px 24px 56px;
  position: relative;
}
/* Memphis multicolour cap so the footer reads as its own zone */
footer.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 20%, var(--yellow) 20% 40%, var(--blue) 40% 60%,
    var(--pink) 60% 80%, var(--green) 80% 100%);
}
footer.site-footer > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-logo { height: 32px; width: auto; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.62); margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255, 255, 255, 0.48); margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 15px; padding: 4px 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.45); margin-top: 32px; text-align: center; }

@media (max-width: 640px) {
  .page-hero { padding: 44px 18px 28px; }
  section.block { padding: 24px 18px; }
  .card { padding: 24px 20px; }
  .footer-grid { flex-direction: column; gap: 28px; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
