/* ==========================================================
   AIT — site styles
   Brand tokens: set these to your exact logo hexes.
   Hero photo: set --hero-photo to your existing background.
   ========================================================== */
:root {
  --maroon: #7F0000;          /* from logo */
  --maroon-deep: #2B0B0B;
  --maroon-tint: #E3B9B9;     /* maroon accent on dark backgrounds */
  --charcoal: #1A1416;        /* hero overlay: warm near-black */
  --ink: #141414;
  --muted: #5E5758;
  --paper: #FFFFFF;
  --stone: #F1EFEC;
  --line: #DCD7D2;

  --hero-photo: url("/assets/images/hero-bg.jpg");

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 36rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; padding-block: 1rem; flex-wrap: wrap;
}
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
  padding-block: .25rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--maroon); color: var(--maroon); }
.nav a.nav-cta { border: 1px solid var(--maroon); padding: .45rem 1rem; color: var(--maroon); }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--maroon); color: #fff; }

/* ---------- Photo hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(100deg, rgba(26,20,22,.86) 0%, rgba(26,20,22,.62) 38%, rgba(26,20,22,.10) 80%, rgba(26,20,22,0) 100%),
    var(--hero-photo) center 60% / cover no-repeat;
  background-color: var(--charcoal);
}
.hero .wrap { padding-block: clamp(5rem, 12vw, 9rem); }
.hero--short .wrap { padding-block: clamp(3rem, 7vw, 4.5rem); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.05;
  letter-spacing: -.01em; margin: 0 0 1.5rem; max-width: 16ch;
}
.hero--short h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: .75rem; max-width: 22ch; }
.hero p { font-size: 1.15rem; max-width: 34rem; margin: 0 0 2rem; color: rgba(255,255,255,.88); }
.hero--short p { margin-bottom: 0; }
.hero .rule { width: 4rem; height: 2px; background: var(--maroon-tint); margin: 0 0 1.75rem; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 .95rem/1 var(--sans);
  padding: 1rem 1.6rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--maroon-tint); color: var(--maroon-deep); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); margin-left: .75rem; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-deep); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.hero .availability { font-size: .9rem; color: rgba(255,255,255,.7); margin: 1.75rem 0 0; }

/* ---------- Sections ---------- */
main section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-stone { background: var(--stone); }
h2 {
  font-family: var(--serif); font-weight: 500; color: var(--maroon);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; margin: 0 0 1.25rem;
}
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin: 0 0 .5rem; color: var(--ink); }
p { margin: 0 0 1.1rem; }
.lede { font-size: 1.2rem; max-width: var(--measure); color: var(--muted); }
.prose { max-width: var(--measure); }
.prose p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 7fr; gap: 5rem; } }

/* Principles: a quiet list divided by rules */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles p { margin: 0; color: var(--muted); max-width: var(--measure); }

/* The Health Check — the one bold moment */
.offer {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  border-left: 3px solid var(--maroon); padding-left: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 860px) { .offer { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.offer ul { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.offer li { margin-bottom: .5rem; }
.fee { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--maroon); margin: 0 0 .25rem; }
.fee-note { font-size: .95rem; color: var(--muted); }

/* Services */
.service { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.service:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .service { grid-template-columns: 4fr 8fr; gap: 4rem; } }
.service p { color: var(--muted); max-width: var(--measure); }
.service ul { margin: .5rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.service .for { font-size: .95rem; color: var(--ink); margin: 0; }

/* Closing band */
.cta-band { background: var(--maroon); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: var(--measure); }

/* ---------- Contact ---------- */
.steps { margin: 0; padding-left: 1.25rem; }
.steps li { margin-bottom: 1rem; color: var(--muted); }
.steps strong { color: var(--ink); }
form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 0; padding: .8rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(110,31,47,.15); }
textarea { min-height: 9rem; resize: vertical; }
.row2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-left: 3px solid var(--maroon); background: var(--stone); }
.form-status.error { border-left-color: #B00020; }
.form-status[hidden] { display: none; }
.direct { font-size: .95rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-deep); color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 2.25rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--maroon-tint); }
.footer-logo { height: 40px; width: auto; opacity: .9; }
.client-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 560px) {
  .btn-ghost { margin-left: 0; margin-top: .75rem; }
  .brand img { height: 38px; }
  .nav { gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Two-tier Health Check */
.tiers { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tier h3 { margin-bottom: .25rem; }
.tier .sub { color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.tier ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.tier li { margin-bottom: .45rem; }
.scope-note { font-size: .92rem; color: var(--muted); max-width: 46rem; margin-top: 2.5rem; }
.tiers .offer { grid-template-columns: 1fr; }

/* Hero sizing: consistent heights across inner pages */
main section.hero { padding-block: 0; }
.hero .wrap { padding-block: clamp(6rem, 13vw, 10rem); }
.hero--short .wrap {
  padding-block: 2.5rem;
  min-height: clamp(15rem, 26vw, 20rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero--short p { max-width: 40rem; }

/* Inner-page heroes: same height on every page regardless of text length */
.hero--short .wrap { min-height: 18rem; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; }
.hero--short h1 { max-width: none; }
@media (max-width: 560px) { .hero--short .wrap { min-height: 17rem; padding-block: 2.5rem; } }

/* Inline field errors */
.field-error { color: #B00020; font-size: .88rem; margin: 0; }
.field-error::before { content: "! "; font-weight: 600; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B00020; box-shadow: 0 0 0 1px #B00020; }
#form-success { font-size: 1.1rem; padding: 1.5rem 1.75rem; }
#form-success:focus { outline: none; }
form[hidden], .field-error[hidden] { display: none; }
.row2 { align-items: start; }
.field { align-content: start; }

.field-note { color: var(--maroon); font-size: .88rem; margin: 0; }
.field-note[hidden] { display: none; }

/* Only weights that are actually loaded: sans 400/600, serif 500/600 */
strong, b { font-weight: 600; }
