/* MDM Accounting: shared site styles. Loads after scrollcraft.css (tokens + reset).
   Brand (client logo): royal blue #003AA6, black, white.
   60 / 30 / 10: white ground, black text and structure, royal blue ONLY on buttons and links.
   One standout (filled) button per screen: .btn. Everything else is .btn--ghost or a text link. */

:root {
  --sc-canvas:     #FFFFFF;
  --sc-surface:    #FFFFFF;
  --sc-ink:        #121212;
  --sc-ink-soft:   #4A505C;
  --sc-accent:     #003AA6;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-shadow-color: 220 12% 12%;
  --band: #121212;
  --band-ink-soft: #C9CCD3;
  --tint: #F4F5F7;
  --accent-hover: #002B7F;
  --radius: var(--sc-r-md);
}

body { background: var(--sc-canvas); }
a { color: var(--sc-accent); }
a:hover { color: var(--accent-hover); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--sc-gutter); top: var(--sc-2); z-index: 100; background: var(--sc-surface); padding: var(--sc-2) var(--sc-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- headings -- */
.h-page { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.9rem); line-height: 1.04; letter-spacing: var(--sc-track-tight); text-wrap: balance; margin: 0; }
.h-sec  { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-2xl); line-height: 1.06; letter-spacing: var(--sc-track-snug); text-wrap: balance; margin: 0; }
.h-card { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); line-height: 1.12; letter-spacing: var(--sc-track-snug); margin: 0; }
.lede { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 58ch; text-wrap: pretty; margin: 0; }
.prose p { margin: var(--sc-4) 0 0; max-width: 66ch; color: var(--sc-ink-soft); text-wrap: pretty; }
.prose p:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ header -- */
.bar { position: sticky; top: 0; z-index: var(--sc-z-chrome); background: var(--sc-canvas); border-bottom: 1px solid var(--sc-hairline); }
.bar__in { display: flex; align-items: center; gap: var(--sc-5); min-height: 4.75rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.6rem); margin-left: auto; font-size: var(--sc-t-sm); }
.nav a { color: var(--sc-ink); text-decoration: none; white-space: nowrap; padding-block: 0.4rem; }
.nav a:hover { color: var(--sc-accent); text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: var(--sc-2); background: none; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 25%, transparent); border-radius: var(--radius); padding: 0.55rem 0.8rem; font-weight: 600; color: var(--sc-ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.nav__extra { display: none; }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .bar .btn--quote { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--sc-canvas); border-bottom: 1px solid var(--sc-hairline);
    padding: var(--sc-3) var(--sc-gutter) var(--sc-6); box-shadow: var(--sc-e2);
    font-size: var(--sc-t-base);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--sc-hairline); }
  .nav__extra { display: grid; gap: var(--sc-4); padding-top: var(--sc-5); }
  .nav__extra .btn--ghost { justify-content: center; }
  .nav__extra a.call { border: 0; font-weight: 600; color: var(--sc-accent); text-decoration: underline; }
  .bar { position: sticky; }
}
@media (max-width: 700px) { .bar__in { min-height: 3.9rem; } .logo img { height: 38px; } }

/* ------------------------------------------------------------------ buttons -- */
.btn {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sc-3);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 600; font-size: var(--sc-t-base); line-height: 1.2;
  padding: 1rem 1.5rem; border-radius: var(--radius); border: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 4px hsl(var(--sc-shadow-color) / 0.16), 0 14px 30px -10px hsl(220 100% 33% / 0.42);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--accent-hover); color: var(--sc-accent-ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.2), 0 6px 14px -8px hsl(220 100% 33% / 0.42); }
.btn:focus-visible { outline: 3px solid var(--sc-ink); outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* secondary: outlined, never competes with the one filled button on screen */
.btn--ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sc-2);
  background: transparent; color: var(--sc-accent); border: 1.5px solid var(--sc-accent);
  font-weight: 600; font-size: var(--sc-t-sm); line-height: 1.2;
  padding: 0.7rem 1.1rem; border-radius: var(--radius); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.btn--ghost svg { width: 16px; height: 16px; flex: none; }
.btn--ghost:hover { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--ghost:active { transform: translateY(1px); }
.btn--ghost:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.btn--quote { flex: none; }

.textlink { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; display: inline-flex; align-items: center; gap: 0.35em; }
.textlink::after { content: "\2192"; text-decoration: none; display: inline-block; transition: transform 140ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover::after { transform: translateX(3px); } }

/* ---------------------------------------------------------------- sections -- */
.section { padding-block: var(--sc-section); }
.section--tint { background: var(--tint); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.band { background: var(--band); color: #FFFFFF; }
.band .h-sec, .band .h-card { color: #FFFFFF; }
.band .lede, .band p { color: var(--band-ink-soft); }
.sec-head { display: grid; gap: var(--sc-4); margin-bottom: var(--sc-7); }

/* --------------------------------------------------------------- home hero -- */
.hero { position: relative; overflow-x: clip; padding-block: clamp(3.5rem, 10vh, 7rem) clamp(3rem, 7vh, 5rem); }
.hero__photo { position: absolute; z-index: 0; pointer-events: none; top: 0; bottom: 0; right: 0; width: min(50%, 860px); }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 44%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 44%), linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero__in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 600; max-width: 18ch; line-height: 1.02; }
.hero__sub { margin-top: var(--sc-5); font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 44ch; text-wrap: pretty; }
.hero__actions { margin-top: var(--sc-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); }

/* ------------------------------------------------------- inner page header -- */
.page-hero { position: relative; overflow-x: clip; padding-block: clamp(3rem, 8vh, 6rem) clamp(2.5rem, 6vh, 4.5rem); border-bottom: 1px solid var(--sc-hairline); }
.page-hero__in { position: relative; z-index: 1; display: grid; gap: var(--sc-5); }
.page-hero__photo { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: min(44%, 760px); pointer-events: none; }
.page-hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%);
  mask-image: linear-gradient(to right, transparent 0%, #000 50%);
}
.page-hero .h-page { max-width: 18ch; }
.page-hero .lede { max-width: 52ch; }
.draft-flag { display: inline-block; justify-self: start; padding: 0.4rem 0.75rem; border: 1.5px dashed var(--sc-ink); border-radius: var(--radius); font-weight: 600; font-size: var(--sc-t-sm); }

/* ------------------------------------------------------------------- cards -- */
.card { background: var(--sc-surface); border-radius: var(--radius); padding: clamp(1.4rem, 2.2vw, 2rem); box-shadow: var(--sc-edge), var(--sc-e2); border: 1px solid color-mix(in oklab, var(--sc-ink) 8%, transparent); }
.card p { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); }
.icon { width: 40px; height: 40px; color: var(--sc-ink); }
.ticks { margin: var(--sc-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--sc-3); }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border: 2px solid currentColor; border-radius: 2px; transform: rotate(45deg) scale(0.8); }

/* photo placeholders: clearly marked until the client sends photos */
.ph { display: grid; place-items: center; text-align: center; border: 2px dashed color-mix(in oklab, var(--sc-ink) 30%, transparent); border-radius: var(--radius); background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--sc-ink) 3%, transparent) 0 12px, transparent 12px 24px); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); padding: var(--sc-5); }
.ph strong { display: block; color: var(--sc-ink); font-weight: 600; margin-bottom: var(--sc-1); }
.ph--portrait { aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------ closing CTA -- */
.cta-band { text-align: left; }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--sc-6) var(--sc-8); align-items: end; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: 1fr; align-items: start; } }

/* ------------------------------------------------------------------ footer -- */
.foot { background: var(--band); color: var(--band-ink-soft); padding-block: var(--sc-9) var(--sc-6); font-size: var(--sc-t-sm); }
.foot a { color: #FFFFFF; }
.foot a:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sc-7) var(--sc-8); }
.foot__name { font-family: var(--sc-font-display); font-weight: 700; color: #FFFFFF; font-size: var(--sc-t-lg); letter-spacing: 0.04em; margin: 0; }
.foot__tag { color: #FFFFFF; margin: var(--sc-3) 0 0; font-size: var(--sc-t-base); }
.foot p { margin: var(--sc-2) 0 0; }
.foot h2 { font-family: var(--sc-font-text); font-size: var(--sc-t-sm); font-weight: 600; color: #FFFFFF; margin: 0 0 var(--sc-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-2); }
.foot__legal { margin-top: var(--sc-8); padding-top: var(--sc-5); border-top: 1px solid color-mix(in oklab, #FFFFFF 18%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sc-3) var(--sc-6); }
.foot__legal ul { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- phone -- */
@media (max-width: 700px) {
  .hero { padding-top: 12.5rem; padding-bottom: var(--sc-7); }
  .hero__photo { left: 0; right: 0; bottom: auto; width: auto; height: 15rem; }
  .hero__photo img { object-position: 72% 30%; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
  .hero h1 { font-size: var(--sc-t-2xl); line-height: 1.06; }
  .hero__sub { font-size: var(--sc-t-base); }
  .page-hero__photo { display: none; }
  .btn { white-space: normal; text-align: center; width: 100%; }
}
