/* =====================================================================
   Majestic Mainecoon Paws -- public stylesheet

   Design system
   -------------
   Palette   white / warm cream / soft beige / muted brown / muted gold
             on dark charcoal. Six colours, used for the same job every
             time. Gold is an accent only -- never a large surface.
   Type      Lora (serif) for headings, Inter for everything else.
   Spacing   one scale (--sp-*) and one section rhythm (--section-y).
             No section invents its own padding.
   Shape     3-8px radii. Pills are reserved for status dots.
   Depth     hairline borders first; shadow only where an element really
             floats (modal, dropdown, sticky bar).

   1.  Tokens & reset
   2.  Typography
   3.  Layout & sections
   4.  Buttons, status, alerts
   5.  Header & navigation
   6.  Hero & page banners
   7.  Content blocks
   8.  Cat cards, filters, pagination
   9.  Cat detail
   10. Forms
   11. Process / FAQ / bands / misc
   12. Footer
   13. Responsive
   ===================================================================== */

/* ------------------------------------------------ 1. Tokens & reset */
:root {
  /* --- palette ----------------------------------------------------- */
  --white:        #FFFFFF;
  --cream:        #FAF7F2;   /* page ground                            */
  --cream-2:      #F4EFE7;   /* alternate section ground               */
  --beige:        #E8DFD1;
  --beige-soft:   #F1EAE0;
  --charcoal:     #2B2724;   /* headings, primary button, footer       */
  --charcoal-2:   #403A35;
  --brown:        #6B5842;   /* muted brown: links, secondary text     */
  --brown-deep:   #55452F;
  --brown-ink:    #3F3223;
  --gold:         #B08D4F;   /* muted gold accent                      */
  --gold-soft:    #D8C08A;

  --text:         #4A443D;
  --muted:        #7A7268;
  --line:         #E7DFD3;
  --line-2:       #D9CEBC;

  /* --- status (muted, same hue family) ----------------------------- */
  --ok:           #4B7A52;
  --ok-bg:        #EAF1E9;
  --ok-line:      #CFE0CD;
  --warn:         #9A6F24;
  --warn-bg:      #F7EFDF;
  --warn-line:    #E8D6B4;
  --danger:       #A4462F;
  --danger-bg:    #F6E7E2;
  --danger-line:  #E7CDC4;
  --info:         #4A6B84;
  --info-bg:      #E9EFF4;
  --info-line:    #CFDDE7;
  --neutral:      #6E665C;
  --neutral-bg:   #EFEAE2;
  --neutral-line: #DFD6C8;

  /* --- spacing scale ----------------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* One rhythm for every section on the site. */
  --section-y: clamp(56px, 6vw, 84px);

  /* --- shape ------------------------------------------------------- */
  --radius-sm: 3px;
  --radius:    5px;
  --radius-lg: 8px;

  /* --- depth: used sparingly --------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(43,39,36,.05);
  --shadow-sm: 0 1px 3px rgba(43,39,36,.07);
  --shadow:    0 2px 6px rgba(43,39,36,.08), 0 8px 20px rgba(43,39,36,.06);
  --shadow-lg: 0 8px 28px rgba(43,39,36,.14);

  /* --- type -------------------------------------------------------- */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --ease: ease;
}

*, *::before, *::after { box-sizing: border-box; }

/* The mobile drawer is fixed and parked off-screen with a transform,
   which would widen the viewport. `clip` contains it without creating a
   scroll container, so the sticky header keeps working. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--brown-ink); text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--charcoal); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* ------------------------------------------------ 2. Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--sp-3);
}
h1 { font-size: clamp(1.95rem, 3.2vw, 2.6rem); line-height: 1.18; }
h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

/* Emphasis in a heading stays typographic, not a coloured accent word. */
h1 em, h2 em, h3 em { font-style: italic; color: inherit; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.06rem; color: var(--muted); line-height: 1.7; }

/* Small caps label above a heading. Plain text, no chip. */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  color: var(--gold);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.eyebrow .icon { display: none; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ------------------------------------------------ 3. Layout & sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 780px; }
.container--mid { max-width: 960px; }

.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .62) 0; }
.section--cream { background: var(--cream-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--charcoal); color: #CFC7BC; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFFFFF; }
.section--dark .lead, .section--dark p { color: #ADA396; }
.section--dark .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 660px; margin-bottom: var(--sp-7); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.section-head > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--sp-4); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-2); }
.gap { gap: var(--sp-4); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--sp-5); }
.mb-3 { margin-bottom: var(--sp-5); }

/* ------------------------------------------------ 4. Buttons */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background-color .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease);
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn .icon { width: 15px; height: 15px; }

/* Primary -- dark charcoal, white text */
.btn-primary, .btn-dark { --btn-bg: var(--charcoal); --btn-bd: var(--charcoal); --btn-fg: #fff; }
.btn-primary:hover, .btn-dark:hover { --btn-bg: var(--charcoal-2); --btn-bd: var(--charcoal-2); }

/* Secondary -- muted gold, dark text */
.btn-gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--charcoal); }
.btn-gold:hover { --btn-bg: #9C7C43; --btn-bd: #9C7C43; --btn-fg: #fff; }

/* Outline -- transparent with a subtle border */
.btn-outline { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--line-2); }
.btn-outline:hover { --btn-bg: var(--charcoal); --btn-fg: #fff; --btn-bd: var(--charcoal); }

.btn-light { --btn-bg: #fff; --btn-bd: var(--line-2); --btn-fg: var(--charcoal); }
.btn-light:hover { --btn-bg: var(--cream-2); --btn-bd: var(--line-2); }

.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn-outline-light:hover { --btn-bg: #fff; --btn-fg: var(--charcoal); --btn-bd: #fff; }

.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; font-size: .9rem; color: var(--brown);
}

/* ---- Status indicator ------------------------------------------------
   One component for every status on the site -- public cards, detail
   pages and admin tables all render this. A dot plus a label, sized to
   sit beside body text rather than compete with it. */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600;
  color: var(--neutral);
  white-space: nowrap;
  line-height: 1.4;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}
.badge.is-available,
.badge.is-approved,
.badge.is-replied,
.badge.is-similar-cat-available { color: var(--ok); }
.badge.is-reserved              { color: var(--warn); }
.badge.is-coming-soon,
.badge.is-under-review,
.badge.is-reviewing,
.badge.is-read                  { color: var(--info); }
.badge.is-declined              { color: var(--danger); }
.badge.is-contacted             { color: var(--brown); }
.badge.is-new                   { color: var(--ok); }
.badge.is-adopted,
.badge.is-completed,
.badge.is-closed                { color: var(--neutral); }
.badge-plain { color: var(--muted); }
.badge-plain::before { display: none; }

/* Alerts */
.flash-stack { padding-top: var(--sp-5); }
.alert {
  border: 1px solid;
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: .93rem;
  display: flex; gap: var(--sp-2); align-items: flex-start;
}
.alert-success { background: var(--ok-bg);     border-color: var(--ok-line);     color: #3A6341; }
.alert-error   { background: var(--danger-bg); border-color: var(--danger-line); color: #883A26; }
.alert-warning { background: var(--warn-bg);   border-color: var(--warn-line);   color: #7E5A1D; }
.alert-info    { background: var(--info-bg);   border-color: var(--info-line);   color: #3D5A70; }
.alert ul { margin: var(--sp-1) 0 0; padding-left: 18px; }
.alert li { list-style: disc; }

/* ------------------------------------------------ 5. Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.topbar {
  background: var(--charcoal);
  color: #A79E92;
  font-size: .8rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 34px;
}
.topbar__item { display: inline-flex; align-items: center; gap: var(--sp-5); }
.topbar__item a { color: #BDB4A7; display: inline-flex; align-items: center; gap: 6px; }
.topbar__item a:hover { color: #fff; text-decoration: none; }
.topbar__links { display: flex; align-items: center; gap: var(--sp-5); }
.topbar__links a { color: #BDB4A7; display: inline-flex; align-items: center; gap: 6px; }
.topbar__links a:hover { color: #fff; text-decoration: none; }
.topbar .icon { color: var(--gold-soft); }

.navbar {
  display: flex; align-items: center;
  gap: var(--sp-4); min-height: 68px;
}
.navbar .primary-nav { margin-left: auto; }

.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  color: var(--charcoal);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
/* The logo has its own background removed, so it sits directly on the page
   rather than inside a coloured tile. */
.brand__mark {
  flex: none;
  display: block;
  height: 44px;
}
.brand__mark img { height: 100%; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.16rem; font-weight: 600; color: var(--charcoal);
  white-space: nowrap;
}
.brand__name em { font-style: normal; }
.brand__tag {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.primary-nav__list { display: flex; align-items: center; gap: var(--sp-1); }
/* Scoped away from the CTA: a bare `li > a` rule would out-specify `.btn`
   and repaint the button's colour and border. */
.primary-nav__list > li:not(.primary-nav__cta) > a {
  display: block;
  padding: 8px 12px;
  font-size: .89rem; font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.primary-nav__list > li:not(.primary-nav__cta) > a:hover { color: var(--charcoal); text-decoration: none; }
.primary-nav__list > li:not(.primary-nav__cta) > a.is-active {
  color: var(--charcoal); font-weight: 600;
  border-bottom-color: var(--gold);
}
.primary-nav__cta { margin-left: var(--sp-3); }
.primary-nav__cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal);
  place-items: center;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(43,39,36,.5);
  opacity: 0; transition: opacity .2s var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; }

/* ------------------------------------------------ 6. Hero & banners */
.hero {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  padding: var(--section-y) 0;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  align-items: center;
}
.hero__title { margin-bottom: var(--sp-4); }
.hero__text { color: var(--muted); max-width: 540px; margin-bottom: var(--sp-6); }
.hero__actions { margin-bottom: var(--sp-6); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-2);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 600;
  color: var(--charcoal); line-height: 1; margin-bottom: 6px;
}
.hero__stat span {
  font-size: .78rem; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
}

/* A plain framed photograph. No tinted ground, no shape behind it. */
.hero__media { position: relative; }
.hero__frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-soft);
  aspect-ratio: 4 / 3;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.page-hero {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--section-y) * .62) 0;
}
.page-hero__inner { max-width: 720px; }
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero .lead { max-width: 620px; }
.page-hero > .container > :last-child,
.page-hero__inner > :last-child { margin-bottom: 0; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  font-size: .84rem; color: var(--muted); margin-bottom: var(--sp-4);
}
.breadcrumbs a { color: var(--brown); }
.breadcrumbs span.sep { color: var(--line-2); }

/* ------------------------------------------------ 7. Content blocks */
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  height: 100%;
}
.feature-card__icon { color: var(--gold); margin-bottom: var(--sp-3); }
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  align-items: center;
}
.split__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-soft);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

.tick-list li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-2) 0; font-size: .95rem;
}
.tick-list .icon { color: var(--gold); width: 17px; height: 17px; margin-top: 4px; }

/* ------------------------------------------------ 8. Cat cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-5);
}

.cat-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: border-color .15s var(--ease);
}
.cat-card:hover { border-color: var(--line-2); }

/* Fixed ratio + object-fit keeps every photograph the same size and
   proportion, so cards in a row line up. */
.cat-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--beige-soft);
  border-bottom: 1px solid var(--line);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-card__body {
  padding: var(--sp-4);
  display: flex; flex-direction: column; flex: 1;
}
.cat-card__name { font-size: 1.15rem; margin-bottom: var(--sp-1); }
.cat-card__name a { color: var(--charcoal); }
.cat-card__name a:hover { color: var(--brown); text-decoration: none; }

/* "Female - 6 Months" then the colour on its own line. */
.cat-card__meta {
  font-size: .88rem; color: var(--muted); margin: 0;
}
.cat-card__color {
  font-size: .88rem; color: var(--muted); margin: 2px 0 0;
}
.cat-card__status { margin: var(--sp-3) 0 0; }

.cat-card__text { font-size: .9rem; color: var(--muted); margin: var(--sp-3) 0 0; }

.cat-card__foot {
  margin-top: auto; padding-top: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}
.cat-card__fee {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--charcoal);
}

/* Filters */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.filter-bar__form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--sp-3); align-items: end;
}
.filter-bar__actions { display: flex; gap: var(--sp-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.filter-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--beige-soft); color: var(--brown-deep);
  font-size: .82rem;
  border: 1px solid var(--line);
}
.filter-chip a { color: var(--muted); display: inline-flex; }
.filter-chip .icon { width: 12px; height: 12px; }

.result-count { color: var(--muted); font-size: .9rem; margin-bottom: var(--sp-4); }

.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.empty-state__icon { color: var(--line-2); margin-bottom: var(--sp-3); }
.empty-state__icon .icon { width: 34px; height: 34px; margin: 0 auto; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: var(--sp-3); }
.empty-state p { color: var(--muted); max-width: 560px; margin: 0 auto var(--sp-5); }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: center; margin-top: var(--sp-7); }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--white); color: var(--text);
  font-size: .88rem;
}
.pagination a:hover { border-color: var(--line-2); background: var(--cream-2); text-decoration: none; }
.pagination .is-current { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------ 9. Cat detail */
/* Three children: gallery, aside (name / fee / CTA / specs) and the written
   sections. On desktop the writing sits under the gallery; stacked, it goes
   last so the name and the Apply button are not buried below the copy. */
.cat-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-6), 4vw, var(--sp-8));
  align-items: start;
}
.cat-detail > .gallery       { grid-column: 1; grid-row: 1; }
.cat-detail > .cat-detail__aside { grid-column: 2; grid-row: 1 / span 2; }
.cat-detail > .cat-detail__notes { grid-column: 1; grid-row: 2; }

.gallery__main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-soft);
  aspect-ratio: 4 / 3;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: var(--sp-2); margin-top: var(--sp-2);
}
.gallery__thumb {
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  padding: 0; background: var(--beige-soft); aspect-ratio: 1;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--gold); }

.cat-detail__header { margin-bottom: var(--sp-5); }
.cat-detail__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.cat-detail__title h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.cat-detail__fee {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: var(--sp-4);
}
.cat-detail__fee small {
  font-family: var(--font-body); font-size: .78rem; color: var(--muted);
  font-weight: 400; display: block; margin-top: 2px;
}

/* Plain definition table rather than a grid of cards. */
.spec-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--sp-5) 0;
}
.spec-list div {
  background: var(--white);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.spec-list div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-list div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-list dt { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.spec-list dd { margin: 0; font-weight: 500; color: var(--charcoal); font-size: .93rem; }

.info-panel {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.info-panel h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: 1.08rem; margin-bottom: var(--sp-2); }
.info-panel h3 .icon { color: var(--gold); width: 17px; height: 17px; }
.info-panel p { color: var(--muted); font-size: .94rem; }

.adopted-notice {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.adopted-notice__title { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.adopted-notice p { color: var(--muted); margin-bottom: var(--sp-4); }

.sticky-actions { position: sticky; top: 92px; }

/* ------------------------------------------------ 10. Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
}

/* Fields are grouped by a heading and a rule -- not by nested cards.
   The rule goes on the adjacent-sibling pair rather than on every section
   with a `:first-of-type` exception: a hidden honeypot div precedes the
   first section in these forms, so `:first-of-type` never matched it and
   the card opened with a stray leading rule. */
.form-section + .form-section {
  padding-top: var(--sp-6); margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
/* The step number stays -- it is wayfinding in a seven-part form -- but as
   plain type rather than a filled badge. */
.form-section__head {
  margin-bottom: var(--sp-4);
  display: flex; gap: var(--sp-3); align-items: baseline;
}
.form-section__num {
  flex: none;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--gold);
}
.form-section__num::after { content: "."; }
.form-section__head h3 { margin: 0 0 2px; font-size: 1.1rem; }
.form-section__head p { margin: 0; font-size: .88rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-group { display: flex; flex-direction: column; }
.form-group--full { grid-column: 1 / -1; }
/* Spans two tracks on wide grids; collapses back to one on mobile so it
   never forces an extra implicit column. */
.form-group--wide { grid-column: span 2; }

.form-label { font-size: .86rem; font-weight: 600; color: var(--charcoal-2); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* Marks a whole section as skippable, so a long form does not read as a
   list of things that must all be filled in. */
.form-optional {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Separates two alternatives that the visitor chooses between -- it reads
   as "either / or", not as two fields that both need an answer. */
.or-divider {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: var(--sp-5) 0;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.or-divider span {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* One height, one border, one focus treatment for every control. */
.form-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control::placeholder { color: #A79E93; }
.form-control:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(107,88,66,.12);
}
textarea.form-control { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7268' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-control.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 5px; display: none; }
.field-error.is-visible { display: block; }

.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--white);
  font-size: .88rem;
}
.choice input:hover + span { border-color: var(--brown); }
.choice input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }

.check {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3); border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--white);
  cursor: pointer;
}
.check:hover { border-color: var(--brown); }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--brown); flex: none; cursor: pointer; }
.check span { font-size: .9rem; line-height: 1.5; }
.check.is-checked { border-color: var(--brown); }

.selected-cat {
  display: flex; gap: var(--sp-4); align-items: center;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.selected-cat__img {
  width: 88px; height: 88px; flex: none;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--beige-soft);
  border: 1px solid var(--line);
}
.selected-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.selected-cat h3 { margin-bottom: 2px; font-size: 1.15rem; }
.selected-cat__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: .86rem; color: var(--muted); margin-bottom: var(--sp-2); }

.upload-zone {
  position: relative;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.is-dragover { border-color: var(--brown); background: var(--cream-2); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-zone__icon { color: var(--muted); margin-bottom: var(--sp-2); }
.upload-zone__icon .icon { width: 24px; height: 24px; margin: 0 auto; }
.upload-zone strong { display: block; font-size: .94rem; color: var(--charcoal); margin-bottom: 3px; }
.upload-zone span { font-size: .84rem; color: var(--muted); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.preview-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; background: var(--beige-soft); border: 1px solid var(--line);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(43,39,36,.8);
  color: #fff; font-size: .7rem; padding: 4px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-remove {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  border: 0; background: rgba(43,39,36,.75); color: #fff;
  display: grid; place-items: center;
}
.preview-remove .icon { width: 13px; height: 13px; }
.preview-remove:hover { background: var(--danger); }

.require-one-message { display: none; margin-top: var(--sp-2); }
.require-one-message.is-visible { display: flex; }

.option-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5); height: 100%;
}
.option-card__num {
  display: block;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-2);
}
.option-card__num .icon { display: none; }
.option-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.option-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------ 11. Process / FAQ / bands */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.process-step__num {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.process-step h3 { font-size: 1.08rem; margin-bottom: var(--sp-2); }
.process-step p { font-size: .92rem; color: var(--muted); margin: 0; }

.section--dark .process-step {
  background: transparent;
  border-color: rgba(255,255,255,.14);
}
.section--dark .process-step__num { color: var(--gold-soft); }
.section--dark .process-step h3 { color: #fff; }
.section--dark .process-step p { color: #ADA396; }

.timeline { position: relative; padding-left: var(--sp-7); }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line-2);
}
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: calc(var(--sp-7) * -1); top: 0;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--brown);
  border: 1px solid var(--line-2);
  font-size: .78rem; font-weight: 600; font-family: var(--font-body);
}
.timeline__item h3 { font-size: 1.1rem; margin-bottom: var(--sp-1); }
.timeline__item p { color: var(--muted); margin: 0; }

.cta-band {
  background: var(--charcoal);
  color: #CFC7BC;
  border-radius: var(--radius);
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
}
.cta-band__inner { max-width: 680px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ADA396; }
.cta-band .eyebrow { color: var(--gold-soft); }

.find-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
}
.find-band__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-5), 4vw, var(--sp-7)); align-items: center;
}
.find-band h2 { margin-bottom: var(--sp-3); }
.find-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.find-band__cards { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.find-band__card {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.find-band__card:last-child { border-bottom: 0; }
.find-band__card:hover { background: var(--cream-2); text-decoration: none; }
.find-band__card .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 2px; }
.find-band__card strong { display: block; color: var(--charcoal); font-size: .94rem; }
.find-band__card span { font-size: .86rem; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  background: none; border: 0;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--charcoal);
}
.faq-question:hover { color: var(--brown); }
.faq-question .icon { flex: none; color: var(--muted); width: 17px; height: 17px; transition: transform .2s var(--ease); }
.faq-item.is-open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-answer__inner { padding: 0 0 var(--sp-4); color: var(--muted); font-size: .94rem; max-width: 70ch; }

.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); font-size: 1.15rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin: 0 0 var(--sp-4); }
.prose ul li { position: relative; padding-left: var(--sp-5); margin-bottom: var(--sp-2); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.prose blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-2) var(--sp-5);
  border-left: 2px solid var(--gold);
  font-family: var(--font-head); font-size: 1.08rem; font-style: italic;
  color: var(--brown-ink);
}

.note-box {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4); margin: var(--sp-5) 0;
  font-size: .92rem; color: var(--muted);
}
.note-box strong { color: var(--charcoal); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat-strip__item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5); text-align: center;
}
.stat-strip__item strong {
  display: block; font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 600; color: var(--charcoal);
  line-height: 1; margin-bottom: var(--sp-2);
}
.stat-strip__item span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.success-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--sp-6), 5vw, var(--sp-8)); text-align: center;
}
.success-card__icon { color: var(--ok); margin-bottom: var(--sp-4); }
.success-card__icon .icon { width: 40px; height: 40px; margin: 0 auto; }
.reference-box {
  display: inline-block;
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6); margin: var(--sp-4) 0 var(--sp-2);
}
.reference-box span {
  display: block; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.reference-box strong {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
  color: var(--charcoal);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(var(--sp-6), 4vw, var(--sp-8)); }
.contact-info { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-info__item {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__icon { color: var(--gold); flex: none; padding-top: 2px; }
.contact-info__icon .icon { width: 18px; height: 18px; }
.contact-info__item strong { display: block; color: var(--charcoal); font-size: .92rem; margin-bottom: 2px; }
.contact-info__item span, .contact-info__item a { font-size: .9rem; color: var(--muted); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--white); color: var(--charcoal);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: var(--sp-5);
  background: rgba(43,39,36,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  background: var(--white); border-radius: var(--radius);
  padding: var(--sp-6); max-width: 430px; width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal__dialog h3 { margin-bottom: var(--sp-2); }
.modal__dialog p { color: var(--muted); margin-bottom: var(--sp-5); }
.modal__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------ 12. Footer */
.site-footer { background: var(--charcoal); color: #9A9086; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--sp-7);
  padding: var(--section-y) var(--gutter) var(--sp-7);
}
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: #7C7368; }
.footer-about { font-size: .9rem; color: #8E857B; margin: var(--sp-4) 0; max-width: 340px; }
.footer-contact { display: grid; gap: var(--sp-2); font-size: .89rem; }
.footer-contact li { display: flex; gap: var(--sp-2); align-items: center; color: #9A9086; }
.footer-contact .icon { color: var(--gold); width: 15px; height: 15px; }
.footer-contact a { color: #9A9086; }
.footer-contact a:hover { color: #fff; }

.footer-heading {
  color: #fff; font-size: .95rem; margin-bottom: var(--sp-4);
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: .02em;
}
.footer-heading--social { margin-top: var(--sp-6); }
.footer-links { display: grid; gap: var(--sp-2); font-size: .89rem; }
.footer-links a { color: #8E857B; }
.footer-links a:hover { color: #fff; }

.footer-note { font-size: .87rem; color: #8E857B; margin-bottom: var(--sp-3); }
/* flex-wrap + min-width:0 stop the input's intrinsic width from pushing
   the button off narrow screens. */
.newsletter-form__row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.newsletter-form__row .form-control { flex: 1 1 160px; min-width: 0; }
.newsletter-form__row .btn { flex: 0 0 auto; }
.newsletter-form .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #EDE7E0;
}
.newsletter-form .form-control::placeholder { color: #7C7368; }
.newsletter-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  box-shadow: none;
}

.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  color: #9A9086;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social .icon { width: 16px; height: 16px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding-top: var(--sp-4); padding-bottom: var(--sp-4);
  font-size: .84rem; color: #7C7368;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { color: #7C7368; }
.footer-legal a:hover { color: #fff; }

/* ------------------------------------------------ 13. Responsive */
@media (max-width: 1080px) {
  .primary-nav__list > li:not(.primary-nav__cta) > a { padding: 8px 9px; font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar__form { grid-template-columns: repeat(2, 1fr); }
  .filter-bar__actions { grid-column: 1 / -1; }
  .cat-detail { grid-template-columns: 1fr; }
  .cat-detail > .gallery,
  .cat-detail > .cat-detail__aside,
  .cat-detail > .cat-detail__notes { grid-column: 1; grid-row: auto; }
  .sticky-actions { position: static; }
  .find-band__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .topbar__inner { gap: var(--sp-4); }
  .topbar__item { gap: var(--sp-4); }
  .topbar__item a[href^="mailto:"] { display: none; }
  .topbar__links { gap: var(--sp-4); }
  .topbar { font-size: .76rem; }

  .nav-toggle { display: grid; margin-left: auto; }

  .primary-nav {
    position: fixed; top: 0; right: 0; z-index: 120;
    width: min(320px, 86vw); height: 100vh; height: 100dvh;
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: var(--sp-8) var(--sp-5) var(--sp-5);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .25s var(--ease);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list > li:not(.primary-nav__cta) > a {
    padding: 13px 4px; font-size: .95rem;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav__list > li:not(.primary-nav__cta) > a.is-active { border-bottom-color: var(--gold); }
  .primary-nav__cta { margin: var(--sp-5) 0 0; }
  .primary-nav__cta .btn { width: 100%; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-group--wide { grid-column: auto; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list div:nth-child(odd) { border-right: 0; }
  .spec-list div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .cat-grid { grid-template-columns: 1fr; }
  .filter-bar__form { grid-template-columns: 1fr; }
  .selected-cat { flex-direction: column; text-align: center; align-items: center; }
  .btn-group .btn { width: 100%; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
  .hero__stat strong { font-size: 1.45rem; }
  .hero__stat span { font-size: .7rem; letter-spacing: .04em; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.02rem; }
  .brand__mark { height: 32px; }
  .cat-card__foot { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  .cat-card__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .to-top, .btn { display: none !important; }
  body { background: #fff; }
}

/* No scroll-reveal: content is present on load. */
.reveal { opacity: 1; transform: none; }
