/* ==========================================================================
   Palmer Renovation & Repair — design system
   Single stylesheet. Organized: tokens → reset → type → layout → components
   → sections → utilities → motion/print.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --clay: #b0451c;
  --clay-dark: #8d3714;
  --clay-light: #d5764c;
  --clay-wash: #fbf0ea;

  /* Neutrals — warm, so the site reads like sawdust and not like a bank */
  --ink: #16181c;
  --ink-2: #3a3f47;
  --ink-3: #676e78;
  --line: #e4ded4;
  --line-strong: #cfc7b9;
  --sand: #f6f2eb;
  --sand-2: #efe9df;
  --white: #fff;

  /* Support */
  --pine: #23453a;
  --success: #1f6b4b;
  --danger: #a4241c;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: 1.25rem;
  --shell: 76rem;
  --shell-narrow: 46rem;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Elevation — low and warm, never a blue-grey haze */
  --shadow-sm: 0 1px 2px rgba(22, 24, 28, 0.06),
    0 2px 6px rgba(22, 24, 28, 0.04);
  --shadow: 0 2px 4px rgba(22, 24, 28, 0.05),
    0 12px 28px -12px rgba(22, 24, 28, 0.18);
  --shadow-lg: 0 4px 8px rgba(22, 24, 28, 0.05),
    0 28px 60px -24px rgba(22, 24, 28, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  color-scheme: light;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(176, 69, 28, 0.16);
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.1rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.25;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

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

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--clay-dark);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--clay);
  flex: none;
}

.eyebrow--center::before {
  display: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 0.75rem;
  color: var(--white);
}

/* Focus — one visible treatment everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

.section--ink .eyebrow {
  color: var(--clay-light);
}

.section--ink .eyebrow::before {
  background: var(--clay-light);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) and (max-width: 61.99rem) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.15fr 1fr;
  }
}

.split--top {
  align-items: start;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--clay);
  --btn-fg: var(--white);
  --btn-border: var(--clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  min-height: 3rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn:hover {
  --btn-bg: var(--clay-dark);
  --btn-border: var(--clay-dark);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-border: var(--white);
}

.btn--light:hover {
  --btn-bg: var(--sand-2);
  --btn-fg: var(--ink);
  --btn-border: var(--sand-2);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.7);
}

.btn--lg {
  padding: 1rem 1.9rem;
  min-height: 3.4rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__link:hover {
  background: var(--sand);
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__phone {
  display: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--clay);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s var(--ease);
}

.nav-toggle:hover {
  background: var(--sand);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
}

.nav-toggle__bar::before {
  transform: translateY(-6px);
}

.nav-toggle__bar::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--white);
  overscroll-behavior: contain;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 1.25rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav__link[aria-current="page"] {
  color: var(--clay);
  font-weight: 600;
}

.mobile-nav .btn {
  margin-top: 1.1rem;
}

@media (min-width: 62rem) {
  .nav,
  .header__phone {
    display: block;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Below this, the wordmark plus a full-size CTA plus the toggle no longer fit
   on one line. The mark alone still carries the brand, and the SVG keeps its
   aria-label, so the link stays named for screen readers. */
@media (max-width: 34rem) {
  .site-header .brand__name,
  .site-header .brand__tag {
    display: none;
  }

  .site-header .btn {
    padding: 0.7rem 1.05rem;
    min-height: 2.85rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sand) 0%, var(--white) 78%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  /* Blueprint grid, very faint — reads as drafting paper, not as a UI table */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(22, 24, 28, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(22, 24, 28, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }
}

.hero__title {
  margin-bottom: 1.1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--clay);
}

.hero__copy {
  max-width: 34rem;
}

.hero .btn-row {
  margin-top: 1.9rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.hero__art {
  position: relative;
}

/* Stacked photo frames — placeholders until real job photos land */
.frame-stack {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.frame-stack > *:first-child {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   8. Photo placeholders
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--tall {
  aspect-ratio: 3 / 4;
}

.photo--wide {
  aspect-ratio: 16 / 10;
}

.photo--hero {
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
}

/* The empty state: hatched fill + a caption telling you what to shoot */
.photo:not(:has(img)) {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(22, 24, 28, 0.035) 10px 20px
  );
}

.photo__hint {
  position: relative;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(
    to top,
    rgba(22, 24, 28, 0.06),
    rgba(22, 24, 28, 0)
  );
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.photo img ~ .photo__hint {
  display: none;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

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

.card h3 {
  margin-bottom: 0;
}

a.card,
.card--link {
  text-decoration: none;
  color: inherit;
}

a.card:hover,
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--clay-wash);
  color: var(--clay);
  flex: none;
}

.card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card--flush {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Numbered process steps */
.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-strong);
}

.step__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.step h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9688rem;
  color: var(--ink-3);
  margin: 0;
}

.section--ink .step {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.section--ink .step p {
  color: rgba(255, 255, 255, 0.7);
}

.section--ink .step__num {
  color: var(--clay-light);
}

/* Stat / trust strip */
.trust-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 40rem) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip__item {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  text-align: center;
}

.trust-strip__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.trust-strip__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--clay-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0451c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.72rem no-repeat;
}

.section--ink .checklist li::before {
  background-color: rgba(213, 118, 76, 0.2);
}

/* Contact details — a checklist without the checkmarks */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  min-width: 7.5rem;
}

/* Service area chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.section--ink .chips li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

/* Quote / testimonial */
.quote {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--ink);
}

.quote figcaption {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Page header (interior pages) */
.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  margin-bottom: 0.6rem;
}

.page-head .lede {
  max-width: 42rem;
}

/* Detail rows (services page) */
.detail {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.detail:first-of-type {
  border-top: 0;
}

@media (min-width: 56rem) {
  .detail {
    grid-template-columns: 1fr 1.4fr;
  }
}

.detail h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tag-list li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform 0.2s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
}

.faq__item p {
  padding-bottom: 1.25rem;
  margin: 0;
  max-width: 52rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
  /* Without this, a field with a hint stretches its rows to match the taller
     sibling in the row and the two inputs stop lining up. */
  align-content: start;
  margin-bottom: 1.15rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field__label .opt {
  font-weight: 400;
  color: var(--ink-3);
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa1ab;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(176, 69, 28, 0.16);
}

.textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.55;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676e78' stroke-width='2.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 0.8rem center;
  background-size: 1.05rem;
  padding-right: 2.5rem;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(164, 36, 28, 0.15);
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.field-row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 34rem) {
  .field-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fieldset {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.fieldset__legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.check-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 30rem) {
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Whole row is the hit target */
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  min-height: 2.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9375rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.check:hover {
  border-color: var(--ink-3);
  background: var(--sand);
}

.check:has(input:checked) {
  border-color: var(--clay);
  background: var(--clay-wash);
  color: var(--ink);
}

.check:has(input:focus-visible) {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--clay);
  margin: 0;
}

.check--stack {
  align-items: flex-start;
}

/* File input */
.file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--sand);
}

.file input[type="file"] {
  font-size: 0.875rem;
  max-width: 100%;
}

.file input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.file input[type="file"]::file-selector-button:hover {
  background: var(--sand-2);
}

/* Honeypot — off-screen, not display:none, so bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status messages */
.form-status {
  margin-top: 1.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  border: 1px solid transparent;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  background: #fdf1f0;
  border-color: #f0cfcc;
  color: #7d1c15;
}

.form-status[data-state="ok"] {
  background: #eef7f2;
  border-color: #c7e4d6;
  color: #14523a;
}

.form-status[data-state="pending"] {
  background: var(--sand);
  border-color: var(--line);
  color: var(--ink-2);
}

/* Success panel that replaces the form */
.form-done {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 1.25rem;
}

.form-done__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: #eef7f2;
  color: var(--success);
}

.form-done__mark svg {
  width: 1.6rem;
  height: 1.6rem;
}

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   11. Callouts / banners
   -------------------------------------------------------------------------- */
.callout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 52rem) {
  .callout {
    grid-template-columns: 1.4fr auto;
    gap: 2.5rem;
  }
}

.callout h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.callout p:last-of-type {
  margin-bottom: 0;
}

.notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-sm);
  background: var(--clay-wash);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9375rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer .brand__tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   13. Utilities
   -------------------------------------------------------------------------- */
.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.875rem;
}

.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;
}

.nowrap {
  white-space: nowrap;
}

[id] {
  scroll-margin-top: 6rem;
}

/* --------------------------------------------------------------------------
   14. Motion & print
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .btn,
  .nav-toggle {
    display: none !important;
  }
  body {
    color: #000;
  }
}
