/* Inner pages: Services, Portfolio, About, Contact, Privacy, 404 */

/* Page hero (dark band under the light header) */
.page-hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--mist); padding-block: var(--space-8) var(--space-8); }
.page-hero h1 { margin-top: var(--space-4); max-width: 18ch; color: var(--white); }
.page-hero .lead { margin-top: var(--space-5); color: var(--mist); }
.page-hero__stripes {
  position: absolute; right: calc(var(--gutter) * -1); bottom: -24px;
  width: min(360px, 55vw); height: auto; color: var(--white); opacity: .07;
}
@media (min-width: 1024px) { .page-hero { padding-block: var(--space-9) var(--space-9); } }

/* Jump navigation (services) */
.jump-nav { background: var(--white); border-bottom: 1px solid var(--stone-200); }
.jump-nav ul {
  display: flex; gap: var(--space-2); margin: 0; padding: var(--space-4) 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a, .filter button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1px solid var(--stone-200); border-radius: var(--radius-xs); background: var(--white);
  color: var(--ink); font-size: var(--fs-small); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.jump-nav a:hover, .filter button:hover { border-color: var(--navy-700); }
@media (min-width: 1024px) { .jump-nav ul { flex-wrap: wrap; overflow: visible; } }

/* Service detail blocks */
.service-detail { display: grid; gap: var(--space-6); align-items: center; }
.service-detail + .service-detail { margin-top: var(--space-9); }
.service-detail__media { position: relative; }
.service-detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.service-detail__num { color: var(--navy-700); font-family: var(--font-display); font-size: 1.125rem; }
.service-detail h2 { margin-top: var(--space-3); }
.service-detail p { margin-top: var(--space-4); max-width: 34rem; }
.service-detail h3 {
  margin-top: var(--space-6); margin-bottom: var(--space-3);
  color: var(--ink); font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.service-detail .text-link { margin-top: var(--space-5); }
@media (min-width: 1024px) {
  .service-detail { grid-template-columns: 6fr 5fr; gap: var(--space-9); }
  .service-detail:nth-child(even) .service-detail__media { order: 2; }
  .service-detail + .service-detail { margin-top: var(--space-10); }
}

/* Square-marker list (shared) */
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 20px; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--red-600); }
.section--dark .check-list li { color: var(--mist); }

/* Split band (contractors & commercial on services page) */
.split-band { display: grid; gap: var(--space-7); }
.split-band__item h3 { margin-bottom: var(--space-4); }
@media (min-width: 768px) { .split-band { grid-template-columns: 1fr 1fr; } }

/* Portfolio filter + grid */
.filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.portfolio__grid { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.portfolio__grid [hidden] { display: none; }
.portfolio__empty { margin-top: var(--space-6); }
@media (min-width: 640px) { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio__grid { grid-template-columns: repeat(3, 1fr); } }

/* About: team placeholder */
.team__grid { display: grid; gap: var(--space-5); margin: var(--space-7) 0 0; padding: 0; list-style: none; }
.team-placeholder {
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2);
  aspect-ratio: 4 / 5; padding: var(--space-5);
  background: var(--white); border: 1px dashed var(--stone-400); border-radius: var(--radius-sm);
}
.team-placeholder p { color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
@media (min-width: 640px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact__grid { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 7fr 4fr; gap: var(--space-9); align-items: start; } }

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend {
  color: var(--ink); font-size: var(--fs-small); font-weight: 700;
}
.field .optional { color: var(--slate-600); font-weight: 500; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--stone-400); border-radius: var(--radius-xs);
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(29, 46, 140, .18); }
.field [aria-invalid="true"] { border-color: var(--red-600); }
.field__error { color: var(--red-700); font-size: var(--fs-small); font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { color: var(--slate-600); font-size: var(--fs-small); }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: var(--space-3); padding: 0; }
.choices { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .choices--3 { grid-template-columns: repeat(3, 1fr); } .choices--2 { grid-template-columns: repeat(2, 1fr); } }
.choice {
  position: relative; display: flex; align-items: center; gap: var(--space-3);
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--stone-200); border-radius: var(--radius-xs); background: var(--white);
  color: var(--ink); font-size: .9375rem; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.choice:hover { border-color: var(--navy-700); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-700); flex: none; }
.choice:has(input:checked) { border-color: var(--navy-700); background: rgba(29, 46, 140, .04); }
.choice:has(input:focus-visible) { outline: 2px solid var(--red-600); outline-offset: 2px; }

/* Honeypot: off-screen instead of display:none, which many bots skip */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__notice {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--navy-700); background: var(--white);
  color: var(--ink); font-size: .9375rem;
}
.form__notice:empty { display: none; }
.form__notice.is-error { border-left-color: var(--red-600); }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form__footer p { font-size: var(--fs-small); }

.contact-card {
  padding: var(--space-6); background: var(--navy-950); color: var(--mist); border-radius: var(--radius-sm);
}
.contact-card h2 { color: var(--white); font-size: var(--fs-h3); font-weight: 700; }
.contact-card ul { display: grid; gap: 0; margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.contact-card li { border-top: 1px solid var(--line-dark); }
.contact-card a, .contact-card .contact-card__static {
  display: grid; gap: 2px; padding: var(--space-4) 0; color: var(--white); text-decoration: none;
}
.contact-card a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contact-card span { color: var(--mist); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-card strong { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-card .tbd { border-color: rgba(255, 255, 255, .3); color: var(--mist); }

/* Prose (privacy) */
.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--space-7); font-size: var(--fs-h3); font-weight: 700; }
.prose p { margin-top: var(--space-4); }

/* 404 */
.not-found { padding-block: var(--space-10); }
.not-found .btn { margin-top: var(--space-6); }
.not-found__links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Lightbox (built by lightbox.js, Portfolio only) */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: var(--space-8) var(--gutter) var(--space-7);
  border: 0; background: transparent; color: var(--mist);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(11, 21, 48, .94); }
.lightbox__figure { display: grid; gap: var(--space-3); justify-items: center; margin: 0; max-width: min(1200px, 100%); }
.lightbox__img {
  max-width: 100%; max-height: calc(100svh - 180px); width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-md); background: var(--navy-900);
}
.lightbox__caption { color: var(--white); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; text-align: center; }
.lightbox__count {
  position: absolute; left: var(--gutter); top: var(--space-5);
  color: var(--mist); font-size: var(--fs-small); font-weight: 700; letter-spacing: .12em;
}
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: var(--radius-xs);
  background: rgba(11, 21, 48, .6); color: var(--white); font-size: 1.375rem; line-height: 1;
  cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lightbox__btn:hover { border-color: var(--white); }
.lightbox__btn:focus-visible { outline: 2px solid var(--red-500); outline-offset: 3px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: var(--space-4); right: var(--gutter); }
.lightbox__prev, .lightbox__next { bottom: var(--space-4); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
@media (min-width: 1024px) {
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
}
