/* Bridgeward — production stylesheet
   Extracted from the approved Claude Design canvas (Bridgeward Homepage.dc.html).
   Visual values (colors, spacing, type scale) are preserved as designed. */

:root {
  --bg: #F7F5F0;
  --bg-alt: #E5E1D8;
  --ink: #1A1917;
  --ink-hover: #3A3833;
  --muted: #5C6670;
  --border: rgba(92, 102, 112, 0.28);
  --accent: #8F5130;
  --accent-underline: #9C5A35;

  --dark-bg: #1A1917;
  --dark-text: #F7F5F0;
  --dark-muted: #9AA2AA;
  --dark-border: rgba(154, 162, 170, 0.4);
  --dark-border-soft: rgba(154, 162, 170, 0.34);
  --dark-accent: #C08256;
  --dark-chip-bg: #F7F5F0;
  --dark-chip-fg: #1A1917;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-width: 1180px;
  --pad-inline: clamp(20px, 5vw, 56px);
}

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

/* The `hidden` attribute must always win over any author display rule
   (e.g. .success-panel/.enquiry-form set display:grid/flex for their
   visible state) — otherwise toggling `hidden` in JS is a no-op. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

input, textarea, button, select { font-family: inherit; }

button { border: none; background: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dark :focus-visible,
section[id="proof"] :focus-visible,
.site-footer :focus-visible { outline-color: var(--dark-accent); }

::selection { background: var(--bg-alt); }

table { border-collapse: collapse; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow.on-dark { color: var(--dark-muted); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--pad-inline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.logo .tight { letter-spacing: -0.042em; }
.nav-main {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 32px);
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 15px;
  row-gap: 8px;
}
.nav-main a { color: var(--muted); }
.nav-main a[aria-current="page"] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(64px, 10vw, 130px);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--ink);
}
.hero-title em { font-style: italic; }
.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 34px;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink-hover); color: var(--bg); }
.link-underline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent-underline);
  padding-bottom: 2px;
}
.hero-note {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.browser-frame {
  border: 1px solid var(--border);
  background: var(--bg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.browser-dot { width: 8px; height: 8px; background: #9AA2AA; flex: none; }
.browser-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame img {
  width: 100%;
  height: clamp(300px, 34vw, 430px);
  object-fit: cover;
  object-position: top center;
}

/* ---------- Section shells ---------- */
.section {
  padding-top: clamp(64px, 9vw, 130px);
  padding-bottom: clamp(64px, 9vw, 130px);
}
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); }
.section-dark { background: var(--dark-bg); color: var(--dark-text); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

/* ---------- Pain points ---------- */
.pain-lede {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 52px;
  max-width: 56ch;
}
.pain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--border);
}
.pain-item {
  padding: 28px 30px 32px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 150px;
}
.pain-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.pain-title { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0; }
.pain-body { font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Process ---------- */
.section-title.process-title { margin-bottom: 60px; max-width: 22ch; }
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.process-item { border-top: 1px solid var(--border); padding-top: 20px; }
.process-index {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.process-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; line-height: 1.35; }
.process-item p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 42ch; }

/* ---------- Pricing ---------- */
.pricing-wrap { max-width: 760px; }
.section-title.pricing-title { margin-bottom: 40px; max-width: 22ch; }
.pricing-card { background: var(--bg-alt); padding: clamp(34px, 4vw, 44px); }
.pricing-table { width: 100%; font-size: 17px; }
.pricing-table.secondary { margin-top: 18px; border-top: 1px solid rgba(92, 102, 112, 0.5); }
.pricing-table td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}
.pricing-table td:last-child { padding-right: 0; }
.pricing-table .value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.pricing-table.secondary .value {
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
}
.pricing-notes { display: grid; gap: 14px; margin-top: 20px; max-width: 62ch; }
.pricing-notes p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Proof / case studies ---------- */
.proof-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: 52px;
}
.proof-header .section-title { margin: 0; max-width: 22ch; }
.proof-header p { font-size: 16px; line-height: 1.65; color: var(--dark-muted); margin: 0; max-width: 46ch; }

.tab-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--dark-border-soft);
  padding-bottom: 24px;
  margin-bottom: 26px;
}
.chip-btn {
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: var(--dark-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.chip-btn[aria-pressed="true"] { background: var(--dark-chip-bg); color: var(--dark-chip-fg); }

.view-toggle-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.toggle-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.toggle-btn[aria-pressed="true"] { background: var(--dark-chip-bg); color: var(--dark-chip-fg); }

.case-intro {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 62ch;
}

.compare-frame { position: relative; padding: 26px; }
.compare-corner { position: absolute; background: var(--dark-text); }
.compare-corner.tl-h { top: 0; left: 0; width: 17px; height: 1.5px; }
.compare-corner.tl-v { top: 0; left: 0; width: 1.5px; height: 17px; }
.compare-corner.br-h { bottom: 0; right: 0; width: 17px; height: 1.5px; }
.compare-corner.br-v { bottom: 0; right: 0; width: 1.5px; height: 17px; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}
.compare-figure { margin: 0; }
.compare-figure .browser-frame { border-color: var(--dark-border); }
.compare-figure .browser-bar { background: var(--bg-alt); border-bottom-color: var(--border); }
.compare-figure .browser-dot { width: 7px; height: 7px; }
.compare-figure .browser-url { margin-left: 8px; font-size: 10.5px; }
.compare-figure img { height: clamp(300px, 38vw, 460px); }
.compare-figure figcaption { margin-top: 14px; display: grid; gap: 7px; }
.compare-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.compare-note { font-size: 15px; color: var(--dark-muted); line-height: 1.6; margin: 0; }

.proof-caption {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-muted);
  line-height: 1.7;
}

.proof-cta {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--dark-border-soft);
}
.proof-cta a { color: var(--dark-accent); border-bottom: 1.5px solid var(--dark-accent); padding-bottom: 2px; font-size: 16px; font-weight: 500; }

/* ---------- Services ---------- */
.section-title.services-title { margin-bottom: 56px; max-width: 22ch; }
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.service-item { border-top: 1px solid var(--border); padding-top: 20px; }
.service-item .eyebrow { margin-bottom: 16px; }
.service-item h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.service-item p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 42ch; }
.service-item.later h3 { font-size: 22px; color: var(--muted); }
.service-item.later p { font-size: 15px; color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-figure { margin: 0; }
.about-figure .frame {
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.about-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { font-size: 17px; line-height: 1.65; margin: 0 0 18px; max-width: 48ch; }
.about-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Differentiators ---------- */
.section-title.reasons-title { margin-bottom: 56px; max-width: 24ch; }
.reasons-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.reason-item { border-top: 1px solid var(--border); padding-top: 20px; }
.reason-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; line-height: 1.35; }
.reason-item p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 42ch; }

/* ---------- Enquiry / contact ---------- */
.enquiry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.enquiry-copy h2 { margin: 0 0 24px; max-width: 20ch; }
.enquiry-copy p { font-size: 17px; line-height: 1.65; margin: 0 0 18px; max-width: 46ch; }

.enquiry-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input, .form-field textarea {
  height: 48px;
  border: 1px solid var(--muted);
  padding: 0 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.form-field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form-field input[aria-invalid="true"] { border-color: #B3462F; }
.field-error { font-size: 13px; color: #B3462F; }

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

.form-submit {
  height: 54px;
  width: 100%;
  cursor: pointer;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-privacy { font-size: 11px; color: var(--muted); }

.form-error {
  border: 1px solid #B3462F;
  background: #F3E7E2;
  color: #6E2B18;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.form-error a { color: #6E2B18; text-decoration: underline; }

.success-panel {
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 14px;
  min-height: 360px;
  align-content: center;
}
.success-panel .headline {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.success-panel p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 38ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: baseline;
  margin-bottom: 32px;
}
.footer-brand { font-family: var(--font-serif); font-weight: 400; font-size: 25px; letter-spacing: -0.012em; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--dark-text); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 2;
  color: var(--dark-muted);
  display: grid;
  gap: 0;
}
.footer-meta a { color: var(--dark-accent); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .pricing-table .value { white-space: normal; }
}
