/* =========================================================
   Building Pros: main stylesheet
   Tokens first (palette, spacing, hero overlay), then base,
   then one block per component/section. Mobile-first.
   ========================================================= */

:root {
  /* Palette (from spec) */
  --ink: #17191B;
  --ink-soft: #202326;
  --yellow: #F4C21B;
  --yellow-hover: #FFD33D;
  --logo-yellow: var(--yellow); /* icon tile + "Pros". The supplied icon file used #FCDB04; set that here to match it exactly. */
  --paper: #F3F1EC;
  --white: #FFFFFF;
  --gray: #8C8D8B;
  --line: #E3E4E4;
  --danger: #B42318;

  /* Text colors (switched to light values inside .on-dark) */
  --text: var(--ink);
  --text-muted: #55595B;
  --focus: var(--ink);

  /* Type */
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-h1: clamp(2.4rem, 1.2rem + 4.6vw, 4.75rem);   /* 38px to 76px */
  --fs-h2: clamp(1.875rem, 1rem + 2.6vw, 3.25rem);   /* 30px to 52px */
  --fs-h3: 1.3125rem;
  --fs-body: 1.0625rem;                               /* 17px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);

  /* Spacing tokens (spec section 3) */
  --maxw: 1280px;
  --pad: 24px;               /* container side padding: mobile */
  --section-y: 64px;         /* section block padding: mobile */
  --head-gap: 32px;          /* intro block -> cards: mobile */
  --gap: 20px;               /* grid gap: mobile */
  --card-pad: 24px;
  --header-h: 68px;

  /* Hero overlay: tune these to rebalance text legibility vs. photo visibility.
     Mobile = top-to-bottom wash. Desktop (>= 960px) = left-to-right fade. */
  --hero-overlay: linear-gradient(180deg, rgba(23, 25, 27, 0.62) 0%, rgba(23, 25, 27, 0.86) 42%, rgba(23, 25, 27, 0.94) 100%);
  --hero-focus-x: 86%;       /* keeps the building and crew visible on narrow screens */
  --hero-min-h: clamp(600px, 86svh, 720px);

  /* Concrete-block bond pattern used as quiet texture */
  --cmu-light: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5h120M0 30.5h120M.5 0v30M60.5 30v30' stroke='%23ffffff' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E");
  --cmu-dark: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5h120M0 30.5h120M.5 0v30M60.5 30v30' stroke='%2317191B' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E");

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767px) {
  :root {
    --hero-min-h: clamp(640px, 90svh, 740px);
    --hero-overlay: linear-gradient(180deg, rgba(23, 25, 27, 0.08) 0%, rgba(23, 25, 27, 0.4) 100%);
  }
}

@media (min-width: 768px) {
  :root {
    --hero-focus-x: 78%;
    --pad: 32px;
    --section-y: 80px;
    --head-gap: 40px;
    --gap: 28px;
    --card-pad: 28px;
  }
}

@media (min-width: 960px) {
  :root {
    --section-y: 112px;
    --head-gap: 48px;
    --gap: 32px;
    --header-h: 80px;
    --hero-focus-x: 85%;
    --hero-overlay:
      linear-gradient(90deg, rgba(23, 25, 27, 0.96) 0%, rgba(23, 25, 27, 0.88) 38%, rgba(23, 25, 27, 0.58) 60%, rgba(23, 25, 27, 0.14) 82%, rgba(23, 25, 27, 0) 100%),
      linear-gradient(0deg, rgba(23, 25, 27, 0.45) 0%, rgba(23, 25, 27, 0) 32%);
  }
}

@media (min-width: 1200px) {
  :root { --pad: 40px; }
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; }

html {
  background: var(--ink); /* shows in the safe areas above/below the page */
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Keeps the status-bar area on phones matching the header. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--ink);
  z-index: 60;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

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

.on-dark {
  --text: #FFFFFF;
  --text-muted: #C9CBCB;
  --focus: var(--yellow);
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); outline: 3px solid var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }

.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-hover); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2B2E31; }
.btn--dark:focus-visible { outline-color: var(--ink); }

.btn[disabled] { opacity: 0.65; cursor: progress; }

.text-link {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--yellow);
  transition: border-color 0.18s ease;
}
.text-link:hover { border-bottom-color: var(--ink); }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 4px;
  background: var(--yellow);
}
.on-dark .eyebrow, .eyebrow--on-dark { color: var(--yellow); }

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); }
.section--yellow {
  background-color: var(--yellow);
  background-image: var(--cmu-dark);
  --text-muted: #2A2D2F;
}

.section-head { max-width: 48rem; }
.section-head h2 { max-width: 22ch; }
.section-head__body {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.section > .container > .section-head { margin-bottom: var(--head-gap); }

.lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* Two-column heading + supporting copy */
.split { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 88px; align-items: start; }
  .split__aside { padding-top: 44px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand__mark { flex: none; }
.brand__mark-bg { fill: var(--logo-yellow); }
.brand__mark-fg { fill: var(--ink); }
.brand__name {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__name span { color: var(--logo-yellow); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px 0 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile/tablet: collapsible panel */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  padding: 8px var(--pad) 32px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5);
}
.site-nav.is-open { display: block; }
.site-nav__list { display: block; }
.site-nav__link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__lang { display: flex; gap: 20px; }
.site-nav__phone {
  display: block;
  padding: 18px 0 4px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__cta { width: 100%; margin-top: 24px; min-height: 54px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 36px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list { display: flex; align-items: center; gap: 36px; }
  .site-nav__link {
    position: relative;
    padding: 10px 0;
    border: 0;
    font-size: 1rem;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .site-nav__link:hover::after { transform: scaleX(1); }
  .site-nav__phone { display: none; padding: 0; white-space: nowrap; }
  .site-nav__cta { white-space: nowrap; }
  .site-nav__cta { width: auto; margin: 0; min-height: 48px; }
}

/* The header phone number needs room: it appears from 1100px up (it is always in the mobile menu, contact section and footer). */
@media (min-width: 1100px) {
  .site-nav__phone { display: block; }
}

/* No-JS fallback: show the menu inline */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; max-height: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-h);
  padding-block: 72px 80px;
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img, .hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__img { object-fit: cover; object-position: var(--hero-focus-x) 50%; }
.hero__overlay { position: absolute; inset: 0; background: var(--hero-overlay); }

.hero__inner { position: relative; }
.hero__content { max-width: 780px; }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}
.hero__line { display: block; }
.hero__lede {
  margin-top: 28px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 767px) {
  .hero { align-items: flex-end; padding-block: 48px 56px; }
  /* Dark band that begins just above the text block, so contrast holds at any phone height. */
  .hero__inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -120px 0 -200px;
    background: linear-gradient(180deg, rgba(23, 25, 27, 0) 0, rgba(23, 25, 27, 0.9) 120px, rgba(23, 25, 27, 0.95) 100%);
    pointer-events: none;
  }
}

/* ---------- Intro ---------- */
.audiences {
  display: grid;
  gap: 32px var(--gap);
  margin-top: 56px;
}
@media (min-width: 640px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .audiences { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 80px; } }

.audience { position: relative; padding-top: 24px; border-top: 2px solid var(--ink); }
.audience::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 56px; height: 4px;
  background: var(--yellow);
}
.audience p { margin-top: 8px; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Services ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--services { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { border-color: var(--ink); box-shadow: 0 24px 48px -28px rgba(23, 25, 27, 0.4); }

.service-card__media { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__panel {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--yellow);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(244, 194, 27, 0.22), rgba(244, 194, 27, 0) 70%),
    var(--cmu-light);
  background-color: var(--ink);
}
.service-card__panel .icon { width: 104px; height: 104px; stroke-width: 1.75; }

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--card-pad);
}
.service-card__body p { margin-top: 12px; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.service-card .text-link { align-self: flex-start; margin-top: auto; }
.service-card__body p + .text-link { margin-top: 28px; }
.service-card .text-link::after { content: ""; position: absolute; inset: 0; }
.service-card .text-link:focus-visible { outline: none; }
@supports selector(:has(*)) {
  .service-card:has(.text-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
}
@supports not selector(:has(*)) {
  .service-card .text-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
}

/* ---------- Difference ---------- */
.features {
  display: grid;
  gap: 40px var(--gap);
  margin-top: 56px;
}
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 80px; } }

.feature { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.feature__icon { display: block; margin-bottom: 24px; color: var(--yellow); }
.feature__icon .icon { width: 52px; height: 52px; stroke-width: 2; }
.feature p { margin-top: 12px; max-width: 36ch; color: var(--text-muted); line-height: 1.65; }

/* ---------- Projects ---------- */
.grid--projects { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--projects > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--projects > :last-child:nth-child(odd) { grid-column: auto; }
}

.project-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.project-card__media { aspect-ratio: 4 / 3; background: var(--ink); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: var(--card-pad); }
.project-card__location { margin-top: 6px; color: var(--text-muted); font-size: 0.9375rem; font-weight: 600; }
.project-card__body p + p { margin-top: 10px; }

.placeholder-art {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  color: var(--gray);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, rgba(255, 255, 255, 0) 14px 28px),
    var(--ink-soft);
}
.placeholder-art .icon { width: 56px; height: 56px; stroke-width: 2; }
.placeholder-tag {
  padding: 7px 14px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.project-card--placeholder h3, .project-card--placeholder .project-card__location { color: var(--text-muted); }

.preview-note {
  max-width: 64ch;
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 40px var(--gap); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 56px; height: 4px;
  background: var(--yellow);
}
.step__num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.step p { margin-top: 12px; color: var(--text-muted); line-height: 1.65; }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 36px; align-items: center; }
.trust h2 { max-width: 16ch; color: var(--ink); }
.trust .lead { margin-top: 24px; color: #2A2D2F; }
@media (min-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr) auto; column-gap: 80px; } }

.logos { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; margin-top: 56px; }
.logos img { max-height: 48px; width: auto; }

/* ---------- Contact + form ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
}
.contact__sub { margin-top: 40px; margin-bottom: 16px; font-size: 1.0625rem; }
.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 12px; height: 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.direct li { padding: 4px 0; }
.direct a { font-weight: 600; }

.contact__form {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 60px -36px rgba(23, 25, 27, 0.4);
}
@media (min-width: 768px) { .contact__form { padding: 44px; } }

.form__note { margin-bottom: 24px; color: var(--text-muted); font-size: 0.9375rem; }
.form__grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; } }
.field--wide { grid-column: 1 / -1; }

.field label { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--text-muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--gray);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2317191B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(244, 194, 27, 0.6);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.22); }

.field__help { margin-top: 8px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.field__error { margin-top: 8px; color: var(--danger); font-size: 0.875rem; font-weight: 600; line-height: 1.45; }

.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.check label { margin: 0; font-weight: 500; }

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

.form__actions { margin-top: 32px; }
.form__actions .btn { width: 100%; }
@media (min-width: 640px) { .form__actions .btn { width: auto; min-width: 260px; } }

.form__summary, .form__status {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--gray);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.55;
}
.form__summary { margin-top: 0; margin-bottom: 24px; background: #FDECEA; border-left-color: var(--danger); color: #7A1A12; }
.form__status.is-demo { background: #FFF6D6; border-left-color: var(--yellow); color: var(--ink); }
.form__status.is-success { background: #E8F5EC; border-left-color: #1E7B3A; color: #0F4D23; }
.form__status.is-error { background: #FDECEA; border-left-color: var(--danger); color: #7A1A12; }
.form__summary[hidden], .form__status[hidden], .field__error[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 32px; background: var(--ink); }
.site-footer__grid { display: grid; gap: 48px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 56px; } }

.site-footer__brand p { max-width: 34ch; margin-top: 20px; color: var(--text-muted); line-height: 1.6; }
.footer-title {
  margin-bottom: 20px;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-list li + li { margin-top: 4px; }
.footer-list a { display: inline-block; padding: 6px 0; color: #E9EAEA; text-decoration: none; }
.footer-list a:hover { color: var(--yellow); }
.footer-text { padding: 6px 0; color: #E9EAEA; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #A9ABAB;
  font-size: 0.875rem;
}
.site-footer__bar a { color: #E9EAEA; }

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