/* ==========================================================================
   Terrone Co, LLC — v2 stylesheet ("lighter, prestigious")
   Ivory paper ground, system serif display, navy ink, restrained gold.
   One stylesheet, no build step, no downloaded fonts.
   ========================================================================== */

:root {
  /* Palette — paper-forward */
  --paper:       #faf9f6;  /* warm ivory ground */
  --paper-2:     #f3f0e9;  /* subtle panel / alternating band */
  --white:       #ffffff;

  --navy:        #12314f;  /* primary ink accent, footer */
  --navy-deep:   #0f2740;
  --steel:       #3d5a75;
  --gold:        #8a6d2f;  /* accent — hairlines, eyebrows, monogram */
  --gold-soft:   #b0913f;

  --ink:         #1b2733;  /* headings / near-black */
  --ink-body:    #2c3742;  /* running text */
  --ink-soft:    #4c5762;
  --ink-faint:   #79828d;

  --line:        #e5e0d5;  /* warm hairline */
  --line-strong: #d2caba;

  /* Layout */
  --maxw:        66rem;
  --measure:     40rem;
  --gutter:      1.5rem;
  --radius:      3px;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

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

/* Hidden attribute must win over class display rules (for JS form toggles). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

/* --- Typography ------------------------------------------------------------ */

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0 0 0.5em; font-weight: 500; }
h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}
.lede { font-family: var(--sans); font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6; }

/* --- A11y skip link / focus ------------------------------------------------ */

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- Layout helpers -------------------------------------------------------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section--panel { background: var(--paper-2); }
.section__head { max-width: 46rem; margin-bottom: 2.75rem; }
.measure { max-width: var(--measure); }
.text-center { text-align: center; }
.small { font-size: 0.9rem; color: var(--ink-faint); }
.mb-0 { margin-bottom: 0; }

/* --- Header / nav ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand__name small {
  display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-family: var(--sans); color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

.nav-toggle { display: none; }
@media (max-width: 47rem) {
  .nav--primary { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle > summary {
    list-style: none; cursor: pointer; padding: 0.5rem 0.75rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-family: var(--sans); font-weight: 600; color: var(--navy); font-size: 0.85rem;
  }
  .nav-toggle > summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] > summary { background: var(--paper-2); }
  .nav-toggle__menu {
    position: absolute; right: 0; top: calc(100% + 0.5rem);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(18, 49, 79, 0.1); min-width: 13rem; padding: 0.4rem;
    display: flex; flex-direction: column;
  }
  .nav-toggle__menu a { padding: 0.65rem 0.75rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-family: var(--sans); }
  .nav-toggle__menu a:hover { background: var(--paper-2); color: var(--navy); }
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); padding: 0.72rem 1.3rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: #e9eef3; color: var(--navy); }
.btn--ghost-on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost-on-navy:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn.is-copied { border-color: var(--gold-soft); color: var(--gold); background: rgba(176,145,63,0.08); }

.profile__actions { margin-top: 1.4rem; align-items: center; }
.profile__actions [data-copy-hint] { flex-basis: 100%; margin-top: 0.15rem; }

/* --- Hero (light) ---------------------------------------------------------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__inner { padding-block: clamp(3.5rem, 8vw, 6.5rem); max-width: 50rem; }
.hero h1 { margin-bottom: 1rem; }
.hero__tagline { font-family: var(--sans); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink-soft); line-height: 1.4; margin-bottom: 1.5rem; max-width: 40rem; }
.hero__sub { color: var(--ink-soft); max-width: 40rem; margin-bottom: 1.9rem; }
.hero .btn-row { margin-top: 0.5rem; }

.badge-vosb {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--gold-soft); background: rgba(176,145,63,0.08); color: var(--gold);
  padding: 0.42rem 0.85rem; border-radius: 999px; font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.badge-vosb svg { flex: none; }

/* --- Capability tracks (two lanes) ----------------------------------------- */

.track { margin-top: 2.5rem; }
.track + .track { margin-top: 3.25rem; }
.track__label {
  display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.5rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.track__label h3 { font-size: 1.5rem; margin: 0; color: var(--ink); }
.track__mode { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 62rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 52rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.item { }
.item h3 { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.item__rule { width: 1.75rem; height: 2px; background: var(--gold-soft); margin-bottom: 0.9rem; }

/* --- Process steps --------------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 62rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.step__n { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin: 0.35rem 0 0.35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* --- Principal qualifications --------------------------------------------- */

ul.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; color: var(--ink-body); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem;
  background: var(--gold-soft); transform: rotate(45deg);
}
.subhead { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 1.75rem 0 0.85rem; }

/* --- Contracting profile --------------------------------------------------- */

.profile { border-top: 1px solid var(--line-strong); }
.profile__row { display: grid; grid-template-columns: 15rem 1fr; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.profile__key { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 0.86rem; letter-spacing: 0.02em; text-transform: uppercase; }
.profile__val { color: var(--ink-body); }
.profile__val code, .mono { font-family: var(--mono); font-size: 0.95em; }
@media (max-width: 42rem) { .profile__row { grid-template-columns: 1fr; gap: 0.3rem; } }

.code-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.code-list li { font-size: 0.96rem; line-height: 1.4; }
.code-list code {
  font-family: var(--mono); font-weight: 700; color: var(--navy);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 0.05rem 0.4rem; margin-right: 0.55rem; display: inline-block; min-width: 4.2rem; text-align: center;
}
.code-list li.is-core code { border-color: var(--gold-soft); background: rgba(176,145,63,0.08); }

/* --- Detail list (capabilities page) --------------------------------------- */

.detail { display: grid; gap: 2rem; }
.detail__item { display: grid; grid-template-columns: 16rem 1fr; gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.detail__item:last-child { border-bottom: 0; padding-bottom: 0; }
.detail__item h3 { margin: 0; font-size: 1.3rem; }
.detail__item .mode { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.4rem; }
.detail__item p:last-child { margin-bottom: 0; }
@media (max-width: 48rem) { .detail__item { grid-template-columns: 1fr; gap: 0.6rem; } }

/* --- Contact / forms ------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 700; }
.contact-list a { font-weight: 600; }
.contact-list svg { flex: none; margin-top: 0.15rem; color: var(--steel); }

form.intake { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--sans); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--sans); color: var(--ink); padding: 0.68rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
[data-form-error] { color: #8a2f2f; }

.callout { background: var(--paper-2); border-left: 2px solid var(--gold-soft); padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }

/* --- Footer (deep navy for gravitas) --------------------------------------- */

.site-footer { background: var(--navy-deep); color: #b7c4d1; padding-block: 3rem; font-size: 0.92rem; }
.site-footer a { color: #d8c48a; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 48rem) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer__brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 0.7rem; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 0.85rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.25rem; padding-top: 1.35rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  color: #8a9aa9; font-size: 0.85rem;
}

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