/* MSB Property Maintenance. System fonts, no web fonts, no inline styles:
   the CSP allows only this file. Motion is opt-in by class and switched
   off under prefers-reduced-motion. */

:root {
  --navy: #0f2a44;
  --navy-deep: #091a2c;
  --navy-soft: #1d3d5f;
  --amber: #f0a92b;
  --amber-deep: #d48e12;
  --paper: #f7f5f0;
  --paper-deep: #ece8df;
  --white: #ffffff;
  --ink: #1b2733;
  --ink-soft: #4d5d6c;
  --line: #d9d4c8;
  --ok: #1f8a4c;
  --bad: #b3261e;
  --stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(9, 26, 44, .12);
  --shadow-lift: 0 18px 44px rgba(9, 26, 44, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --step: 90ms;
  --wrap: 1140px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--stack);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:hover { color: var(--amber-deep); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--navy-deep); padding: .6rem 1rem; border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---- header ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding: .5rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 245, 240, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(217, 212, 200, .7);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header--over {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent;
}
.site-header--over.scrolled {
  background: rgba(9, 26, 44, .88);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.site-header--over .brand-text, .site-header--over .site-nav a:not(.btn) { color: var(--white); }
.site-header--over .brand-mark .brand-house { fill: var(--white); }
.site-header--over .brand-mark .brand-window { fill: var(--navy); }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand-text { font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand-text b { color: var(--amber); font-weight: 900; }
.brand-mark .brand-house { fill: var(--navy); }
.brand-mark .brand-door { fill: var(--amber); }
.brand-mark .brand-window { fill: var(--white); }

.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.site-nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .35rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- buttons --------------------------------------------------------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.1;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn:hover::after { animation: sheen .9s var(--ease); }
.btn-primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(240, 169, 43, .35); }
.btn-primary:hover { background: #f6b94a; color: var(--navy-deep); box-shadow: 0 12px 28px rgba(240, 169, 43, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-call { background: var(--navy); color: var(--white); padding: .55rem 1rem; font-size: .95rem; }
.btn-call svg { fill: var(--amber); }
.btn-call:hover { background: var(--navy-soft); color: var(--white); }
.site-header--over .btn-call { background: var(--amber); color: var(--navy-deep); }
.site-header--over .btn-call svg { fill: var(--navy-deep); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- type helpers ---------------------------------------------------- */

.eyebrow {
  display: inline-block; margin: 0 0 .8rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; background: var(--amber); vertical-align: middle; margin-right: .6rem; }
.section-h { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.page-h { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; }

/* ---- hero ------------------------------------------------------------ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
  color: var(--white);
  padding-top: var(--header-h);
}
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-media .pic, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { transform-origin: 60% 40%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 26, 44, .88) 0%, rgba(9, 26, 44, .7) 45%, rgba(9, 26, 44, .25) 100%),
    linear-gradient(0deg, rgba(9, 26, 44, .75) 0%, transparent 40%);
}
.hero-body { padding: clamp(3rem, 8vw, 6rem) 0; max-width: 760px; }
.hero .eyebrow { color: var(--amber); }
.hero-h { color: var(--white); font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.04; margin-bottom: 1.2rem; }
.hero-h .w { display: inline-block; }
.hero-h .accent { color: var(--amber); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 56ch; margin-bottom: 1.8rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amber); }

/* ---- trust strip ----------------------------------------------------- */

.trust { background: var(--navy); color: var(--white); padding: 2.2rem 0; }
.trust-list { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-list li { display: grid; grid-template-columns: 40px 1fr; gap: .4rem 1rem; align-items: start; }
.trust-list svg { width: 40px; height: 40px; fill: var(--amber); grid-row: 1 / span 2; }
.trust-list h2 { color: var(--white); font-size: 1.05rem; margin: .2rem 0 0; }
.trust-list p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ---- sections -------------------------------------------------------- */

section { scroll-margin-top: var(--header-h); }
.services, .how, .about, .sectors, .testimonials, .contact, .prose-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sectors, .testimonials { background: var(--white); }

/* services grid */
.service-grid { list-style: none; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 2.2rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 1.2rem 1.3rem 1.4rem; }
.service-body h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.service-blurb { color: var(--ink-soft); margin-bottom: .8rem; }
.service-items { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.service-items li { font-size: .82rem; font-weight: 600; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }
.service-more { font-weight: 800; color: var(--amber-deep); display: inline-flex; gap: .3rem; align-items: center; transition: gap .25s var(--ease); }
.service-card:hover .service-more { gap: .6rem; }
.services-note { margin-top: 2rem; color: var(--ink-soft); }

/* sectors */
.sector-list { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2rem 0; }
.sector-list li { border-left: 4px solid var(--amber); padding: .2rem 0 .2rem 1.1rem; }
.sector-list h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.sector-list p { margin: 0; color: var(--ink-soft); }
.compliance { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.compliance h3 { color: var(--amber); font-size: 1.1rem; }
.compliance p { margin: 0; color: rgba(255, 255, 255, .85); }

/* how it works */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.4rem; position: relative; }
.steps li { position: relative; padding-top: 1rem; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transform-origin: left; border-radius: 2px;
}
.step-n {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--amber); font-weight: 900; margin: .6rem 0 .8rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* about */
.about-grid { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; } }
.about-media { position: relative; }
.about-media .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.about-media::after {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; z-index: -1;
  border-radius: var(--radius); background: var(--amber); opacity: .35;
}
.facts { display: grid; gap: .8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 1.4rem 0 1.6rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber-deep); font-weight: 800; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }

/* testimonials */
.quote-list { list-style: none; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2rem; }
.quote-list li { background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; position: relative; }
.quote-list li::before { content: "\201C"; position: absolute; top: .2rem; left: 1rem; font-size: 4rem; line-height: 1; color: var(--amber); opacity: .6; font-family: Georgia, serif; }
.quote-list blockquote { margin: 0; padding-top: 1.2rem; }
.quote-by { margin: .8rem 0 0; font-weight: 700; color: var(--navy); font-size: .95rem; }

/* cta band */
.cta-band {
  color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy), var(--navy-soft), var(--navy));
  background-size: 300% 300%;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---- inner pages ----------------------------------------------------- */

.page-head { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head .eyebrow { color: var(--amber); }
.page-head .page-h { color: var(--white); }
.page-head .section-lede { color: rgba(255, 255, 255, .85); }
.page-head a:not(.btn) { color: var(--amber); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }

/* contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.contact-form { min-width: 0; background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; gap: 0 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.opt { font-weight: 500; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(15, 42, 68, .12); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-weight: 600; font-size: .92rem; margin: .4rem 0 0; }
.field-hint { color: var(--ink-soft); font-size: .9rem; margin: .4rem 0 0; }
.form-alert { background: #fdecea; border: 1px solid #f4b5b0; color: var(--bad); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.form-alert p { margin: 0; font-weight: 600; }
.form-consent { font-size: .92rem; color: var(--ink-soft); }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.contact-aside { display: grid; gap: 1.2rem; }
.aside-card { min-width: 0; }
.aside-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.aside-card p { margin: 0 0 .3rem; }
.aside-phone a { font-size: 1.5rem; font-weight: 900; text-decoration: none; }
.aside-steps { padding-left: 1.2rem; color: var(--ink-soft); }
.aside-steps li { margin-bottom: .4rem; }

/* ---- footer ---------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { font-size: 1.2rem; color: var(--white); margin-bottom: .4rem; }
.footer-brand b { color: var(--amber); }
.footer-h { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber); }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: rgba(255, 255, 255, .55); }

/* ---- motion ---------------------------------------------------------- */

@keyframes sheen { from { left: -60%; opacity: 1; } to { left: 120%; opacity: 0; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.1em); } to { opacity: 1; transform: none; } }
@keyframes drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: kenburns 26s ease-in-out infinite alternate; }
  .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
  .cta-band { animation: drift 18s ease-in-out infinite; }

  .hero-h .w, .rise { opacity: 0; animation: rise .9s var(--ease) forwards; }
  .hero-h .w:nth-child(1) { animation-delay: .1s; }
  .hero-h .w:nth-child(2) { animation-delay: .18s; }
  .hero-h .w:nth-child(3) { animation-delay: .26s; }
  .hero-h .w:nth-child(4) { animation-delay: .34s; }
  .hero-h .w:nth-child(5) { animation-delay: .5s; }
  .hero-h .w:nth-child(6) { animation-delay: .58s; }
  .hero-h .w:nth-child(7) { animation-delay: .66s; }
  .rise { animation-delay: .25s; }
  .rise + .rise, .rise ~ .rise { animation-delay: .85s; }
  .hero .eyebrow.rise { animation-delay: 0s; }
  .page-head .rise:nth-child(1) { animation-delay: 0s; }
  .page-head .rise:nth-child(2) { animation-delay: .12s; }
  .page-head .rise:nth-child(3) { animation-delay: .24s; }
  .page-head .rise:nth-child(4) { animation-delay: .36s; }

  html.js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .stagger > :nth-child(2) { transition-delay: calc(var(--step) * 1); }
  html.js .stagger > :nth-child(3) { transition-delay: calc(var(--step) * 2); }
  html.js .stagger > :nth-child(4) { transition-delay: calc(var(--step) * 3); }
  html.js .stagger > :nth-child(5) { transition-delay: calc(var(--step) * 4); }
  html.js .stagger > :nth-child(6) { transition-delay: calc(var(--step) * 5); }
  html.js .stagger > :nth-child(7) { transition-delay: calc(var(--step) * 6); }
  html.js .stagger > :nth-child(8) { transition-delay: calc(var(--step) * 7); }
  html.js .stagger > :nth-child(9) { transition-delay: calc(var(--step) * 8); }
  html.js .stagger > :nth-child(10) { transition-delay: calc(var(--step) * 9); }
  html.js .stagger > :nth-child(11) { transition-delay: calc(var(--step) * 10); }
  html.js .stagger > :nth-child(12) { transition-delay: calc(var(--step) * 11); }

  html.js .steps li::before { transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
  html.js .steps li.in::before { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .rise, .hero-h .w { opacity: 1; transform: none; }
}

/* ---- small screens --------------------------------------------------- */

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-header--over { position: sticky; background: rgba(9, 26, 44, .92); }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .btn-call span { display: none; }
  .btn-call { padding: .55rem .7rem; }
  .hero { min-height: 0; padding-top: 1rem; }
  .hero-body { padding: 3rem 0 4rem; }
  .scroll-cue { display: none; }
  .about-media::after { display: none; }
  .site-nav a:not(.btn) {
    font-size: 14px;
  }
}
