/* FS Logic public site + customer portal — base, header/footer, type scale.
   Foundation (F0) provides this base; owner A extends it with page sections
   (hero, services, request form, ...) BELOW the marked line.
   Same brand tokens as admin.css (navy #003468, charcoal #2d2d2d from the logo).
   No inline styles anywhere: the CSP is style-src 'self'. */

:root {
  --brand: #003468;
  --brand-dark: #00264d;
  --brand-hover: #002b57;
  --brand-tint: #e7eef7;
  --charcoal: #2d2d2d;
  --ink: #23272e;
  --muted: #5d6877;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ok: #1d7a49;
  --ok-bg: #e6f4ec;
  --warn: #8f5b00;
  --warn-bg: #fdf2d8;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --tap: 44px;
  /* type scale (fluid between phone and desktop) */
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { color: var(--charcoal); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.eyebrow { display: inline-block; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
:focus-visible { outline: 3px solid rgba(0, 52, 104, .35); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; 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: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--charcoal); border-color: #c7cfda; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.site-brand img { display: block; width: 140px; height: auto; }
@media (min-width: 700px) { .site-brand img { width: 155px; } }
.site-nav-toggle {
  min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; font-weight: 650; color: var(--charcoal); cursor: pointer;
}
.site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
.site-nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 4px; color: var(--charcoal); font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav a.btn { justify-content: center; color: #fff; margin-top: 6px; }
.site-header.nav-open .site-nav { display: flex; }
@media (min-width: 860px) {
  .site-nav-toggle { display: none; }
  .site-nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 24px; padding: 0; }
  .site-nav a { padding: 0; }
  .site-nav a.btn { margin: 0; padding: 0 18px; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0; margin-top: 40px; font-size: var(--step--1); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-brand strong { color: var(--charcoal); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links a { color: var(--muted); }

/* portal (customer link pages; owner C extends) */
.portal-header .header-inner { min-height: 64px; flex-wrap: nowrap; }
.portal-contact { font-weight: 600; text-decoration: none; font-size: var(--step--1); white-space: nowrap; }
.portal-main { padding-top: 28px; padding-bottom: 28px; }
.portal .site-footer { margin-top: 24px; }

/* simple notices usable on any public page */
.notice { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.notice-ok { background: var(--ok-bg); border-color: #cbe8d7; color: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: #f1dca7; color: var(--warn); }
.notice-danger { background: var(--danger-bg); border-color: #f5cbc6; color: var(--danger); }

/* placeholder (until owner A builds the real pages) */
.placeholder-hero { padding: 72px 0; text-align: center; }
.placeholder-hero img { width: 260px; margin-bottom: 24px; }

/* ===================== owner A: page sections below this line ===================== */
/* Owner A (public site). Calm and roomy: soft section backgrounds, one accent
   colour (the logo navy), simple line icons, no photos or busy effects. */
:root {
  --line-strong: #c4cdd8;
  --brand-soft: #f3f7fb;
  --radius-lg: 14px;
  --shadow-md: 0 6px 24px rgba(16, 24, 40, .07), 0 1px 3px rgba(16, 24, 40, .06);
  --focus-ring: 0 0 0 3px rgba(0, 52, 104, .16);
}
.center { text-align: center; }
.container.narrow { max-width: 860px; }
.section-tight { padding: 40px 0; }
@media (min-width: 900px) { .section-tight { padding: 56px 0; } }
.mt-cta { margin: 40px 0 0; }
.subhead { font-size: var(--step-1); margin: 32px 0 14px; }

/* icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: .45em; }

/* preview bar (only while the site is not live) */
.preview-bar { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #f1dca7; font-size: var(--step--1); }
.preview-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.preview-inner a { color: var(--warn); font-weight: 650; }

/* section headings */
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: .3em; }
.section-head .lead { margin: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 28px; }
.section-foot p { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; min-height: var(--tap); }
.link-arrow .icon-inline { margin: 0; transition: transform .15s; }
.link-arrow:hover .icon-inline { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* buttons added for the public pages */
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* hero */
.hero { padding: 44px 0 56px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; }
}
.hero h1 { max-width: 17ch; margin-bottom: .45em; }
.hero .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
@media (max-width: 559px) { .hero-actions .btn { width: 100%; } }
.hero-note { display: flex; align-items: center; color: var(--muted); font-size: var(--step--1); margin: 0; }
.hero-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-md); }
@media (min-width: 700px) { .hero-card { padding: 32px; } }
.hero-card-title { font-size: var(--step-1); margin-bottom: 18px; }

/* check lists */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li + li { margin-top: 12px; }
.checklist .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--brand); stroke-width: 2.2; }
.checklist-compact li + li { margin-top: 8px; }

/* card grids */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: border-color .15s, box-shadow .15s; }
.feature-card:hover { border-color: #c9d6e6; box-shadow: var(--shadow-md); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-title { font-size: 1.125rem; margin: 16px 0 6px; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); flex: none; }
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile-soft { background: #fff; border: 1px solid var(--line); }
.icon-tile-lg { width: 56px; height: 56px; }
.icon-tile-lg .icon { width: 30px; height: 30px; }
/* Five services: 2 + 2 + 1 (wide) on tablets, 3 + 2 on desktops. */
@media (min-width: 640px) and (max-width: 999px) {
  .card-grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-services > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .card-grid-services { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid-services > * { grid-column: span 2; }
  .card-grid-services > :nth-child(n+4) { grid-column: span 3; }
}
.card-grid-audience { gap: 28px 40px; }
@media (min-width: 760px) { .card-grid-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audience-item { display: flex; gap: 16px; align-items: flex-start; }
.audience-item .feature-title { margin-top: 4px; }
.audience-item p { color: var(--muted); margin: 0; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { border-top: 2px solid var(--line); padding-top: 22px; }
.step p { color: var(--muted); margin: 0; }
.step .feature-title { margin-top: 14px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; }

/* rates */
.price-list { list-style: none; margin: 0; padding: 0; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; }
.price-item + .price-item { border-top: 1px solid var(--line); }
.price-label { font-weight: 600; color: var(--charcoal); flex: 1 1 200px; }
.price-value { font-weight: 700; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* about */
.about-block { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .about-block.has-photo { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; } }
.about-page { align-items: start; }
.about-photo { display: block; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.about-copy h2 { margin-bottom: .4em; }
.about-text { font-size: 1.0625rem; }

/* contact */
.contact-block { display: grid; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; background: #fff; }
@media (min-width: 860px) { .contact-block { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 44px; gap: 48px; } }
.contact-intro h2 { margin-bottom: .3em; }
.contact-intro .lead { margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-list .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 3px; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-label { display: block; font-size: var(--step--1); color: var(--muted); }
.contact-list-compact { gap: 10px; }
.contact-list-compact li { align-items: center; }
.contact-list-compact .icon { margin-top: 0; width: 20px; height: 20px; }

/* closing call to action */
.cta-band { background: var(--brand); color: #fff; padding: 48px 0; }
@media (min-width: 900px) { .cta-band { padding: 64px 0; } }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: var(--step-2); margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 36rem; }
@media (max-width: 559px) { .cta-band .btn { width: 100%; } }
/* The band sits flush on the footer on pages that end with it. */
.page-home .site-footer, .page-services .site-footer, .page-about .site-footer { margin-top: 0; }

/* inner page header */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 56px; } }
.page-hero h1 { font-size: var(--step-3); margin-bottom: .35em; }
.page-hero .lead { max-width: 40rem; margin: 0; }
.page-hero-compact { padding: 36px 0 32px; }
@media (min-width: 900px) { .page-hero-compact { padding: 52px 0 44px; } }

/* services page */
.service-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.service-row:first-child { border-top: 0; padding-top: 8px; }
@media (min-width: 700px) { .service-row { gap: 28px; padding: 40px 0; } }
@media (max-width: 479px) { .service-row { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.service-title { font-size: var(--step-2); margin-bottom: .4em; }
.service-body p { color: var(--ink); max-width: 44rem; }
.list-label { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }

/* long-form text */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }

/* ---------------------------------------------------------------- request form */
.request-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
  .request-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .request-aside { position: sticky; top: 92px; }
}
.request-form { min-width: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px 6px; margin-bottom: 20px; }
@media (min-width: 700px) { .form-card { padding: 28px 28px 10px; } }
.form-card fieldset, .choice-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-field { margin-bottom: 18px; }
/* legends: float + full width so margins behave like a heading */
.form-card-title, .choice-field > legend { float: left; width: 100%; padding: 0; }
.form-card-title + *, .choice-field > legend + * { clear: both; }
.form-card-title { display: flex; align-items: center; gap: 12px; font-size: var(--step-1); font-weight: 700; color: var(--charcoal); margin: 0 0 6px; }
.form-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: .95rem; flex: none; }
.form-card-explainer { color: var(--muted); font-size: var(--step--1); margin: 0 0 20px; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.field { margin-bottom: 18px; min-width: 0; }
.field > label, .field-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.choice-field > legend.field-label { margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.field .req, .is-required > label::after, .is-required > legend::after { color: var(--danger); }
.is-required > label::after, .is-required > legend::after { content: " *"; }
.help { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 6px; line-height: 1.45; }
.error-text { display: block; color: var(--danger); font-size: var(--step--1); font-weight: 600; margin-top: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=datetime-local],
.field select, .field textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.field input[type=datetime-local] { -webkit-appearance: none; appearance: none; }
.field input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6877' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffbfa; }

.choice-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.choice-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.choice-card:hover, .choice-pill:hover { border-color: var(--brand); }
.choice-card input, .choice-pill input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice-card:has(input:checked), .choice-pill:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.choice-card:has(input:focus-visible), .choice-pill:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.choice-icon { color: var(--brand); display: inline-flex; }
.choice-text { display: block; min-width: 0; }
.choice-title { display: block; font-weight: 650; color: var(--charcoal); }
.choice-help { display: block; color: var(--muted); font-size: var(--step--1); line-height: 1.45; margin-top: 2px; }
.choice-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 550; }
.choice-pill input { margin: 0; }
.has-error .choice-card, .has-error .choice-pill { border-color: var(--danger); }

.conditional { margin: 4px 0 18px; padding: 18px 16px 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 700px) { .conditional { padding: 20px 20px 4px; } }
.conditional-title { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hours-note { display: flex; align-items: center; margin: -6px 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-dark); font-size: var(--step--1); font-weight: 600; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 16px; }
.form-errors { border: 1px solid #f5cbc6; background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.form-alert { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 20px; font-weight: 550; }
.form-alert .icon-inline { margin-top: .2em; vertical-align: 0; }
.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; }
.form-submit p { margin: 0; }
@media (max-width: 599px) { .form-submit .btn { width: 100%; } }

.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; }
.aside-card-plain { background: #fff; }
.aside-title { font-size: 1.0625rem; margin-bottom: 12px; }
.mini-steps { margin: 0; padding-left: 1.3em; color: var(--muted); }
.mini-steps li { margin-bottom: 10px; padding-left: 2px; }
.mini-steps li::marker { color: var(--brand); font-weight: 700; }
.mini-steps strong { color: var(--charcoal); }

/* thanks page */
.thanks-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; box-shadow: var(--shadow-md); }
@media (min-width: 700px) { .thanks-card { padding: 44px; } }
.thanks-icon { display: inline-flex; color: var(--ok); }
.thanks-icon .icon { width: 56px; height: 56px; stroke-width: 1.4; }
.thanks-card h1 { font-size: var(--step-3); margin: 14px 0 .4em; }
.thanks-times { background: var(--bg-soft); border-radius: 12px; padding: 18px 20px; margin: 24px 0 8px; }
.time-list { list-style: none; margin: 0 0 8px; padding: 0; }
.time-list li { display: flex; align-items: center; font-weight: 600; color: var(--charcoal); }
.time-list li + li { margin-top: 8px; }
.time-list .icon-inline { color: var(--brand); flex: none; }
.thanks-actions { margin: 28px 0 0; }

/* coming soon */
.page-coming-soon { background: var(--bg-soft); }
.coming-soon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 16px; }
.coming-soon-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 18px; padding: 40px 24px; text-align: center; box-shadow: var(--shadow-md); }
@media (min-width: 600px) { .coming-soon-card { padding: 52px 48px; } }
.coming-soon-logo { display: block; width: 220px; height: auto; margin: 0 auto 32px; }
.coming-soon-card h1 { font-size: var(--step-3); }
.coming-soon-card .lead { margin-bottom: 0; }
.coming-soon-contact { margin: 20px 0 0; }
.coming-soon-contact a { font-weight: 650; overflow-wrap: anywhere; }
.coming-soon-foot { color: var(--muted); font-size: var(--step--1); margin: 0; }
.btn.is-busy { opacity: .75; cursor: progress; }

/* ================================================================ blueprint look
   (Sam 11-17: "make the public site really shine, maybe some construction /
   blueprint, high rise photos in the background" -- overrides the earlier
   no-buildings / no-photos note for the website; the logo rule is unchanged.)
   Deep-navy drafting surfaces with a fine grid, thin light-blue line work and
   registration marks. PHOTO-READY: the --photo classes layer
   static/img/hero/{hero,blueprints,site}.jpg UNDER a navy overlay. Templates
   add a --photo class only when its file exists (Jinja static_exists), so a
   missing photo shows the plain blueprint without a 404 in the console
   (integration 11-17). The overlay keeps white text well above WCAG AA. */
:root {
  --bp-deep: #001a35;
  --bp-navy: #00264d;
  --bp-ink: #cfe3f7;
  --bp-line-c: rgba(186, 220, 255, .78);
  --bp-grid-major: rgba(160, 205, 255, .10);
  --bp-grid-minor: rgba(160, 205, 255, .045);
  --bp-sky: #9cc7f0;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

/* the drafting surface: major + minor grid over a navy wash (+ optional photo) */
.bp-surface {
  position: relative; isolation: isolate; color: #fff;
  background-color: var(--bp-navy);
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-minor) 1px, transparent 1px),
    radial-gradient(ellipse 80% 70% at 78% 35%, rgba(0, 72, 140, .55) 0%, rgba(0, 26, 53, 0) 70%),
    linear-gradient(135deg, var(--bp-deep) 0%, var(--bp-navy) 55%, #003468 100%);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%, 100% 100%;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0;
}
/* photo variants: the same grid, a translucent navy overlay, then the photo */
.hero--photo, .band--photo, .cta-band--photo {
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%, 100% 100%, cover;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0, center;
  background-repeat: repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
}
.hero--photo {
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-minor) 1px, transparent 1px),
    radial-gradient(ellipse 80% 70% at 78% 35%, rgba(0, 72, 140, .35) 0%, rgba(0, 26, 53, 0) 70%),
    linear-gradient(100deg, rgba(0, 22, 45, .96) 0%, rgba(0, 32, 64, .90) 50%, rgba(0, 52, 104, .80) 100%),
    url("../img/hero/hero.jpg");
}
.band--photo {
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-minor) 1px, transparent 1px),
    radial-gradient(ellipse 70% 90% at 85% 20%, rgba(0, 72, 140, .4) 0%, rgba(0, 26, 53, 0) 70%),
    linear-gradient(100deg, rgba(0, 22, 45, .95) 0%, rgba(0, 38, 77, .88) 100%),
    url("../img/hero/blueprints.jpg");
}
.cta-band--photo {
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-minor) 1px, transparent 1px),
    radial-gradient(ellipse 60% 120% at 90% 50%, rgba(0, 72, 140, .45) 0%, rgba(0, 26, 53, 0) 70%),
    linear-gradient(90deg, rgba(0, 22, 45, .95) 0%, rgba(0, 38, 77, .88) 100%),
    url("../img/hero/site.jpg");
}
.bp-surface h1, .bp-surface h2, .bp-surface h3 { color: #fff; }
.bp-surface .lead { color: rgba(255, 255, 255, .84); }
.bp-surface a:not(.btn) { color: #fff; }

/* registration / corner marks (decorative) */
.bp-reg { position: absolute; z-index: -1; width: 28px; height: 28px; pointer-events: none; opacity: .55; }
.bp-reg::before, .bp-reg::after { content: ""; position: absolute; background: var(--bp-sky); }
.bp-reg::before { left: 0; top: 13px; width: 28px; height: 1px; }
.bp-reg::after { left: 13px; top: 0; width: 1px; height: 28px; }
.bp-reg-tl { left: 16px; top: 16px; }
.bp-reg-br { right: 16px; bottom: 16px; }
@media (min-width: 900px) { .bp-reg-tl { left: 28px; top: 24px; } .bp-reg-br { right: 28px; bottom: 24px; } }

/* eyebrow with a small dimension tick */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.section-head-center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.eyebrow-light, .bp-surface .eyebrow { color: var(--bp-sky); }

/* ghost button for dark surfaces */
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.bp-surface .btn-light { box-shadow: 0 8px 24px rgba(0, 10, 25, .35); }
.bp-surface :focus-visible { outline-color: rgba(255, 255, 255, .7); }

/* ---- hero */
.hero { padding: 48px 0 96px; border-bottom: 0; overflow: hidden; }
.hero-grid { position: relative; }
.hero h1 { max-width: 15ch; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem); letter-spacing: -.02em; line-height: 1.08; }
.hero .lead { max-width: 33rem; }
.bp-surface .hero-note { color: rgba(255, 255, 255, .78); }
.hero-note .icon-inline { color: var(--bp-sky); }
.hero-art { display: flex; justify-content: center; margin: 4px auto -32px; width: 100%; max-width: 380px; opacity: .9; }
.bp-drawing { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 940px) {
  .hero { padding: 72px 0 132px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 520px; margin: -12px 0 -40px; opacity: 1; }
}
/* line weights, like pens on a drawing */
.bp-drawing line, .bp-drawing rect, .bp-drawing circle, .bp-drawing path { fill: none; stroke: var(--bp-line-c); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bp-drawing .bp-strong { stroke: rgba(220, 238, 255, .95); stroke-width: 2; }
.bp-drawing .bp-line { stroke-width: 1.4; }
.bp-drawing .bp-thin { stroke-width: 1; stroke: rgba(186, 220, 255, .6); }
.bp-drawing .bp-hair { stroke-width: .75; stroke: rgba(186, 220, 255, .38); }
.bp-drawing .bp-dash { stroke-width: .75; stroke: rgba(186, 220, 255, .45); stroke-dasharray: 3 4; }
.bp-drawing .bp-dim { stroke-width: .9; stroke: rgba(156, 199, 240, .75); }
.bp-drawing .bp-fill { fill: rgba(120, 180, 240, .07); }
.bp-text { fill: rgba(190, 222, 255, .8); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.bp-text-c { text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .bp-drawing { animation: bp-fade 1.2s ease-out both; }
  @keyframes bp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* "What you can expect" strip, pulled up over the hero edge */
.expect-strip-wrap { position: relative; z-index: 2; margin-top: -56px; }
.expect-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(0, 26, 53, .14), 0 2px 6px rgba(0, 26, 53, .06); padding: 22px 20px; }
.expect-title { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.expect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 28px; }
.expect-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--charcoal); line-height: 1.4; }
.expect-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--brand); stroke-width: 2.2; }
@media (min-width: 640px) { .expect-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .expect-strip { padding: 26px 32px; }
  .expect-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- service cards with a blueprint accent */
.card-grid-services { counter-reset: svc; gap: 20px; }
.card-grid-services .feature-card {
  position: relative; padding: 28px 24px 26px;
  background-color: #fff;
  background-image:
    linear-gradient(225deg, rgba(255, 255, 255, 0) 0%, #fff 72%),
    repeating-linear-gradient(0deg, rgba(0, 52, 104, .07) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(0, 52, 104, .07) 0 1px, transparent 1px 12px);
  background-size: 160px 110px; background-position: right top; background-repeat: no-repeat;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.card-grid-services .feature-card::before { content: ""; position: absolute; left: 24px; top: -1px; width: 56px; height: 3px; background: var(--brand); border-radius: 0 0 2px 2px; }
.card-grid-services .feature-card::after { counter-increment: svc; content: "0" counter(svc); position: absolute; right: 22px; top: 22px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: #8a9ab0; }
.card-grid-services .feature-card:hover { transform: translateY(-2px); border-color: #b9cbe0; box-shadow: 0 14px 34px rgba(0, 26, 53, .10); }
@media (prefers-reduced-motion: reduce) { .card-grid-services .feature-card:hover { transform: none; } }
.icon-tile { background: var(--brand-tint); box-shadow: inset 0 0 0 1px rgba(0, 52, 104, .1); }

/* ---- who we work with: light drafting paper band */
.bp-paper {
  background-color: var(--brand-soft);
  background-image:
    linear-gradient(rgba(0, 52, 104, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 52, 104, .06) 1px, transparent 1px),
    linear-gradient(rgba(0, 52, 104, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 52, 104, .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.card-grid-audience { gap: 16px; }
.audience-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .card-grid-audience { gap: 20px; } .audience-card { padding: 26px 28px 24px; } }

/* ---- how it works: connected timeline */
.steps { position: relative; counter-reset: none; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dashed #b7c7da; }
.step { position: relative; border-top: 0; padding: 0 0 0 68px; }
.step .feature-title { margin-top: 8px; }
.step-num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; font-family: var(--mono); box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(0, 26, 53, .18); }
@media (min-width: 820px) {
  .steps::before { left: 22px; right: calc((100% - 80px) / 3 - 22px); top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed #b7c7da; }
  .step { padding: 70px 0 0; }
  .step .feature-title { margin-top: 0; }
}

/* ---- closing band */
.cta-band { padding: 56px 0; overflow: hidden; }
@media (min-width: 900px) { .cta-band { padding: 80px 0; } }
.cta-band h2 { font-size: var(--step-3); letter-spacing: -.015em; }
.cta-band p { color: rgba(255, 255, 255, .84); }
.cta-band .bp-reg-tl { opacity: .45; }

/* ---- inner page headers */
.page-hero { border-bottom: 0; padding: 52px 0 48px; overflow: hidden; }
@media (min-width: 900px) { .page-hero { padding: 76px 0 68px; } }
.page-hero.bp-surface::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 340px; height: 340px; border: 1px solid rgba(156, 199, 240, .22); border-radius: 50%; box-shadow: 0 0 0 40px rgba(156, 199, 240, .03), 0 0 0 41px rgba(156, 199, 240, .12); pointer-events: none; }
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); letter-spacing: -.02em; }
.page-hero-compact { padding: 44px 0 40px; }
@media (min-width: 900px) { .page-hero-compact { padding: 60px 0 52px; } }

/* services page rows: number + blueprint rule */
.service-list { counter-reset: srv; }
.service-row { counter-increment: srv; position: relative; }
.service-row .icon-tile-lg { position: relative; }
.service-title::before { content: "0" counter(srv); display: block; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: #7d8ea5; margin-bottom: 8px; }
.service-row + .service-row { border-top: 1px dashed var(--line-strong); }

/* request form + thanks page sit under the same drafting header */
.page-request .form-card { box-shadow: var(--shadow); }
.form-step { background: var(--brand); color: #fff; font-family: var(--mono); }
.thanks-stage {
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 220px, var(--bg-soft) 220px),
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bp-navy) 0, var(--bp-navy) 220px, transparent 220px);
  background-size: auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px, auto;
  padding-top: 48px;
}
@media (min-width: 900px) { .thanks-stage { padding-top: 72px; } }
.thanks-card { position: relative; border-top: 4px solid var(--brand); box-shadow: 0 24px 60px rgba(0, 26, 53, .18), 0 2px 6px rgba(0, 26, 53, .06); }
.page-thanks .site-footer { margin-top: 0; }

/* coming soon: the card floats on the drafting surface */
.page-coming-soon .coming-soon-card { box-shadow: 0 30px 80px rgba(0, 10, 25, .45); border-top-color: #fff; }
.page-coming-soon .coming-soon-card h1 { color: var(--charcoal); }
.page-coming-soon .coming-soon-card .lead { color: var(--muted); }
.page-coming-soon .coming-soon-card a { color: var(--brand); }
.page-coming-soon .coming-soon-foot { color: rgba(255, 255, 255, .72); font-family: var(--mono); letter-spacing: .06em; }

/* ---- footer (public pages; the customer portal keeps its own look) */
body.public .site-footer {
  margin-top: 0; border-top: 0; color: rgba(255, 255, 255, .72); padding: 40px 0;
  background-color: var(--bp-deep);
  background-image: linear-gradient(rgba(160, 205, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 205, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
body.public .footer-inner { align-items: center; }
body.public .footer-brand { line-height: 1.9; }
body.public .footer-brand strong { color: #fff; font-size: 1rem; letter-spacing: .01em; }
body.public .site-footer a { color: rgba(255, 255, 255, .86); display: inline-flex; align-items: center; min-height: var(--tap); }
body.public .footer-brand a { min-height: 32px; }
body.public .site-footer a:hover { color: #fff; }
body.public .footer-links span { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }

/* refinements: inner-header drawing, service rows, logo tap target */
.page-hero.bp-surface::after {
  right: 0; bottom: 0; top: 0; width: min(46vw, 460px); height: auto;
  border: 0; border-radius: 0; box-shadow: none; opacity: .9;
  background: url("../img/site/bp-frame.svg") no-repeat right 24px bottom / contain;
}
@media (max-width: 699px) { .page-hero.bp-surface::after { opacity: .35; width: 70vw; } }
.hero .bp-reg-br { bottom: 84px; }
.site-brand { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 1000px) {
  .service-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "title label" "text list"; column-gap: 56px; align-items: start; }
  .service-title { grid-area: title; }
  .service-body > p:not(.list-label) { grid-area: text; margin: 0; }
  .service-body .list-label { grid-area: label; align-self: end; margin: 0 0 12px; }
  .service-body .checklist { grid-area: list; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
}
.page-coming-soon .coming-soon-card { color: var(--ink); }
@media (min-width: 700px) and (max-width: 1199px) { .page-hero.bp-surface::after { opacity: .45; } }
