/* ==========================================================================
   Equdos — design system
   Navy/ink + blue accent, Aptos Display / Calibri 
   ========================================================================== */

:root {
  --navy: #0f172a;
  --navy-soft: #101b33;
  --navy-line: rgba(255, 255, 255, 0.12);
  --navy-line-soft: rgba(255, 255, 255, 0.08);

  --ink: #0f172a;
  --ink-soft: #1c1c1c;
  --muted: #57606e;
  --muted-soft: #7c8494;

  --accent: #2563eb;
  --accent-ink: #2563EB;
  --accent-line: #8fc1ff;

  --paper: #ffffff;
  --paper-alt: #f3f6fa;
  --line: #d6dee9;

  --blue-deep: #0f2a50;
  --blue-mid: #17396b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(10, 18, 35, 0.06), 0 8px 24px rgba(10, 18, 35, 0.05);
  --shadow-lift: 0 12px 32px rgba(10, 18, 35, 0.14);

  --max: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Calibri", "Carlito", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.kicker--on-dark { color: var(--accent-line); }

.eyebrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
}
.eyebrow-link:hover { color: var(--accent-ink); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 24px rgba(46, 107, 230, 0.28); }
.btn-ghost-dark {
  background: transparent;
  color: #eaf1fc;
  border-color: var(--navy-line);
}
.btn-ghost-dark:hover { border-color: var(--accent-line); background: rgba(255,255,255,0.04); }
.btn-on-panel {
  background: #fff;
  color: var(--blue-deep);
}
.btn-on-panel:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.btn-outline {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); background: var(--paper-alt); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-on-panel:focus-visible { outline-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { width: auto; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-primary > li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-link svg,
.nav-dropdown:focus-within .nav-link svg { transform: rotate(180deg); }
.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-dropdown-panel a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-dropdown-panel .dd-desc {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted-soft);
  margin-top: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 12px;
    gap: 2px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  body.nav-open .nav-primary { transform: translateX(0); }
  .nav-link { padding: 14px 12px; font-size: 16px; }
  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    display: none;
    margin: 2px 0 6px;
  }
  .nav-dropdown.is-open .nav-dropdown-panel { display: block; }
  .nav-dropdown.is-open .nav-link svg { transform: rotate(180deg); }
  .header-actions .btn-primary { display: none; }
  body.nav-open .header-actions .btn-primary {
    display: inline-flex;
    margin: 12px;
  }
}

/* ==========================================================================
   Hero (dark grid-line panel, reused for hero + CTA bands)
   ========================================================================== */
.panel-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--blue-mid), var(--blue-mid)),
    repeating-linear-gradient(0deg, rgba(143,193,255,0.08) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(143,193,255,0.08) 0 1px, transparent 1px 32px),
    var(--blue-deep);
  color: #eaf1fc;
}
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-banner__image {
  display: block;
  width: 100%;
  height: clamp(420px, 56vw, 640px);
  object-fit: cover;
  object-position: center;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 6vw, 64px);
}
.hero-banner__overlay .container {
  width: 100%;
}
.hero-banner__panel {
  max-width: 560px;
  text-align: left;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.hero-banner__title {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 16px;
}
.hero-banner__title .accent {
  color: var(--accent-line);
}
.hero-banner__subtitle {
  color: #c9dcf5;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-strip {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
  border-left: 1px solid var(--line);
}
.hero-badge:first-child {
  border-left: none;
}
.hero-badge__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  color: var(--muted-soft);
}
.hero-badge__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.hero-badge__label {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 560px;
  }
  .hero-banner__overlay {
    align-items: flex-end;
    padding-bottom: 2rem;
    background: linear-gradient(180deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.92) 60%, rgba(15,23,42,0.97) 100%);
  }
}

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

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 30px 0; }
.section--alt { background: var(--paper-alt); }
.section--tight { padding: 20px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 10px; }

.section-rule {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.section-rule h2 { font-size: 21px; }
.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-2px);
}
.section-note { font-size: 15px; color: var(--muted); margin: 0 0 20px; }

/* ---- Service cards (home / hub) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: var(--accent-line);
}
.service-card .card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}
.service-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-alt);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .card-icon svg { width: 22px; height: 22px; stroke: var(--accent-ink); }
.service-card h3 { font-size: 19px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---- Tag panel ("who it's for") ---- */
.tag-panel {
  margin: 0 0 44px;
  padding: 18px 22px;
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.tag-panel .mono { color: var(--accent-ink); flex-shrink: 0; }
.tag-panel p { color: var(--muted); flex: 1; min-width: 220px; }

/* ---- Methodology flow ---- */
.flow-box {
  position: relative;
  margin: 0 0 44px;
  padding: 30px 28px 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.flow-box::before, .flow-box::after, .flow-box .corner-bl, .flow-box .corner-br {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.flow-box::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.flow-box::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.flow-box .corner-bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.flow-box .corner-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }
.flow-box > h2 { font-size: 22px; margin-bottom: 24px; }

.flow-grid {
  display: grid;
  gap: 0 20px;
}
.flow-grid[data-stages="2"] { grid-template-columns: 1fr auto 1fr; align-items: start; }
.flow-grid[data-stages="5"] { grid-template-columns: repeat(5, 1fr); align-items: start; }

.flow-stage { padding-bottom: 26px; }
.flow-stage .stage-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--paper-alt);
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  color: var(--accent-ink);
}
.flow-stage .stage-tag { color: var(--muted); margin-bottom: 6px; display: block; }
.flow-stage h3 { font-size: 17px; margin-bottom: 8px; }
.flow-stage p { color: var(--muted); font-size: 14.5px; }

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  color: var(--accent);
}
.flow-connector svg { width: 28px; height: 14px; }
.flow-connector span { margin-top: 8px; color: var(--muted); font-size: 10px; }

@media (max-width: 980px) {
  .flow-grid[data-stages="5"] { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
}

@media (max-width: 760px) {
  .flow-grid[data-stages="2"],
  .flow-grid[data-stages="5"] { grid-template-columns: 1fr; gap: 0; }
  .flow-connector { flex-direction: row; padding: 6px 0 10px 20px; }
  .flow-connector svg { transform: rotate(90deg); }
}

/* ---- Scope / two-option cards ---- */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}
.scope-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px;
}
.scope-card .mono { color: var(--accent-ink); display: block; margin-bottom: 10px; }
.scope-card h3 { font-size: 18px; margin-bottom: 10px; }
.scope-card p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 700px) { .scope-grid { grid-template-columns: 1fr; } }

/* ---- Dark CTA panel (reused: bp-why pattern) ---- */
.cta-panel {
  border-radius: 14px;
  padding: 40px 36px;
}
.cta-panel .mono { color: var(--accent-line); }
.cta-panel h2 { color: #fff; font-size: 24px; margin: 10px 0 14px; }
.cta-panel p { color: #c9dcf5; font-size: 16px; max-width: 100%; }
.cta-panel .btn { margin-top: 24px; }

/* ---- Reference / link cards (AI Safety page) ---- */
.link-cards { display: flex; flex-direction: column; gap: 12px; }
.link-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
}
.link-card h3 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; font-weight: 700; }
.link-card h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.15s ease;
  padding-bottom: 2px;
}
.link-card h3 a:hover { background-size: 100% 2px; }
.link-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---- Prose (AI Safety intro, generic body copy) ---- */
.prose { max-width: 100%; }
.prose > p + p { margin-top: 16px; }
.prose a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 107, 230, 0.35);
}
.prose a:hover { border-bottom-color: var(--accent-ink); }
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- Page header (subpages) ---- */
.page-header { padding: 56px 0 8px; }
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-header .breadcrumb a { color: var(--muted); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--accent-ink); }
.page-header h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin-bottom: 20px;
}
.page-header .page-intro {
  font-size: 20px;
  line-height: 1.6;
  max-width: 68ch;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.page-header-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 860px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-header-image { order: -1; width: 100%; height: auto; max-height: 220px; }
}
.page-header .page-intro strong { font-weight: 700; }

/* ---- Mission / goal block ---- */
.goal-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.goal-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.goal-text h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}
.goal-text p {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink);
  line-height: 1.5;
}
.goal-text strong {
  color: var(--accent-ink);
  font-weight: 800;
}
@media (max-width: 900px) {
  .goal-block { grid-template-columns: 1fr; }
}

/* ---- Fit-together / process steps (Our Services hub) ---- */
.fit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.fit-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}
.fit-step .fit-num {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 10px;
}
.fit-step p { color: var(--muted); font-size: 14.5px; }
.fit-step strong { color: var(--ink); font-weight: 700; }
@media (max-width: 1024px) { .fit-steps { grid-template-columns: 1fr; } }

/* ---- Engagement callout ---- */
.callout {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.callout h3 { font-size: 18px; margin-bottom: 8px; }
.callout p { color: var(--muted); font-size: 15px; max-width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--navy-line-soft);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,0.55); max-width: 60ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14.5px;
}
.footer-col a:hover { color: #fff; }
.footer-col a[href="/contact/"] { font-weight: 700; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .cta-panel { padding: 30px 22px; }
  .top-banner { height: 180px; }
}

.contact-form {
  max-width: 720px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: "Aptos Display", "Aptos", "Calibri Light", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: "Calibri", "Carlito", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 14px;
  min-height: 20px;
}
.form-status[data-state="success"] { color: #1a7f37; }
.form-status[data-state="error"] { color: #c0392b; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Short pages: keep footer at the bottom ---- */
.page-fill {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-fill main {
  flex: 1;
  padding-bottom: 64px;
}

/* ---- 404 ---- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-page .mono { color: var(--accent-ink); }
.error-page h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0 16px; }
.error-page p { color: var(--muted); font-size: 17px; margin-bottom: 28px; max-width: 50ch; }
