/* Fixed Bridge site styles. Mobile first, fluid between 360 and 1920. */
:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --navy-mid: #13315C;
  --sand: #F4F1EA;
  --sand-deep: #EBE6DA;
  --white: #FFFFFF;
  --line: #DDD6C8;
  --line-strong: #C9C2B2;
  --field-border: #857F6D;
  --teal: #2A9D8F;
  --teal-bright: #5CC4B8;
  --teal-text: #1F7A70;
  --gold: #F2C48D;
  --tide-gray: #4A5A70;
  --mist: #C9D3E0;
  --mist-dim: #9FB0C6;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
  --nav-h: 68px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --nav-h: 88px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--tide-gray);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
.section:not(.on-navy) :focus-visible, .form-panel :focus-visible { outline-color: var(--teal-text); }

/* Type */
.eyebrow {
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--teal-text); margin-bottom: 18px;
}
.on-navy .eyebrow { color: var(--teal-bright); }
.approach .eyebrow { color: #1A6B62; }
@media (min-width: 900px) { .eyebrow { font-size: 0.8125rem; } }

h1, h2, h3, .numeral { font-family: var(--serif); font-weight: 500; color: var(--navy); font-optical-sizing: auto; }
.on-navy h1, .on-navy h2 { color: var(--sand); }
h1 { font-size: clamp(2.875rem, 1.6rem + 4.2vw, 4.875rem); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.25rem, 1.2rem + 2.9vw, 3.375rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5625rem, 1.3rem + 0.7vw, 1.875rem); line-height: 1.2; }
em { font-style: italic; }
.on-navy em { color: var(--gold); }
.lede { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.6; }
.on-navy .lede, .on-navy p { color: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--sand); color: var(--sand); background: transparent; }
.btn-outline:hover { background: rgba(244, 241, 234, 0.12); }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }
.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup svg { width: 36px; height: auto; flex: none; }
.wordmark {
  font: 600 0.9375rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.22em; color: var(--sand);
}
@media (min-width: 900px) {
  .nav .lockup svg { width: 46px; }
  .wordmark { font-size: 1.0625rem; }
}
.mark-deck { fill: var(--sand); }
.mark-wave { stroke: var(--teal-bright); }

.nav-links { display: none; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--sand); text-decoration: none; font-size: 0.9375rem; padding: 10px 0; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-links .btn { min-height: 44px; padding: 10px 22px; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.menu-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(244, 241, 234, 0.35); border-radius: 4px; color: var(--sand); cursor: pointer;
}
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
@media (min-width: 900px) { .menu-btn { display: none; } }

.mobile-menu { display: none; background: var(--navy); border-top: 1px solid rgba(244, 241, 234, 0.15); padding: 8px var(--gutter) 24px; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; min-height: 48px; color: var(--sand); text-decoration: none; font-size: 1.0625rem; border-bottom: 1px solid rgba(244, 241, 234, 0.12); }
.mobile-menu .btn { width: 100%; margin-top: 20px; }
@media (min-width: 900px) { .mobile-menu, .mobile-menu.open { display: none; } }

/* Hero */
.hero { background: var(--navy); padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .lede { margin-top: 24px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta-row .btn { flex: 1 1 100%; }
.hero-note { display: none; margin-top: 36px; font-size: 0.9375rem; color: var(--mist-dim); max-width: 32rem; }
.photo { position: relative; border-radius: 6px; overflow: hidden; background: var(--navy-mid); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img, .photo .ph { width: 100%; height: 100%; object-fit: cover; }
.hero .photo { aspect-ratio: 342 / 318; }
.hero .photo img { object-position: 50% 55%; }
.photo figcaption {
  position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 0.8125rem; color: #F4F1EA;
  text-shadow: 0 1px 6px rgba(7, 26, 51, 0.85);
}
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  color: var(--mist); font-size: 0.875rem; background: var(--navy-mid);
  background-image: repeating-linear-gradient(135deg, rgba(244,241,234,0.05) 0 12px, transparent 12px 24px);
}
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1100px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 640px) minmax(0, 576px); gap: 64px; justify-content: space-between; }
  .hero .photo { aspect-ratio: 576 / 535; }
  .hero-note { display: block; }
}

/* Services */
.section-head { max-width: 46rem; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 64px; } }
.cards { display: grid; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; }
.numeral { font-size: clamp(3rem, 2.4rem + 1.6vw, 4rem); line-height: 1; color: var(--teal-text); margin-bottom: 20px; }
.card h3 { margin-bottom: 14px; }
.card p { flex: 1; }
.tags { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--teal-text); font-weight: 500; }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .card { padding: 40px; }
}

/* Approach */
.approach { background: var(--sand-deep); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 40px; }
.step { position: relative; padding-left: 52px; }
.steps::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 3px; background: var(--navy); }
.marker { position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--navy); border: 4px solid var(--sand-deep); box-sizing: content-box; margin: -4px; }
.step:last-child .marker { background: var(--accent); }
.step-label { font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--navy); margin-bottom: 10px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps::before { left: 0; right: 0; top: 10px; bottom: auto; width: auto; height: 3px; }
  .step { padding: 52px 0 0; }
}

/* Track record */
.proof-intro { margin-top: 16px; max-width: 40rem; }
.proof-cards { display: grid; gap: 20px; }
.proof-card { border: 1px solid var(--line-strong); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; }
.proof-card .numeral { color: var(--navy); margin-bottom: 16px; }
.proof-card p { flex: 1; }
.proof-tag { margin-top: 22px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-text); }
.creds { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 1rem; }
@media (min-width: 900px) {
  .proof-cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .proof-card { padding: 40px; }
}

/* About */
.about { background: var(--navy); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about .photo { width: 100%; max-width: 460px; aspect-ratio: 460 / 560; }
.about .photo img { object-position: 50% 25%; }
.about .lede { margin-top: 24px; }
.about-rule { border: 0; border-top: 1px solid rgba(244, 241, 234, 0.2); margin: 36px 0 28px; }
.person { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; color: var(--sand); line-height: 1.2; }
.role { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--teal-bright); }
.bio { margin-top: 16px; color: var(--mist-dim); font-size: 1rem; }
@media (min-width: 1100px) {
  .about-grid { grid-template-columns: 460px minmax(0, 1fr); gap: 88px; }
}

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-grid .lede { margin-top: 24px; }
.contact-grid a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; }
.form-panel { max-width: 720px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid var(--field-border); border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal-text); outline-offset: 1px; border-color: var(--teal-text); }
.form-panel .btn { width: 100%; }
.cf-turnstile { margin-bottom: 22px; }
.form-status { margin-bottom: 20px; }
.form-status p { padding: 14px 16px; border-radius: 4px; font-weight: 500; font-size: 1rem; }
.form-status .ok { background: #E3F2EE; color: #14554D; }
.form-status .err { background: #FBE9E3; color: #8A2E0E; }
@media (min-width: 1200px) {
  .contact-grid { grid-template-columns: 520px minmax(0, 1fr); gap: 88px; }
  .form-panel { padding: 44px; max-width: none; }
  .form-panel .btn { width: auto; }
}

/* Footer */
.site-footer { background: var(--navy-deep); padding: 40px 0; }
.footer-row { display: flex; flex-direction: column; gap: 24px; }
.site-footer .lockup svg { width: 40px; }
.site-footer p { color: var(--mist-dim); font-size: 0.9375rem; }
@media (min-width: 700px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
