/* CatVenture — shared styles
   Palette (from the brand mood board) and type are tokens: change them here and every page follows. */

:root {
  /* Brand palette */
  --olive: #5a5b3f;      /* Olive Drab */
  --stone: #ded7cb;      /* Warm Stone */
  --umber: #6c4821;      /* Raw Umber */
  --jet: #0a0a0a;        /* Jet Black */
  --ink: #192129;        /* Deep Ink */
  --mahogany: #381716;   /* Dark Mahogany */

  /* Derived tints */
  --stone-lt: #ebe6dc;
  --paper: #f5f2eb;
  --ink-2: #454a46;
  --line: #bdb5a5;
  --focus: #2f5d8a;
  --warn-bg: #f3dc8a;

  /* Type: headline font matches the shop signage as closely as a web font allows */
  --display: "Bagel Fat One", "Chango", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --space-section: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--umber); text-underline-offset: 3px; }
a:hover { color: var(--jet); }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--olive);
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
}

/* Logo lockup: traced from the shop signage */
.brand { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--olive); }
.brand:hover { color: var(--olive); }
.brand .house { height: 34px; width: auto; color: var(--umber); flex: none; }
.brand .word { height: 30px; width: auto; flex: none; }
.brand-wrap { display: block; }
.brand-wrap small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-2); margin-top: 6px; letter-spacing: 0.01em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font: inherit; font-size: 0.95rem; padding: 8px 14px; border-radius: 2px; cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--umber); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--umber); }
.site-nav .nav-book { background: var(--umber); color: var(--paper); padding: 10px 22px; border-radius: 2px; border-bottom: 0; }
.site-nav .nav-book:hover { background: var(--mahogany); color: var(--paper); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--stone); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; z-index: 20; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .js .site-nav a { display: inline-block; padding-block: 10px; }
  .site-header { position: relative; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 28px; min-height: 48px;
  border-radius: 2px; border: 2px solid var(--umber);
  background: var(--umber); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--mahogany); border-color: var(--mahogany); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }

.airflow { width: 100%; height: auto; }
.airflow .cage { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.airflow .cat { fill: var(--olive); }
.airflow .lane { fill: none; stroke: var(--umber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 10; animation: flow 7s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -96; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .airflow { max-width: 420px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* Services: icons traced from the signage */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 0; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding-top: 24px; border-top: 2px solid var(--olive); }
.service svg { width: 56px; height: 56px; color: var(--umber); flex: none; }
.service svg.wide { width: 84px; }
.service h3 { margin-bottom: 0.3em; }
.service p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

.rule-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rule-list li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 12px 40px; align-items: baseline;
  padding-block: 26px; border-top: 1px solid var(--line);
}
.rule-list h3 { margin: 0; }
.rule-list p { margin: 0; color: var(--ink-2); }
.rule-list a { color: inherit; text-decoration: none; }
.rule-list a::after { content: ""; position: absolute; inset: 0; }
.rule-list li:hover h3 { text-decoration: underline; text-decoration-color: var(--umber); text-underline-offset: 6px; text-decoration-thickness: 2px; }

@media (max-width: 700px) { .rule-list li { grid-template-columns: 1fr; } }

.plus-line { margin-top: 28px; color: var(--ink-2); }

.band { background: var(--olive); color: var(--paper); }
.band h2, .band h3 { color: var(--paper); }
.band h2 { max-width: 22ch; }
.band p, .band .lead { color: #ece7da; }
.band a { color: #f0dfb8; }
.band a:hover { color: #fff; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .btn:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.band .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.band .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2 { color: var(--paper); max-width: 22ch; }
.band-ink p, .band-ink .lead { color: #d3d6d4; }
.band-ink a { color: #f0dfb8; }
.band-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-ink .btn:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.band-ink .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.band-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.paw-rule { display: flex; align-items: center; gap: 18px; color: var(--umber); margin-block: 8px; }
.paw-rule::before, .paw-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.paw-rule svg { width: 26px; height: 26px; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 16ch; }

/* ---------- Prose blocks ---------- */

.prose { max-width: 40rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.pillar { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.pillar .split { align-items: baseline; }
.pillar h2 { margin: 0; }
.pillar .means { margin-top: 1.2em; padding-left: 18px; border-left: 3px solid var(--umber); color: var(--ink); font-weight: 500; }

.questions { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid rgba(245, 242, 235, 0.28); }
.questions li { padding-block: 18px; border-top: 1px solid rgba(245, 242, 235, 0.28); font-family: var(--display); font-size: 1.2rem; line-height: 1.35; color: var(--paper); }

/* ---------- Photos ---------- */

.fig { margin: 0; }
.fig img { width: 100%; height: auto; border-radius: 2px; background: var(--stone-lt); }
.fig figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }
.fig.wide img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; }
.fig.portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.pillar .fig { margin-top: 24px; }
.prose .fig { margin-block: 28px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.gallery .fig img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .fig.wide img { aspect-ratio: 4 / 3; } }

/* ---------- Contact + details ---------- */

.details { margin: 0; display: grid; gap: 22px; }
.details dt { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 2px; }
.details dd { margin: 0; font-size: 1.1rem; }
.todo { background: var(--warn-bg); padding: 1px 6px; border-radius: 2px; }

.slot {
  aspect-ratio: 4 / 3; border: 2px dashed var(--olive); border-radius: 2px;
  display: grid; place-items: center; text-align: center;
  color: var(--ink-2); font-size: 0.95rem; padding: 24px; background: var(--stone-lt);
}

/* ---------- Form ---------- */

.form { max-width: 44rem; }
.form fieldset { border: 0; border-top: 2px solid var(--olive); margin: 0 0 12px; padding: 28px 0 8px; min-inline-size: 0; }
.form legend { font-family: var(--display); font-size: 1.5rem; color: var(--olive); padding: 0; margin-bottom: 18px; float: left; width: 100%; }
.form legend + * { clear: both; }

.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: 0.88rem; color: var(--ink-2); margin-top: 2px; }

.form input[type="text"], .form input[type="tel"], .form input[type="email"],
.form input[type="date"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #857d6d; border-radius: 2px;
  padding: 12px 14px; min-height: 48px;
}
.form textarea { min-height: 112px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.choice input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--olive); flex: none; }

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

.status { margin-top: 20px; padding: 16px 18px; border-radius: 2px; border: 2px solid var(--line); background: var(--paper); }
.status[hidden] { display: none; }
.status.ok { border-color: var(--olive); }
.status.err { border-color: #8a2b22; }
.status strong { display: block; margin-bottom: 2px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--mahogany); color: #dccfc4; padding-block: 56px 32px; font-size: 0.98rem; }
.site-footer a { color: #f0dfb8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand, .site-footer .brand:hover { color: var(--stone); }
.site-footer .brand .house { color: #c99a5e; }
.site-footer .brand-wrap small { color: #b9a999; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--paper); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid p { margin-bottom: 0.4em; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #5a3532; font-size: 0.86rem; color: #b9a999; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .airflow .lane { animation: none; }
  .btn { transition: none; }
}

/* Gallery */
.gallery-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.gallery .fig.portrait img { aspect-ratio: 4 / 3; object-position: center 40%; }
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover img { opacity: .92; }
@media (max-width: 900px) { .gallery-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-3 { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(10,10,10,.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; background: none; }
.lightbox p { color: #ebe6dc; margin: 0; text-align: center; }
.lightbox button { position: absolute; top: 12px; right: 12px; font: inherit; color: #ebe6dc; background: transparent; border: 1px solid #ebe6dc; padding: 8px 14px; cursor: pointer; }
.lightbox button:focus-visible { outline: 3px solid #ebe6dc; outline-offset: 2px; }


/* Launch banner (homepage) */
.launch-banner { background: var(--olive); color: var(--paper); text-align: center; padding-block: clamp(40px, 6vw, 72px); }
.launch-banner h2 { color: var(--paper); max-width: 22ch; margin: 0.3em auto 0.5em; }
.launch-eyebrow { margin: 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.launch-text { max-width: 58ch; margin: 0 auto 1.8em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.launch-banner .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.launch-banner .btn:hover { background: var(--stone); border-color: var(--stone); color: var(--jet); }

/* Airflow note under the cage diagram */
.airflow-note { margin-top: 24px; }
.airflow-note h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 0.4em; }
.airflow-note p { margin: 0; color: var(--ink-2); }

/* Collection and delivery note (homepage) */
.plus-line h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 0.4em; }
.plus-line p { margin: 0; }

/* Footer social icons */
.site-footer .social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .social svg { width: 24px; height: 24px; flex: none; }

/* Social icons in contact details */
.details .social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.details .social a { display: inline-flex; align-items: center; gap: 8px; }
.details .social svg { width: 24px; height: 24px; flex: none; }

/* Mobile refinements */
@media (max-width: 860px) {
  .airflow .lane { stroke-width: 3.5; stroke-dasharray: 7 10; }
  .airflow .cage { stroke-width: 2.5; }
}
@media (max-width: 480px) {
  .brand .house { height: 28px; }
  .brand .word { height: 24px; }
  .brand { gap: 8px; }
  .brand-wrap small { font-size: 0.68rem; }
  .nav-toggle { padding: 8px 12px; }
}
