/* ==========================================================================
   CERVINO Management Group — main.css
   Design system: deep navy / off-white / muted copper, Fraunces + Inter
   ========================================================================== */

:root {
  /* Palette */
  --bg: #FAF9F6;
  --bg-white: #FFFFFF;
  --navy: #0E1B2C;
  --navy-deep: #0A1422;
  --slate: #2A3644;
  --ink: #1A2129;
  --ink-soft: #4A5460;
  --ink-muted: #6E7884;
  --copper: #B08D57;
  --copper-soft: #C5A572;
  --copper-dim: rgba(176, 141, 87, 0.14);
  --steel: #5B7A9D;
  --hairline: #E5E2DB;
  --hairline-dark: rgba(255, 255, 255, 0.10);
  --on-dark: #EDEAE3;
  --on-dark-muted: #9AA5B1;

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

  /* Scale */
  --text-hero: clamp(2.6rem, 6vw, 4.75rem);
  --text-h1: clamp(2.4rem, 5vw, 3.9rem);
  --text-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --text-h3: clamp(1.3rem, 2vw, 1.6rem);
  --text-body-lg: clamp(1.075rem, 1.4vw, 1.25rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-eyebrow: 0.8125rem;

  /* Layout */
  --container: 1180px;
  --container-wide: 1320px;
  --section-pad: clamp(4.5rem, 10vw, 9rem);
  --radius: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.28s;

  --header-h: 76px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--copper); color: #fff; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
}

.lede {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46em;
}

.section-dark .lede { color: var(--on-dark-muted); }

/* ---------- Layout primitives ---------- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

.section-white { background: var(--bg-white); }

.section-dark {
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1.2rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease),
              border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn .arrow { transition: transform var(--speed) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-soft); border-color: var(--copper-soft); }

.btn-outline-light { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-dark { border-color: rgba(14,27,44,0.35); color: var(--navy); }
.btn-outline-dark:hover { border-color: var(--navy); background: rgba(14,27,44,0.05); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--copper);
}
.text-link .arrow { transition: transform var(--speed) var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              height var(--speed) var(--ease);
}

/* On-dark (over hero) by default for dark-hero pages */
.site-header { color: #fff; }

.site-header.scrolled {
  height: 64px;
  background: rgba(250, 249, 246, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(14, 27, 44, 0.08);
  color: var(--navy);
}

.header-inner {
  width: min(var(--container-wide), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.brand-mark { width: 30px; height: 30px; color: var(--copper); flex: none; }

.brand-text { display: flex; flex-direction: column; gap: 0.18rem; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.72;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
}

.primary-nav > a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding-block: 0.3rem;
  transition: opacity var(--speed) var(--ease);
}

.primary-nav > a:not(.btn):hover { opacity: 1; }

.primary-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--copper);
  transition: right var(--speed) var(--ease);
}

.primary-nav > a:not(.btn):hover::after,
.primary-nav > a[aria-current="page"]::after { right: 0; }

.primary-nav > a[aria-current="page"] { opacity: 1; }

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-color: rgba(255,255,255,0.45);
  color: inherit;
}
.nav-cta:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.site-header.scrolled .nav-cta { border-color: rgba(14,27,44,0.3); }
.site-header.scrolled .nav-cta:hover { background: var(--copper); border-color: var(--copper); color: #fff; }

/* Light-header pages (no dark hero behind it) */
.header-solid .site-header:not(.scrolled) { color: var(--navy); }
.header-solid .site-header:not(.scrolled) .nav-cta { border-color: rgba(14,27,44,0.3); }
.header-solid .site-header:not(.scrolled) .nav-cta:hover { color: #fff; }

/* Mobile nav */
.nav-toggle {
  display: none;
  z-index: 110;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--navy-deep);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  body.nav-open .primary-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { color: #fff; }

  .primary-nav > a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.7rem;
    opacity: 0.9;
  }

  .nav-cta { margin-top: 1rem; border-color: rgba(255,255,255,0.45); color: #fff; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #13263C 100%);
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 9vw, 7rem);
  max-width: 880px;
}

.hero h1 {
  font-size: var(--text-hero);
  color: #fff;
  margin-bottom: 1.6rem;
}

.hero h1 .accent { color: var(--copper-soft); font-style: italic; }

.hero .lede { color: var(--on-dark-muted); margin-bottom: 2.6rem; max-width: 40em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
  letter-spacing: 0.04em;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-meta i {
  width: 5px; height: 5px;
  background: var(--copper);
  border-radius: 50%;
  flex: none;
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #13263C 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.page-hero h1 { color: #fff; margin-bottom: 1.4rem; max-width: 18em; }
.page-hero .lede { color: var(--on-dark-muted); }
.page-hero .container { position: relative; z-index: 2; }

.contour {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(14, 27, 44, 0.18);
  border-color: rgba(176, 141, 87, 0.45);
}

.card .card-icon {
  width: 46px; height: 46px;
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.card h3 { margin-bottom: 0.8rem; color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 0.9688rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1.2rem;
}

/* ---------- Capability grid ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cap-item {
  background: var(--bg-white);
  padding: 1.6rem 1.7rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.45;
  transition: background var(--speed) var(--ease);
}

.cap-item:hover { background: #FCFBF8; }

.cap-item svg { width: 22px; height: 22px; color: var(--copper); flex: none; margin-top: 0.05rem; }

/* ---------- Differentiators (dark) ---------- */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3.5vw, 3rem);
}

.diff-item { display: flex; gap: 1.2rem; align-items: flex-start; }

.diff-item svg { width: 26px; height: 26px; color: var(--copper-soft); flex: none; margin-top: 0.15rem; }

.diff-item h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; color: #fff; margin-bottom: 0.4rem; letter-spacing: 0; }
.diff-item p { color: var(--on-dark-muted); font-size: 0.9375rem; }

/* ---------- Industry pills ---------- */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--hairline);
  background: var(--bg-white);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease),
              color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.pill:hover {
  border-color: var(--copper);
  background: var(--copper-dim);
  color: var(--navy);
  transform: translateY(-2px);
}

.pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--navy-deep), var(--navy) 70%);
  color: var(--on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: #fff; margin-bottom: 1.3rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2.5rem; max-width: 44em; }
.cta-band .container { position: relative; z-index: 2; }

/* ---------- Detail sections (services / industries / network) ---------- */

.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
}

.detail-block:first-of-type { border-top: 0; padding-top: 0; }
.detail-block:last-of-type { padding-bottom: 0; }

.detail-block.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.detail-block.flip .detail-side { order: 2; }
.detail-block.flip .detail-main { order: 1; }

.detail-side .service-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--copper);
  display: block;
  margin-bottom: 1rem;
}

.detail-side h2 { color: var(--navy); font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 1.2rem; }
.detail-side p { color: var(--ink-soft); }

.detail-main h3 {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.3rem;
}

.check-list { display: grid; gap: 0.85rem; }
.check-list.two-col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9688rem;
  color: var(--slate);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--copper-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23B08D57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}

@media (max-width: 820px) {
  .detail-block, .detail-block.flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .detail-block.flip .detail-side { order: 1; }
  .detail-block.flip .detail-main { order: 2; }
}

/* Sub-nav (services anchors) */
.subnav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.subnav-inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }

.subnav a {
  flex: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.subnav a:hover, .subnav a.active { color: var(--navy); background: var(--copper-dim); }

/* ---------- Values grid (About) ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.value-item {
  background: var(--bg-white);
  padding: 2rem 1.8rem;
}

.value-item .value-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--copper);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}

.value-item h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--navy); letter-spacing: 0; }

/* Statement panel */
.statement-panel {
  border-left: 2px solid var(--copper);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  max-width: 880px;
}

.statement-panel p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: var(--navy);
  font-weight: 450;
}

.section-dark .statement-panel p { color: #fff; }

/* Leadership */
.bio-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-white);
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 760px;
}

.bio-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--copper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  overflow: hidden;
  border: 2px solid rgba(176, 141, 87, 0.45);
}

.bio-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.bio-email {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.bio-email:hover { color: var(--navy); border-color: var(--navy); }

.bio-card h3 { color: var(--navy); margin-bottom: 0.25rem; }
.bio-card .bio-title { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); margin-bottom: 1rem; }
.bio-card p { color: var(--ink-soft); font-size: 0.9375rem; }

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

/* ---------- Flow diagram (Network Solutions) ---------- */

.flow-wrap {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow-x: auto;
}

.flow-wrap svg { min-width: 720px; width: 100%; height: auto; }

.flow-route {
  stroke-dasharray: 6 7;
  animation: routeFlow 1.6s linear infinite;
}

@keyframes routeFlow {
  to { stroke-dashoffset: -13; }
}

/* ---------- Forms ---------- */

.form-shell {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: 0 30px 60px -40px rgba(14, 27, 44, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.field label .req { color: var(--copper); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  width: 100%;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #B4543E; }

.field-error { font-size: 0.8rem; color: #B4543E; display: none; }
.field.has-error .field-error { display: block; }

.form-status {
  display: none;
  margin-top: 1.4rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.success { display: block; background: #EDF3EC; color: #2F5D3A; border: 1px solid #C9DCC9; }
.form-status.error { display: block; background: #F8EDEA; color: #8C3B2A; border: 1px solid #E8CFC7; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(160px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.footer-brand .brand { color: #fff; margin-bottom: 1.3rem; }
.footer-brand p { font-size: 0.9375rem; max-width: 34em; line-height: 1.7; }

.footer-col h4 {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.2rem;
}

.footer-col ul { display: grid; gap: 0.7rem; }

.footer-col a {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
  transition: color var(--speed) var(--ease);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  position: relative;
  z-index: 2;
}

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

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* Hero route lines: drawn in on load */
.draw-line {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: drawLine 2.4s var(--ease) forwards;
  animation-delay: var(--draw-delay, 0.3s);
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.node-pulse {
  animation: nodePulse 3.2s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw-line { animation: none; stroke-dashoffset: 0; }
  .node-pulse, .flow-route { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Legal pages ---------- */

.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.4rem; color: var(--navy); margin: 2.4rem 0 0.9rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.9688rem; margin-bottom: 0.9rem; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; }
.legal-updated { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: 2rem; }

/* ---------- Misc ---------- */

.divider-motif {
  display: flex;
  gap: 6px;
  margin-bottom: 1.6rem;
}

.divider-motif i {
  width: 22px; height: 14px;
  border: 1.2px solid var(--copper);
  opacity: 0.55;
  border-radius: 2px;
}
.divider-motif i:nth-child(2) { opacity: 0.35; }
.divider-motif i:nth-child(3) { opacity: 0.2; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }
