/* =============================================================
   NCM Engineering, PLLC — styles.css
   Single stylesheet, no build step (docs/adr/0002)
   Palette per owner spec (grilling session, 2026-11-05):
   gold is accents/fills ONLY — never body text on white.
   ============================================================= */

:root {
  --gold:        #ddb34f;   /* primary accent */
  --gold-dark:   #9d820d;   /* secondary accent */
  --ink:         #14120f;   /* body text */
  --ink-on-gold: #111111;   /* text on gold fills */
  --pop:         #86b6ff;   /* links/interactive on DARK surfaces */
  --surface:     #ffffff;
  --page:        #ececec;
  --line:        #3d3a35;   /* borders */
  --muted:       #696354;   /* secondary text */
  --gold-foil:   linear-gradient(180deg,#fff9ca,#f7da93,#ddb34f,#9d820d,
                             #6e5927,#9d820d,#ddb34f,#f7da93,#fff9ca);
  --font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 66rem; margin-inline: auto; padding-inline: 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink-on-gold);
  padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.topbar :focus-visible,
.site-footer :focus-visible { outline-color: var(--pop); }

/* links on light surfaces: ink text + gold underline
   (gold TEXT on white fails contrast — rule per brand spec) */
main a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
main a:hover { color: var(--gold-dark); text-decoration-color: var(--gold-dark); }

/* ---------- top utility bar ---------- */
.topbar { background: var(--ink); color: #ececec; font-size: .9rem; }
.topbar-row { display: flex; gap: 1.5rem; justify-content: flex-end; padding-block: .45rem; }
.topbar a { color: var(--pop); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .9rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .55rem .8rem; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold-dark); border-bottom-color: var(--gold); }

/* ---------- gold foil accent rule ---------- */
.foil-rule { height: 6px; background-image: var(--gold-foil); }

/* ---------- hero (home) ---------- */
.hero { background: var(--ink); color: #fff; padding-block: 4.5rem 4rem; }
.hero .kicker {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .9rem; margin: 0 0 .8rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; max-width: 46ch; }
.hero .lede { font-size: 1.2rem; color: #d9d5cd; max-width: 56ch; margin: 0 0 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-row.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: .4rem;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink-on-gold); }
.btn-gold:hover { background-image: var(--gold-foil); }
.btn-ghost-light { color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ---------- subpage head ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 2.6rem 2.2rem; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.page-head .lede { color: var(--muted); max-width: 62ch; margin: .5rem 0 0; font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding-block: 3rem; }
.section h2 { font-size: 1.7rem; margin: 0 0 .5rem; }
.section h2::after, .cta-band h2::after {
  content: ""; display: block; width: 3.25rem; height: 4px;
  margin-top: .55rem; border-radius: 2px; background-image: var(--gold-foil);
}
.cta-band h2::after { margin-inline: auto; }
.section .section-lede { color: var(--muted); max-width: 62ch; margin: .25rem 0 1.6rem; }
.ask-line { margin-top: 1.4rem; font-weight: 600; }

/* ---------- service/info cards ---------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: .5rem;
  padding: 1.4rem 1.4rem 1.5rem;
}
.card h3 { margin: .1rem 0 .55rem; font-size: 1.2rem; }
.card p { margin: 0; font-size: .98rem; }
.card .more { margin-top: .9rem; font-weight: 700; font-size: .95rem; }

/* ---------- why strip ---------- */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.why-item .num {
  display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold); color: var(--ink-on-gold);
  font-weight: 800; margin-bottom: .5rem;
}
.why-item h3 { margin: .2rem 0 .4rem; font-size: 1.12rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- project cards ---------- */
.project-card { margin: 0; }
.project-card .ph {
  aspect-ratio: 4 / 3; border: 2px dashed var(--muted); border-radius: .5rem;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem;
}
.project-card figcaption { font-size: .95rem; margin-top: .5rem; }
.project-card figcaption strong { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding-block: 3rem; }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { color: #d9d5cd; max-width: 52ch; margin: .2rem auto 1.4rem; }
.cta-band a.btn-gold { color: var(--ink-on-gold); text-decoration: none; }

/* ---------- about page ---------- */
.quote {
  background: var(--surface); border-left: 5px solid var(--gold);
  border-radius: .25rem; padding: 1.5rem 1.75rem; margin: 0 0 2.5rem;
}
.quote p { font-size: 1.12rem; font-style: italic; margin: 0 0 .8rem; }
.quote p:last-of-type { margin-bottom: .8rem; }
.quote footer { font-style: normal; font-weight: 700; color: var(--muted); font-size: .95rem; }
.profile-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
.headshot-ph {
  aspect-ratio: 4 / 5; border: 2px dashed var(--muted); border-radius: .5rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); background: var(--surface); padding: 1rem; font-size: .92rem;
}
.cred-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; margin-top: .6rem; }
.cred-table th, .cred-table td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.cred-table th { background: var(--page); width: 32%; }
.highlights { padding-left: 1.2rem; }
.highlights li { margin-bottom: .7rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: .5rem; padding: 1.2rem 1.4rem; margin-bottom: 1rem;
}
.contact-card h2 {
  font-size: 1rem; margin: 0 0 .3rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.contact-card p { margin: .2rem 0; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: 1.5rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.hint-inline { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .65rem .75rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: .35rem;
}
textarea { min-height: 8.5rem; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.req { color: var(--gold-dark); }

/* ---------- thank-you ---------- */
.thanks-box { background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: 2.5rem; max-width: 40rem; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 62ch; }
.prose h2 { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfcabf; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; padding-block: 2.6rem 2rem; }
.footer-brand img { width: 110px; height: 110px; object-fit: contain; margin-bottom: .8rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; margin: 0; }
.site-footer h2 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.site-footer h2::after { display: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .95rem; }
.footer-links a { color: var(--pop); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.legal { border-top: 1px solid #3a372f; padding-block: 1.2rem 1.6rem; font-size: .85rem; color: #a8a294; }
.legal p { margin: .15rem 0; }
.legal strong { color: #cfcabf; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-row { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .hero { padding-block: 3.2rem 3rem; }
  .topbar-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- additions: contact page (no form) + headshot ---------- */
.contact-lead .role { color: var(--muted); font-weight: 600; margin: .2rem 0 .6rem; }
.contact-aside ul { margin: .2rem 0 0; padding-left: 1.15rem; }
.contact-aside li { margin-bottom: .55rem; font-size: .97rem; }
.headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border: 1px solid var(--line);
  border-radius: .5rem;
  display: block;
}

/* ---------- additions: real project photos ---------- */
.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}

/* ---------- additions: photo-only tile Planning Page ---------- */
.card-photo { padding: 0; overflow: hidden; }
.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- additions: contact page 2×2 grid + photo banner ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; }
.contact-grid .contact-card { margin-bottom: 0; }
.contact-photo { grid-column: 1 / -1; margin: 0; }
.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid var(--line);
  border-radius: .5rem;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
