:root {
  --color-navy: #1B365D;
  --color-navy-deep: #132948;
  --color-sky: #3897D3;
  --color-sky-soft: #EBF5FB;
  --color-bg: #FFFFFF;
  --color-surface: #F7F9FC;
  --color-border: #DCE4EE;
  --color-text: #1E293B;
  --color-muted: #52637A;
  --color-destructive: #B91C1C;
  --radius-control: 6px;
  --radius-card: 10px;
  --shadow-card: 0 4px 18px rgba(27, 54, 93, 0.06);
  --shadow-card-hover: 0 12px 28px rgba(27, 54, 93, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1060px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-crop {
  position: relative;
  display: block;
  width: 148px;
  height: 45px;
  flex: 0 0 148px;
  overflow: hidden;
}

.brand-logo-crop img {
  position: absolute;
  top: -9.04px;
  left: -18.86px;
  width: 185.52px;
  height: 60.14px;
  max-width: none;
}

.site-header .brand-logo-crop {
  width: 165px;
  height: 50px;
  flex-basis: 165px;
}

.site-header .brand-logo-crop img {
  top: -10.04px;
  left: -20.96px;
  width: 206.13px;
  height: 66.82px;
}

.footer-brand-logo img {
  filter: brightness(0) invert(1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-sky);
  border-bottom-color: var(--color-sky);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  padding: 0.25rem;
  transition: color 0.18s ease;
}

.social-links a:hover {
  color: var(--color-sky);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  color: var(--color-navy);
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--color-navy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-navy-deep);
}

.btn-secondary {
  background: var(--color-sky-soft);
  color: var(--color-navy);
  border-color: #BBDDF3;
}

.btn-secondary:hover {
  background: #DCEEFB;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

.btn-light {
  background: #FFFFFF;
  color: var(--color-navy);
}

.btn-light:hover {
  background: var(--color-sky-soft);
}

.btn-hero-ghost {
  background: rgba(19, 41, 72, 0.55);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #FFFFFF;
}

.btn-full {
  width: 100%;
}

/* Kickers & Headings */
.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sky);
}

.kicker-light {
  color: #7CC4F0;
}

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.22;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Full-Bleed Feature Image Hero */
.hero-showcase {
  height: calc(100svh - 80px);
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  overflow: hidden;
}

.hero-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-intro {
  padding: 2.75rem 0 3rem;
  background: #FFFFFF;
}

.home-intro h1 {
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.home-intro .kicker {
  color: var(--color-navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Credentials Band */
.credentials-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3.75rem 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.credential-item {
  padding-left: 1rem;
  border-left: 3px solid var(--color-sky);
}

.credential-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sky);
  margin-bottom: 0.35rem;
}

.credential-item h2 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.credential-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* Page Header */
.page-header {
  background: var(--color-navy);
  color: #FFFFFF;
  padding: 3.75rem 0;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.page-header-sub {
  color: #CBD5E1;
  font-size: 1.08rem;
  max-width: 64ch;
  margin: 0;
}

.breadcrumb-link {
  color: #93C5FD;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

/* Sections & Grids */
.section {
  padding: 4.25rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.text-link {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-sky);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--color-sky);
}

.status-text {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #FFFFFF;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #B6CCE2;
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-navy-deep);
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.project-card-desc {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-sky);
}

/* Split Layout & Cards */
.split-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.prose-block p {
  margin: 0 0 1.25rem;
  color: var(--color-text);
  font-size: 1.02rem;
}

.prose-block h3 {
  margin-top: 2rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card,
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.form-card {
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.form-intro {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

/* NHBC Card */
.nhbc-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #1D3549;
  color: #FFFFFF;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.nhbc-letters {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nhbc-bar {
  width: 100%;
  height: 4px;
  background: #E11D48;
  margin: 0.45rem 0 0.35rem;
}

.nhbc-sub {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E2E8F0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-sky);
}

/* Project Detail */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.spec-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spec-row {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sky);
  margin-bottom: 0.2rem;
}

.spec-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-navy);
}

.gallery-section {
  margin-top: 2.5rem;
}

.portfolio-testimonials {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.portfolio-testimonials h2 {
  margin: 0 0 1.75rem;
  color: var(--color-navy);
  text-align: center;
}

.portfolio-testimonial-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.portfolio-testimonial-list li + li {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.portfolio-testimonial-entry {
  margin: 0;
  text-align: center;
}

.portfolio-testimonial-entry blockquote {
  margin: 0;
}

.portfolio-testimonial-quote {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
}

.portfolio-testimonial-attribution {
  display: block;
  margin-top: 1rem;
  color: var(--color-muted);
  font-style: normal;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(19, 41, 72, 0.88);
  pointer-events: none;
}

.gallery-zoom-hint svg {
  width: 20px;
  height: 20px;
}

.gallery-image-button:focus-visible,
.gallery-lightbox button:focus-visible {
  outline: 3px solid #7CC4F0;
  outline-offset: 3px;
}

.gallery-grid figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.empty-gallery-note {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.gallery-lightbox {
  width: min(94vw, 1320px);
  height: min(94svh, 960px);
  max-width: none;
  max-height: none;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #FFFFFF;
  background: var(--color-navy-deep);
}

.gallery-lightbox::backdrop {
  background: rgba(8, 18, 32, 0.88);
}

.gallery-lightbox-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.gallery-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-lightbox-count {
  margin: 0;
  color: #E2E8F0;
  font-size: 0.9rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  cursor: pointer;
}

.gallery-lightbox-close span {
  font-size: 1.9rem;
  line-height: 1;
}

.gallery-lightbox-nav span {
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-lightbox-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.gallery-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.gallery-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc((94svh - 9rem) * 4 / 3));
  max-height: calc(94svh - 9rem);
  object-fit: contain;
}

.gallery-lightbox-figure figcaption {
  color: #E2E8F0;
  font-size: 0.95rem;
  text-align: center;
}

/* Contact List */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sky);
}

.contact-list a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-sky);
}

/* Forms */
.wix-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-control);
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-sky);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error,
.form-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-destructive);
  font-weight: 600;
}

.form-success {
  background: #EFF8FF;
  border: 1.5px solid var(--color-sky);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  color: var(--color-navy);
}

/* CTA Banner */
.cta-banner {
  background: var(--color-navy-deep);
  color: #FFFFFF;
  padding: 3.75rem 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #CBD5E1;
  margin: 0;
  max-width: 60ch;
}

/* Piercefield Navy Footer */
.site-footer {
  background: var(--color-navy);
  color: #E2E8F0;
  padding: 3.75rem 0 2rem;
  border-top: 4px solid var(--color-sky);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-tagline {
  margin: 1rem 0 0;
  color: #CBD5E1;
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.footer-links a,
.footer-contact a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #7CC4F0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #94A3B8;
}

@media (max-width: 960px) {
  .split-layout,
  .project-detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .credentials-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .home-intro {
    padding-block: 2.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .credentials-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    height: 100svh;
    padding: 0.7rem;
    border: 0;
    border-radius: 0;
  }

  .gallery-lightbox-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0.35rem;
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 44px;
  }

  .gallery-lightbox-image {
    max-width: min(100%, calc((100svh - 8rem) * 4 / 3));
    max-height: calc(100svh - 8rem);
  }
}

