/* ==========================================================================
   Matterspan — stylesheet
   Plain CSS, no build step, no framework. Custom properties drive theming.
   ========================================================================== */

:root {
  /* Color palette */
  --color-navy: #16233d;
  --color-navy-dark: #081120;
  --color-off-white: #f8f5ee;
  --color-cream: #fbf9f4;
  --color-warm-gray: #7d7568;
  --color-warm-gray-light: #e7e1d5;
  --color-border: #e2dccf;
  --color-brass: #bf8b3a;
  --color-brass-dark: #8f6825;
  --color-text: #1d2530;
  --color-text-muted: #56514a;
  --color-white: #ffffff;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-width: 1600px;
  --edge-pad: clamp(20px, 6vw, 90px);
  --radius-sm: 3px;
  --radius-md: 5px;
  --header-height: 104px;
  --header-height-compact: 72px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-med: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-compact) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------------------------------------------------------------------- */
/* Utility / layout                                                       */
/* ---------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge-pad);
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--color-border);
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-off-white);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-off-white);
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brass-dark);
  margin-bottom: 14px;
}

.section--navy .section-eyebrow {
  color: var(--color-brass);
}

.section-heading {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.18;
  max-width: 34ch;
}

.section-intro {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section--navy .section-intro {
  color: #c9d0dc;
}

.section-header {
  margin-bottom: 48px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-brass-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-brass);
  color: var(--color-navy-dark);
  border-color: var(--color-brass);
}

.btn-primary:hover {
  background: var(--color-brass-dark);
  border-color: var(--color-brass-dark);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--navy .btn-secondary {
  color: var(--color-off-white);
  border-color: var(--color-off-white);
}

.section--navy .btn-secondary:hover {
  background: var(--color-off-white);
  color: var(--color-navy);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* Header / navigation                                                    */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition-med);
}

.site-header.is-compact .container {
  height: var(--header-height-compact);
}

.logo {
  text-decoration: none;
  color: var(--color-off-white);
  display: inline-flex;
  align-items: center;
}

/*
 * Brand mark — a self-contained, fixed-slot wordmark + sunrise component.
 * It is deliberately isolated from the rest of the header's layout rules
 * so it can later be swapped for a finalized standalone SVG brand asset:
 * replace the contents of .brand-mark (in the header markup) and delete
 * the .brand-* / .wordmark rules below — no other header CSS needs to
 * change. The slot's width is driven by the wordmark text; every glow
 * layer stretches to match it via absolute positioning.
 *
 * Layering (back to front): subtle outer haze -> saturated amber/orange
 * core glow -> vertical bloom rising behind the letters -> SVG horizon
 * line + hot white-gold center -> wordmark text -> warm uplight
 * (multiply-blended, masked to the lower portion of the letters only).
 * The arc itself stays hairline-thin throughout; luminosity comes from
 * the glow layers, not the stroke.
 */
.brand-mark {
  position: relative;
  display: inline-block;
  padding: 4px 6px 16px;
}

.wordmark {
  position: relative;
  z-index: 5;
  display: inline-block;
  line-height: 1;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f7f3ea;
}

.brand-glow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}

.brand-glow--wide {
  width: 120%;
  height: 50px;
  background: radial-gradient(
    ellipse at center,
    rgba(224, 154, 60, 0.24) 0%,
    rgba(224, 154, 60, 0.1) 30%,
    rgba(224, 154, 60, 0) 58%
  );
  filter: blur(5px);
  z-index: 1;
}

.brand-glow--core {
  width: 62%;
  height: 26px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 214, 140, 0.85) 0%,
    rgba(255, 170, 70, 0.55) 32%,
    rgba(230, 130, 40, 0.22) 58%,
    rgba(230, 130, 40, 0) 82%
  );
  filter: blur(1.5px);
  z-index: 2;
}

.brand-bloom {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 36%;
  height: 36px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 190, 110, 0.55) 0%,
    rgba(240, 150, 60, 0.24) 45%,
    rgba(240, 150, 60, 0) 80%
  );
  filter: blur(3px);
  z-index: 3;
  pointer-events: none;
}

.brand-horizon {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: 11px;
  height: 22px;
  z-index: 4;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.brand-horizon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-uplight {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 42%;
  height: 24px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 205, 120, 0.95) 0%,
    rgba(255, 190, 110, 0.5) 50%,
    rgba(255, 190, 110, 0) 82%
  );
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to top, black, transparent 88%);
  mask-image: linear-gradient(to top, black, transparent 88%);
  z-index: 6;
  pointer-events: none;
}

/* Footer uses the bare wordmark with no glow layers — see markup. */

.nav-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #c9d0dc;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-brass);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-off-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: clamp(380px, 30vw, 460px);
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px 40px var(--edge-pad);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1.12;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-photo-col {
  position: relative;
  overflow: hidden;
}

.hero-photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* The Need                                                                */
/* ---------------------------------------------------------------------- */
.need-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.need-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.need-scale-item {
  padding: 26px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.need-scale-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.need-scale-icon svg {
  width: 20px;
  height: 20px;
}

.need-scale-item .label {
  font-weight: 700;
  color: var(--color-navy);
  display: block;
  margin-bottom: 6px;
}

.need-scale-item .desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.need-scale-item.is-focus {
  border-color: var(--color-brass);
  background: var(--color-cream);
  position: relative;
}

.need-scale-item.is-focus .need-scale-icon {
  border-color: var(--color-brass);
  color: var(--color-brass-dark);
}

.need-scale-item.is-focus::before {
  content: "Matterspan";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brass);
  color: var(--color-navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* How it works                                                            */
/* ---------------------------------------------------------------------- */
.how-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  position: relative;
  padding: 8px 28px 0;
}

.step:first-child {
  padding-left: 0;
}

.step:not(:first-child) {
  border-left: 1px solid var(--color-border);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--color-brass);
  color: var(--color-brass-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.step-icon {
  width: 22px;
  height: 22px;
  color: var(--color-brass-dark);
}

/* ---------------------------------------------------------------------- */
/* Cards (Who we serve)                                                    */
/* ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--color-brass);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -16px rgba(22, 35, 61, 0.35);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--color-navy);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Why extended-stay (benefits list)                                       */
/* ---------------------------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-top: 48px;
}

.benefit {
  display: flex;
  gap: 18px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.benefit p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.benefit.is-wide {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------- */
/* Property partners                                                       */
/* ---------------------------------------------------------------------- */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.partners-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(248, 245, 238, 0.15);
}

.partners-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partners-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partners-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: #d7dce6;
}

.partners-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-brass);
}

.partners-actions {
  margin-top: 32px;
}

/* ---------------------------------------------------------------------- */
/* About                                                                    */
/* ---------------------------------------------------------------------- */
.about-content {
  max-width: 640px;
}

.about-copy {
  margin-top: 22px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.about-facts {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-fact {
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.about-fact .value {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 3px;
}

.about-fact .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Request Housing form                                                    */
/* ---------------------------------------------------------------------- */
.form-shell {
  margin-top: 44px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 48px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.is-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-field .optional {
  font-weight: 400;
  color: var(--color-warm-gray);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-off-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-brass);
  background: var(--color-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
}

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brass);
  background: var(--color-cream);
  font-size: 0.95rem;
  color: var(--color-text);
}

.form-status.is-visible {
  display: block;
}

.form-status a {
  color: var(--color-brass-dark);
  font-weight: 600;
}

.form-status[data-state="error"] {
  border-color: #b3453f;
  background: #fbefee;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #c9d0dc;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #9aa3b3;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b94a6;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #c9d0dc;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-brass);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-contact a {
  text-decoration: none;
  color: #c9d0dc;
}

.footer-contact a:hover {
  color: var(--color-brass);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #7d879a;
}

/* ---------------------------------------------------------------------- */
/* Privacy page                                                            */
/* ---------------------------------------------------------------------- */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-notice {
  margin: 28px 0 40px;
  padding: 18px 20px;
  border: 1px solid var(--color-brass);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--color-text);
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-page ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-brass-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy-col {
    padding: 48px 24px 56px;
  }

  .hero-photo-col {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .need-layout,
  .how-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step {
    padding: 0 !important;
    border-left: none !important;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .need-scale {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-links,
  .nav-cta.desktop-only {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-primary.is-open .nav-links {
    display: flex;
  }

  .nav-primary {
    position: fixed;
    top: var(--header-height-compact);
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-med);
  }

  .nav-primary.is-open {
    max-height: 480px;
    padding: 10px 0 18px;
    box-shadow: 0 16px 24px -20px rgba(0, 0, 0, 0.5);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-right: 0;
  }

  .nav-links a {
    padding: 14px 24px;
    border-radius: 0;
  }

  .nav-cta {
    margin: 10px 24px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 52px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
