/* Robot Dog Events
 *
 * One deliberate dark theme, not a light/dark pair. The product photography is
 * silver hardware on grey polished concrete, and the client shirts supply the
 * only strong colour in frame — a near-black ground keeps those shirts as the
 * brightest thing on the page, which is the whole point.
 */

:root {
  --bg: #0c0c0d;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --ink: #f4f4f2;
  --ink-dim: #9c9c98;
  --ink-faint: #6b6b68;
  --accent: #ff8f2e;
  --accent-ink: #140b03;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);

  --wrap: 1120px;
  /* One gutter value everywhere, so a full-bleed section can line its content
     up with a wrap-constrained one instead of drifting a gutter to the left. */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

/* The `hidden` attribute is only `display: none` in the UA stylesheet, so any
   author display rule silently beats it — which is how a `display: grid` play
   button stayed on screen while its .hidden property read true. Everything the
   script hides depends on this holding. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.02rem;
}

.wordmark-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.9rem);
  font-size: 0.94rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-header nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
}
.nav-cta:hover {
  background: var(--surface-2);
  border-color: var(--ink-faint);
}

/* The two leftmost nav links are the first thing to go when space runs out —
   the booking CTA is the one that has to survive every viewport. */
@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.05rem);
  font-weight: 700;
}

.lede {
  margin-top: 1.15rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-block;
  padding: 0.82rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #ffa155;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--ink-faint);
}

.micro {
  margin-top: 1.15rem;
  font-size: 0.87rem;
  color: var(--ink-faint);
  max-width: 40ch;
}

/* Hero media — the photography is vertical 9:16, so it lives in a portrait
   frame. Full-bleed would letterbox it badly on any desktop viewport. */
.hero-media {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  /* Also the placeholder: until the media pipeline has run, this reads as an
     intentional dark panel rather than a broken-image icon. */
  background: linear-gradient(160deg, #1e1e21, #0f0f11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* height: auto for the same reason as the gallery — the width/height
   attributes land as presentational hints and would otherwise pin this to
   1600px tall regardless of aspect-ratio. */
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Client logos ──────────────────────────────────────────────────────── */

.clients {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem var(--gutter) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.clients-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 600;
}

.client-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

/* Each mark keeps its own colour rather than being flattened to white. Forcing
   Qodo's lockup to a single colour collapses the mascot's face into a solid
   blob — the logo stops being the logo. Purple on near-black carries plenty of
   contrast on its own, and Arbium's mark is already monochrome. */
.client-logos li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}
.client-logos li:hover {
  opacity: 1;
}

.logo-qodo {
  height: 30px;
  width: auto;
}

/* The wave sits optically smaller than a wordmark of the same pixel height,
   so it's sized against the text beside it rather than against Qodo. */
.client-brand img {
  height: 15px;
  width: auto;
}

.client-brand span {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
}

/* Full-bleed background, content still constrained to the wrap. Centring each
   child individually instead (margin-inline: auto on `> *`) pushes anything
   with its own narrower max-width — the ledes, the requirements list — right
   of the heading above it, which reads as a mistake because it is one. */
.section-alt {
  max-width: none;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-inline: max(
    var(--gutter),
    calc((100% - var(--wrap)) / 2 + var(--gutter))
  );
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-lede {
  margin-top: 0.9rem;
  color: var(--ink-dim);
  max-width: 52ch;
  font-size: 1.04rem;
}

/* ── Gallery ───────────────────────────────────────────────────────────── */

.gallery {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* minmax(0, 1fr) rather than 1fr throughout: a bare 1fr track has min-width
   auto, so any item wider than its share (a long caption, a broken image's alt
   text) pushes the track out and scrolls the whole page sideways. */
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery figure {
  margin: 0;
}

/* height: auto is load-bearing. The width/height attributes on these <img>
   elements are worth keeping — they reserve the right space before the file
   arrives — but they land as presentational hints, so `height` becomes a used
   value of 1600px and `aspect-ratio` is ignored entirely. Without this the
   photos render 335x1600 slivers. */
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1e1e21, #0f0f11);
}

.gallery figcaption {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  color: var(--ink-faint);
}

/* ── Steps ─────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.steps li {
  border-top: 2px solid var(--line-strong);
  padding-top: 1.1rem;
}

.step-n {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.steps h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin-bottom: 0.55rem;
}

.steps p {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

.cards {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.section-alt .card {
  background: var(--surface-2);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-dim);
  font-size: 0.96rem;
}

/* ── Requirements ──────────────────────────────────────────────────────── */

.reqs {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 62ch;
}

.reqs li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

.reqs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--accent);
}

.reqs strong {
  color: var(--ink);
  font-weight: 650;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 68ch;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  font-size: 1.03rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--ink-dim);
  font-size: 0.97rem;
  margin-top: -0.25rem;
}

/* ── Booking ───────────────────────────────────────────────────────────── */

.duration-toggle {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 1.5rem;
}

@media (min-width: 720px) {
  .duration-toggle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.duration-toggle button {
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.duration-toggle button span {
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.duration-toggle button:hover {
  border-color: var(--ink-faint);
}

.duration-toggle button[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(255, 143, 46, 0.09);
}
.duration-toggle button[aria-selected="true"] span {
  color: var(--ink-dim);
}

#cal-inline {
  min-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.cal-fallback {
  color: var(--ink-dim);
  padding: 2rem;
  text-align: center;
  max-width: 42ch;
}
.cal-fallback a {
  color: var(--accent);
}

.cal-direct {
  margin-top: 1rem;
}
.cal-direct a {
  color: var(--accent);
}

.cal-unset {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-dim);
  max-width: 56ch;
}

/* ── Form ──────────────────────────────────────────────────────────────── */

.form {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  max-width: 720px;
}

@media (min-width: 640px) {
  .form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .field-wide,
  .form-actions {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.field .opt {
  font-weight: 400;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  width: 100%;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field input[aria-invalid="true"] {
  border-color: #ff6b5e;
}

/* Colour-scheme hint so the native date picker and autofill render dark. */
.field input {
  color-scheme: dark;
}

.botfield {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.form-status {
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.form-status[data-state="ok"] {
  color: #6fd08c;
}
.form-status[data-state="error"] {
  color: #ff8a7e;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}

.footer-brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.footer-meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.footer-meta a {
  color: var(--ink-dim);
}

.footer-year {
  margin-top: 1.25rem;
}

/* ── Motion ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
