/* ==========================================================================
   Sticky Cult — design system
   Retro-groovy: cream ground, deep teal, peach accent. Chunky rounded type.
   Palette lifted from the logo badge.
   ========================================================================== */

:root {
  /* Colour — sampled from the logo */
  --teal-900:  #23393B;
  --teal-800:  #2E474A;
  --teal:      #385558;
  --teal-600:  #4A6E71;
  --teal-300:  #8FA8AA;
  --peach:     #E7AA89;
  --peach-600: #D6906A;
  --peach-200: #F4DCCB;
  --cream:     #FCF7E6;
  --cream-200: #F5EDD6;
  --cream-300: #E9DFC4;
  --ink:       #23393B;
  --white:     #FFFDF6;

  /* Type */
  --display: "Baloo 2", "Trebuchet MS", "Gill Sans", sans-serif;
  --body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --measure: 62ch;
  --s-1: .5rem;  --s-2: 1rem;   --s-3: 1.5rem;
  --s-4: 2.25rem; --s-5: 3.5rem; --s-6: 5rem;  --s-7: 7rem;

  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow: 0 2px 0 rgba(35, 57, 59, .12), 0 12px 28px rgba(35, 57, 59, .10);
  --shadow-lift: 0 4px 0 rgba(35, 57, 59, .16), 0 20px 40px rgba(35, 57, 59, .14);
  --ease: cubic-bezier(.22,.68,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--peach-600); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--teal-900);
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p { margin: 0 0 var(--s-3); max-width: var(--measure); text-wrap: pretty; }

::selection { background: var(--peach-200); color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--peach-600); outline-offset: 3px; border-radius: 6px; }

/* Present for screen readers and search engines, invisible on screen. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; z-index: 200; background: var(--teal-900); color: var(--cream); padding: .8rem 1.2rem; border-radius: var(--pill); }
.skip-link:focus { left: var(--s-2); top: var(--s-2); color: var(--cream); }

/* ------------------------------------------------------------- Layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, var(--s-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-5)); }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--cream2 { background: var(--cream-200); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, var(--s-4)); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 740px) { .grid--2 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3,1fr); } }

.split { display: grid; gap: clamp(2rem,5vw,var(--s-5)); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- Type --- */
.eyebrow {
  font-family: var(--body);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--peach-600);
  margin: 0 0 var(--s-2);
}
.section--teal .eyebrow { color: var(--peach); }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: #41605D; }
.section--teal .lede { color: #CFE2E0; }
.small { font-size: .88rem; color: #5B7A77; }
.section--teal .small { color: #A9C7C4; }

/* ------------------------------------------------------------ Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.9rem;
  border: none; border-radius: var(--pill);
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn--peach { background: var(--peach); color: var(--teal-900); }
.btn--peach:hover { background: var(--peach-600); color: var(--teal-900); }
.btn--teal { background: var(--teal); color: var(--cream); }
.btn--teal:hover { background: var(--teal-800); color: var(--cream); }
.btn--outline { background: transparent; color: var(--teal-900); box-shadow: inset 0 0 0 2px var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--cream); box-shadow: inset 0 0 0 2px var(--teal); }
.section--teal .btn--outline { color: var(--cream); box-shadow: inset 0 0 0 2px var(--peach); }
.section--teal .btn--outline:hover { background: var(--peach); color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: var(--s-4); }

/* ------------------------------------------------------------- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,243,227,.93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--cream-300);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { height: 42px; width: auto; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--teal-900); line-height: 1; }

.nav { display: flex; align-items: center; gap: clamp(1rem,2.2vw,2rem); }
.nav a:not(.btn) {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--teal-800); position: relative; padding: .3rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--peach); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .6rem 1.3rem; font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 2px solid var(--teal); border-radius: var(--pill); padding: .45rem .7rem; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--teal-900); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--cream-300);
    padding: var(--s-2) clamp(1.25rem,4vw,2.5rem) var(--s-4);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 2px solid var(--cream-300); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--s-3); justify-content: center; }
}

/* --------------------------------------------------------------- Hero --- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, var(--s-7)); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(231,170,137,.28), transparent 66%),
    radial-gradient(600px 380px at 4% 96%, rgba(56,85,88,.14), transparent 62%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--peach-600); }

/* Hero split: copy on the left, the badge sitting there like a real sticker. */
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 920px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }

.hero__art { display: grid; align-content: center; justify-items: start; }
@media (max-width: 919px) { .hero__art { justify-items: start; } }

/* The motto, set as type rather than dressed up as a picture. */
.hero__motto {
  display: grid;
  gap: .18em;
  margin: 0;
  max-width: none;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--peach);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.35rem);
  line-height: 1.18;
  color: var(--teal);
  letter-spacing: -.005em;
}

.page-head { background: var(--teal); color: var(--cream); padding-block: clamp(2.75rem,6vw,var(--s-6)); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 90% 0%, rgba(231,170,137,.28), transparent 64%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin-bottom: var(--s-2); }
.page-head p { color: #CFE2E0; margin-bottom: 0; max-width: 56ch; }

/* -------------------------------------------------------------- Cards --- */
.card {
  background: var(--white);
  border: 2px solid var(--teal-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; color: #4A6764; margin-bottom: 0; }

/* Sticker-style badge — a nod to the product without overdoing it */
.sticker {
  display: inline-block;
  background: var(--peach); color: var(--teal-900);
  font-family: var(--display); font-weight: 700;
  padding: .5rem 1.2rem; border-radius: var(--pill);
  border: 2px solid var(--teal-900);
  box-shadow: none;
}

.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 3.2rem 1fr; gap: var(--s-3); align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--peach); color: var(--teal-900);
  border: 2px solid var(--teal-900); border-radius: var(--pill);
}
.step h3 { margin-bottom: .35rem; }
.step p { margin-bottom: 0; color: #4A6764; }
.section--teal .step p { color: #C6DCDA; }
.section--teal .step::before { background: var(--peach); color: var(--teal-900); border-color: var(--teal-900); }

.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--peach); border: 2px solid var(--teal-900);
}

/* ------------------------------------------------------------ Gallery --- */
.gallery-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.work { margin: 0; }
.work img,
.work__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 2px solid var(--teal-900);
  object-fit: cover;
  display: block;
}
/* Empty slots read as deliberate placeholders, not broken images. */
.work__placeholder {
  background:
    repeating-linear-gradient(45deg, var(--cream-200) 0 14px, var(--cream-300) 14px 28px);
  border-style: dashed;
  opacity: .75;
}
.work figcaption {
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  color: var(--teal-800); margin-top: .7rem;
}

/* ---------------------------------------------------------------- CTA --- */
.cta-band { background: var(--teal-900); color: var(--cream); padding-block: clamp(3rem,6vw,var(--s-6)); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C6DCDA; }

/* --------------------------------------------------------------- Form --- */
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--teal-900); }
.field .req { color: var(--peach-600); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 2px solid var(--teal-900);
  border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: box-shadow .15s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 0 0 0 4px var(--peach-200);
}
.field-row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: .85rem; color: #5B7A77; margin: 0; }
.form-status { font-size: .95rem; padding: .9rem 1.1rem; border-radius: var(--radius); display: none; border: 2px solid var(--teal-900); }
.form-status[data-state="ok"]  { display: block; background: var(--peach-200); color: var(--teal-900); }
.form-status[data-state="err"] { display: block; background: #FBE3DC; color: #7C2D18; }
.turnstile-holder { min-height: 65px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s-3) 0; border-bottom: 2px solid var(--cream-300); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--peach-600); margin-bottom: .3rem; }

/* ------------------------------------------------------------- Footer --- */
.site-footer { background: var(--teal-900); color: #A8C4C1; padding-block: var(--s-5) var(--s-3); font-size: .95rem; }
.site-footer h4 { font-family: var(--body); color: var(--white); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--s-2); }
.site-footer a { color: #CFE2E0; text-decoration: none; }
.site-footer a:hover { color: var(--peach); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-brand p { color: #8FAFAC; max-width: 34ch; margin-top: var(--s-2); }
.footer-bottom {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 2px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); justify-content: space-between;
  font-size: .85rem; color: #7F9F9C;
}

/* --------------------------------------------------------------- Print --- */
/* Chrome drops background colours when printing unless told otherwise, which
   would strip every teal and peach panel out of a PDF. */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page { margin: 12mm; }

  .site-header { position: static; backdrop-filter: none; }
  .nav-toggle { display: none; }
  .skip-link { display: none; }

  /* Don't split a card, step or gallery tile across two pages. */
  .card, .step, .work, .stat { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }

  .section { padding-block: 2.2rem; }
  .hero { padding-block: 2.5rem; }

  .btn { box-shadow: none; }
  .card { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------ Motion / a11y --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
