:root {
  --bg: #f7f1e6;
  --bg-alt: #efe5d3;
  --surface: #fffdf8;
  --ink: #1c2540;
  --muted: #5b6075;
  --line: #e2d6c0;
  --brand: #c8352e;      /* enamel red */
  --brand-ink: #fff;
  --gold: #e3a826;
  --teal: #2a8a85;
  --shadow: 0 10px 30px -12px rgba(28, 37, 64, .25);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a2b; --bg-alt: #1a2136; --surface: #20283f; --ink: #f3ece0; --muted: #b3b6c6;
    --line: #2f3853; --brand: #e5524a; --gold: #f0bb45; --teal: #49b3ac;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a2b; --bg-alt: #1a2136; --surface: #20283f; --ink: #f3ece0; --muted: #b3b6c6;
  --line: #2f3853; --brand: #e5524a; --gold: #f0bb45; --teal: #49b3ac;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 "Heebo", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Secular One", "Heebo", sans-serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 2px solid var(--brand);
  font-weight: 700; padding: .8em 1.4em; border-radius: 999px; cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--brand) 55%, #000);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--brand) 55%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: .45em 1.1em; font-size: .95rem; box-shadow: none; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55em; text-decoration: none; font-family: "Secular One", sans-serif; font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 40%),
              radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 45%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .02em; margin: 0 0 .6em; font-size: .95rem; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .28em; background: var(--gold); opacity: .45; z-index: -1; border-radius: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.badges strong { color: var(--teal); }
.hero-art { position: relative; }
.hero-art > img:first-child { border-radius: 26px; box-shadow: var(--shadow); border: 6px solid var(--surface); transform: rotate(-1.5deg); }
.float { position: absolute; width: 26%; filter: drop-shadow(0 12px 16px rgba(0,0,0,.3)); animation: bob 5s ease-in-out infinite; }
.f1 { top: -8%; inset-inline-start: -6%; }
.f2 { bottom: -12%; inset-inline-end: -4%; width: 22%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: 10px 12px 20px; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.sub { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Tribes */
.tribes { padding-top: 20px; }
.tribe-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tribe-row figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; transition: transform .2s; }
.tribe-row figure:hover { transform: translateY(-4px) rotate(-1deg); }
.tribe-row img { aspect-ratio: 16/10; object-fit: contain; width: 100%; }
.tribe-row figcaption { font-family: "Secular One", sans-serif; font-size: 1.15rem; margin-top: 8px; }
.tribe-row small { display: block; font-family: "Heebo"; font-size: .85rem; color: var(--brand); }
.mystery { border-style: dashed !important; border-color: var(--brand) !important; }
@media (max-width: 700px) { .tribe-row { grid-template-columns: repeat(2, 1fr); } }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 290px)); justify-content: center; gap: 22px; }
.product .btn { margin-top: auto; }
.product { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.product-img { background: radial-gradient(circle, var(--bg-alt), var(--surface) 70%); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }
.product-img { overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product:hover .product-img img { transform: scale(1.06) rotate(-3deg); }
.product h3 { margin: 6px 0 0; }
.price { margin: 0; font-weight: 800; font-size: 1.4rem; color: var(--brand); }
.price small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
input[type="number"] {
  width: 110px; font: inherit; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); text-align: center;
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-weight: 500; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.chip.active { background: var(--ink); color: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.g-item { border: 0; padding: 14px; background: var(--surface); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.g-item { overflow: hidden; min-width: 0; }
.g-item img { width: 100%; height: 100%; object-fit: contain; }
.g-item[hidden] { display: none; }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 26, .88); display: grid; place-items: center; z-index: 200; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.lb-close { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #1c2540; font-family: "Secular One"; font-size: 1.3rem; margin-bottom: 14px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pricing-grid .sub { margin-inline: 0; margin-bottom: 24px; }
.calc { padding: 24px; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.price-table th { text-align: start; font-size: .9rem; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 2px solid var(--line); }
.price-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 500; transition: background .2s; }
.price-table td:last-child { font-weight: 800; }
.price-table tr.on td { background: color-mix(in srgb, var(--gold) 28%, transparent); }
.calc-label { font-weight: 700; display: block; margin-bottom: 8px; }
.calc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc-row output strong { color: var(--brand); font-size: 1.35rem; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* Contact */
.contact-card {
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
}
.contact-card .eyebrow { color: var(--gold); }
.contact-card .sub { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 0; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-card .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 60%, transparent); }
.contact-card .btn-ghost:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 150px; color: var(--muted); font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--brand); }

.wa-float {
  position: fixed; bottom: 76px; inset-inline-start: 20px; z-index: 60; /* clears the 64px Netlify free-plan badge in the bottom-right corner */ width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
}

/* Inner pages */
.page-hero { padding: 56px 0 24px; text-align: center; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); margin-bottom: 60px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-inline-start: 1.3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose [dir="ltr"] { text-align: left; }

/* Blend white photo backgrounds into the cards (light theme) */
.tribe-row img, .product-img img, .g-item img, .front img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.tribe-row img, .product-img img, .g-item img, .front img) { mix-blend-mode: normal; border-radius: 10px; } }
:root[data-theme="dark"] :is(.tribe-row img, .product-img img, .g-item img, .front img) { mix-blend-mode: normal; border-radius: 10px; }

/* Deep-linked product (e.g. from an Instagram story) */
.product.spotlight { outline: 3px solid var(--gold); outline-offset: 4px; animation: pulse 1.6s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
@media (prefers-reduced-motion: reduce) { .product.spotlight { animation: none; } }
