/* Snake Hill Customs & Design, shared stylesheet
   THEMES: the default theme is "Forge" (slate, bone, laser orange).
   To go back to the old look, change <html data-theme="forge"> to <html data-theme="classic">
   in the page files (or set data-theme in build.py and rebuild). */

:root,
[data-theme="forge"] {
  --ink: #0e1b1f;
  --ink2: #16282e;
  --ink3: #223a42;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e2ddd0;
  --muted: #55666b;
  --accent: #ff5a1f;
  --accent-ink: #0e1b1f;
  --accent2: #14b8a6;
  --accent-text: #c2410c; /* accent for text on light backgrounds (AA contrast) */
  --on-dark: #f6f3ec;
  --on-dark-muted: #a9b8bc;
}

[data-theme="classic"] {
  --ink: #4a2008;
  --ink2: #5c2c0f;
  --ink3: #703a18;
  --paper: #f7edd8;
  --card: #fffaf0;
  --line: #e3d3b1;
  --muted: #6b4a30;
  --accent: #e8a317;
  --accent-ink: #3a1a06;
  --accent2: #c0392b;
  --accent-text: #8a5a00;
  --on-dark: #f7edd8;
  --on-dark-muted: #d9c3a0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .callout .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.dark .lead, .hero .lead, .page-head .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent-text); }
.dark .text-link:hover { color: var(--accent); }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; letter-spacing: .02em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ff7a45; }
[data-theme="classic"] .btn.primary:hover { background: #f4b72f; }
.btn.ghost { border-color: currentColor; background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.section:not(.dark) .btn.ghost:hover { background: rgba(14,27,31,.06); }
.btn.big { padding: 1rem 2rem; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.35rem; letter-spacing: .06em; line-height: 1; }
.brand small { display: block; font-family: "Inter", sans-serif; font-size: .62rem; letter-spacing: .2em; color: var(--on-dark-muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .55rem 1.2rem; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.35); color: inherit; border-radius: 10px; width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; padding: .9rem; }
  .brand small { display: none; }
}
.no-js .nav { display: flex; position: static; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, rgba(255,90,31,.22), transparent 60%),
  radial-gradient(700px 420px at -10% 110%, rgba(20,184,166,.16), transparent 60%),
  var(--ink);
  color: var(--on-dark); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: .06em; color: var(--on-dark); margin: -.2rem 0 1.1rem; }

.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; gap: .9rem; aspect-ratio: 1 / 1.02; }
.hero-collage figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink3); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero-collage figure:first-child { grid-column: span 2; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-collage { aspect-ratio: 1 / .95; }
}

/* Trust strip */
.strip { background: var(--ink2); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.08); }
.strip ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.strip li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; margin-right: .6rem; transform: rotate(45deg); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card { text-decoration: none; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,27,31,.1); border-color: var(--accent); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dark .card { background: var(--ink2); border-color: rgba(255,255,255,.1); }
.dark .card p { color: var(--on-dark-muted); }
.card .more { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--accent-text); font-size: .92rem; }
.dark .card .more { color: var(--accent); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.6rem; line-height: 1; color: var(--accent-text); }
.dark .steps li::before { color: var(--accent); }
.steps h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
.dark .steps p { color: var(--on-dark-muted); }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.event { display: grid; grid-template-columns: 82px 1fr; gap: 1.2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem 1rem 1rem; }
.dark .event { background: var(--ink2); border-color: rgba(255,255,255,.1); }
.event[hidden] { display: none; }
.date-block { background: var(--accent); color: var(--accent-ink); border-radius: 12px; text-align: center; padding: .55rem .3rem; line-height: 1; }
.date-block .m { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.date-block .d { display: block; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.4rem; margin-top: .1rem; }
.event h3 { font-size: 1.45rem; margin: 0 0 .15rem; }
.event .when, .event .where { margin: 0; font-size: .93rem; color: var(--muted); }
.dark .event .when, .dark .event .where { color: var(--on-dark-muted); }
.event .when { font-weight: 600; color: var(--ink); }
.dark .event .when { color: var(--on-dark); }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 1.5rem; color: var(--muted); }
.empty-note[hidden] { display: none; }

/* Masonry gallery */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry .tile { break-inside: avoid; margin: 0 0 1rem; display: block; width: 100%; padding: 0; border: 0; background: var(--ink3); border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; }
.masonry .tile img { width: 100%; height: auto; transition: transform .35s ease; }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile[hidden] { display: none; }
.masonry .tile::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; background: linear-gradient(transparent, rgba(14,27,31,.85)); color: #fff; font-size: .82rem; text-align: left; opacity: 0; transition: opacity .2s ease; }
.masonry .tile:hover::after, .masonry .tile:focus-visible::after { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; transition: all .15s ease; }
.chip:hover { border-color: var(--accent); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.group-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.group-card { position: relative; overflow: hidden; border-radius: 18px; background: var(--ink); color: var(--on-dark); padding: 1.75rem; text-decoration: none; min-height: 190px; display: flex; flex-direction: column; justify-content: end; border: 1px solid rgba(255,255,255,.08); transition: transform .2s ease; }
.group-card:hover { transform: translateY(-4px); }
.group-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 200px at 100% 0, rgba(255,90,31,.28), transparent 70%); }
.group-card * { position: relative; }
.group-card h3 { margin-bottom: .3rem; }
.group-card p { margin: 0; color: var(--on-dark-muted); font-size: .93rem; }
.group-card .count { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,16,19,.94); z-index: 300; display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem 4.5rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-height: calc(100vh - 11rem); width: auto; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: var(--on-dark); font-size: .95rem; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-cta { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } .lb-cta { padding: .7rem 1.1rem; font-size: .9rem; } }

/* Page header (inner pages) */
.page-head { background: var(--ink); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0, rgba(255,90,31,.22), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .3rem; }
.page-head .lead { margin: 0; }

/* Form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 18px 40px rgba(14,27,31,.07); }
.field { margin-bottom: 1.4rem; }
.field > label, .field > .legend, fieldset legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; padding: 0; }
fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
.req { color: var(--accent-text); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(20,184,166,.25); }
textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pill span { display: block; padding: .55rem 1rem; border: 2px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; background: #fff; transition: all .15s ease; }
.pill input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--accent2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.banner { background: #e8f8f4; border: 2px solid var(--accent2); color: #0b3d37; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; }
.banner[hidden] { display: none; }
.mini-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: 2.5rem; }
.mini-gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--ink3); }

/* Two column text blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.dark .checklist li { border-color: rgba(255,255,255,.1); }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.callout { background: var(--ink); color: var(--on-dark); border-radius: 22px; padding: clamp(1.75rem, 5vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.callout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 100% 0, rgba(255,90,31,.3), transparent 70%); }
.callout > * { position: relative; }
.callout h2 { margin-bottom: .3rem; }
.callout p { margin: 0; color: var(--on-dark-muted); max-width: 52ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h4 { font-size: 1.15rem; color: var(--accent); margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--on-dark-muted); font-size: .95rem; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; font-size: .82rem; color: var(--on-dark-muted); display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Instagram top bar */
.ig-bar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .9rem; }
.ig-bar a { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .5rem 1rem; text-decoration: none; color: inherit; }
.ig-bar a:hover span { text-decoration: underline; }
.ig-bar svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
.ig-bar svg circle:last-child { fill: currentColor; stroke: none; }
.ig-bar:focus-within { outline: 3px solid var(--accent2); outline-offset: -3px; }
@media (max-width: 480px) { .ig-bar { font-size: .8rem; } .ig-bar a { padding: .45rem .75rem; } }
