/* ═══════════════════════════════════════════════════════════════════
   BISWAJIT ENGINEERING — pages.css
   Inner-page styles: page hero, breadcrumbs, hero slider, listings,
   project detail, certificates, contact CTA, footer utilities.
   Extends assets/css/style.css (tokens inherited from :root).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Utility ──────────────────────────────────────────────────────── */
.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;
}

/* ── Inner page hero ──────────────────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.25rem, 4.5vw, 3.5rem);
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46rem 20rem at 88% 6%, oklch(0.56 0.16 58 / 0.12), transparent 62%),
    radial-gradient(34rem 18rem at 6% 100%, oklch(0.21 0.035 262 / 0.6), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, oklch(0.245 0.038 262 / 0.25) 0%, oklch(0.245 0.038 262 / 0) 60%);
}
.breadcrumbs {
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumbs li:not(:first-child)::before { content: "›"; color: var(--gold); }
.breadcrumbs a { color: var(--gold); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.8rem;
}
.page-hero-lead {
  max-width: 66ch;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

/* ── Hero slider ──────────────────────────────────────────────────── */
.hero-media { background-image: var(--slide-img, url("../images/hero-main.webp")); }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: hero-fade 0.7s ease both; }
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.9rem;
}
.hero-dot {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--on-dark) 36%, transparent);
  background: transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.hero-dot:hover { border-color: var(--gold); transform: scale(1.15); }
.hero-dot.is-active { background: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) {
  .hero-media { background-image: var(--slide-img-mobile, var(--slide-img, url("../images/hero-mobile.webp"))); }
  .hero-dots { margin-top: 1.5rem; }
}

/* ── Section actions + card links ─────────────────────────────────── */
.section-action { margin-top: clamp(2rem, 4vw, 2.75rem); }
.cap-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.cap-link:hover { color: var(--on-dark); padding-left: 0.25rem; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  transition: color 0.2s ease;
}
.card-link:hover { color: var(--accent-hover); }

/* ── Project cards ────────────────────────────────────────────────── */
.project-card .project-trigger { text-decoration: none; }
.project-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(24rem 16rem at 50% 40%, oklch(0.39 0.04 262 / 0.55), transparent 70%),
    var(--navy-800);
  color: color-mix(in oklch, var(--gold) 55%, transparent);
}
.project-ph svg { width: 54px; height: 54px; }
.project-trigger .project-ph { aspect-ratio: 4 / 3; }

/* ── Ongoing card placeholder ─────────────────────────────────────── */
.ongoing-media-ph {
  width: 100%; height: 100%;
  background:
    radial-gradient(26rem 16rem at 50% 40%, oklch(0.39 0.04 262 / 0.55), transparent 70%),
    var(--navy-800);
}

/* ── Filter bar (project listings) ────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field .input { width: auto; min-width: 230px; }
.filter-reset {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding: 0.35rem 0;
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state .btn { margin-top: 1.25rem; }

/* ── Pagination ───────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.page-link:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.page-link.is-active {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}
.page-link.is-disabled { opacity: 0.45; pointer-events: none; }

/* ── Project detail ───────────────────────────────────────────────── */
.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.project-detail-media { position: relative; }
.project-detail-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--navy-800);
}
.project-detail-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project-detail-cover:hover img { transform: scale(1.04); }
.project-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.project-detail-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--navy-800);
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-thumb:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.project-detail-status {
  position: absolute;
  top: 1rem; left: 1rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  border: 1px solid color-mix(in oklch, var(--gold) 45%, transparent);
  background: color-mix(in oklch, var(--navy-950) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-completed { color: var(--ok); border-color: color-mix(in oklch, var(--ok) 55%, transparent); }
.project-detail-desc p { color: var(--muted); margin-bottom: 1rem; }
.project-detail-desc p:first-of-type { color: var(--fg); font-size: 1.05rem; }
.project-remarks {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--fg);
  font-size: 0.92rem;
}
.tech-table-wrap { margin-top: 2rem; }
.tech-table-wrap .h3 { margin-bottom: 1rem; }
.tech-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tech-table th, .tech-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.tech-table tr:last-child th, .tech-table tr:last-child td { border-bottom: 0; }
.tech-table th {
  width: 42%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--steel-bg);
}
.tech-table td { color: var(--fg); font-weight: 600; }

.project-enquire {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--navy-900);
  color: var(--on-dark);
  border: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.project-enquire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(36rem 16rem at 90% 0%, oklch(0.56 0.16 58 / 0.12), transparent 60%);
  pointer-events: none;
}
.project-enquire-copy { position: relative; }
.project-enquire .btn { position: relative; }
.related-projects { margin-top: clamp(3rem, 6vw, 5rem); }

/* ── Certificates ─────────────────────────────────────────────────── */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.cert-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--gold) 26%, transparent);
  background: color-mix(in oklch, var(--on-dark) 4%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
}
.cert-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--gold) 48%, transparent);
  box-shadow: 0 20px 44px oklch(0.16 0.03 262 / 0.4);
}
.cert-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cert-item-name {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.4;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--accent) 38%, var(--border));
}
.cert-card-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
  padding: 0;
}
.cert-card-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.cert-card:hover .cert-card-trigger img { transform: scale(1.05); }
.cert-card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.cert-card-body h3 { font-size: 1rem; }
.cert-card-cat, .cert-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cert-card .btn-file { margin-top: 0.6rem; align-self: flex-start; }
.cert-card.is-hidden, .cert-item.is-hidden { display: none; }

/* ── Team bio ─────────────────────────────────────────────────────── */
.team-bio { font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem; }

/* ── About extras ─────────────────────────────────────────────────── */
.about-frame-sub { margin-top: 1.25rem; aspect-ratio: 4 / 3; }
.about-factory {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.about-factory-copy { max-width: 760px; }
.about-factory-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-office {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  max-width: 760px;
}
.about-office p:last-child { font-weight: 600; color: var(--fg); }

/* ── Detail split (services) ──────────────────────────────────────── */
.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.detail-main p { color: var(--muted); margin-bottom: 1rem; }
.detail-main p:first-of-type { color: var(--fg); font-size: 1.08rem; }
.detail-enquire {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.detail-enquire p { color: var(--muted); margin: 0.5rem 0 1.25rem; }
.detail-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.detail-side-title { margin-bottom: 1rem; }
.side-list { display: flex; flex-direction: column; }
.side-list li { border-bottom: 1px solid var(--border); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.side-list a:hover { color: var(--accent-deep); padding-left: 0.35rem; }
.side-contact {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.side-contact-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.side-contact-value { font-weight: 700; color: var(--fg); }

/* ── Split CTA ────────────────────────────────────────────────────── */
.split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.split-cta .h2 { margin-top: 0.4rem; }
.split-cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ── Contact CTA (home) ───────────────────────────────────────────── */
.contact-cta { border-top: 1px solid var(--border); }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.cta-copy { max-width: 560px; }
.cta-copy .h2 { margin-top: 0.4rem; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ── Infra overview ───────────────────────────────────────────────── */
.infra-overview {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in oklch, var(--on-dark) 12%, transparent);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.infra-overview-body p { color: var(--on-dark-muted); margin-bottom: 1rem; max-width: 72ch; }
.infra-trigger { position: relative; display: block; width: 100%; height: 100%; padding: 0; }
.infra-item .infra-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.infra-item:hover .infra-trigger img { transform: scale(1.07); }

/* ── 404 ──────────────────────────────────────────────────────────── */
.not-found { text-align: center; max-width: 560px; margin-inline: auto; }
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0.28;
}
.not-found .h2 { margin: 1rem 0 0.75rem; }
.not-found p { color: var(--muted); }
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ── Legal pages ──────────────────────────────────────────────────── */
.legal-content { max-width: 780px; }
.legal-content p { color: var(--muted); margin-bottom: 1rem; }
.legal-content h2 { margin: 1.75rem 0 0.75rem; }
.legal-content h3 { margin: 1.4rem 0 0.6rem; }

/* ── Form prefill note ────────────────────────────────────────────── */
.form-prefill-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.form-prefill-note strong { color: var(--fg); }

/* ── Gallery full grid ────────────────────────────────────────────── */
.gallery-grid-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Capabilities full grid ───────────────────────────────────────── */
.cap-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail { grid-template-columns: 1fr; }
  .detail-split { grid-template-columns: 1fr; }
  .gallery-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cap-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .project-enquire { flex-direction: column; align-items: flex-start; }
  .split-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-strip { grid-template-columns: 1fr; }
  .cap-grid-full { grid-template-columns: 1fr; }
  .gallery-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .filter-field .input { min-width: 0; width: 100%; }
  .filter-form { width: 100%; }
  .filter-form .btn { width: 100%; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .project-detail-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-hero { padding-top: calc(var(--header-h) + 2.25rem); }
}

@media (max-width: 400px) {
  .project-detail-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Project listing polish */
.project-card .project-body .h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.65em;
}
.project-card-foot {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(17,31,53,.1);
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.project-card-status { color: var(--muted); }
.project-card-link { color: var(--accent-deep); }
.page-ellipsis { align-self: center; padding: 0 .25rem; color: var(--muted); }
@media (max-width: 600px) {
  .pagination { gap: .35rem; }
  .page-link { min-width: 38px; padding: .55rem .7rem; }
}

/* Expanded project filters */
.filter-form { align-items:end; }
.filter-form .filter-field { min-width:170px; flex:1 1 170px; }
@media(max-width:700px){ .filter-form .filter-field{flex-basis:100%;min-width:100%}.filter-form .btn,.filter-reset{width:100%;text-align:center} }

/* FINAL project UX refinements */
.project-title-link{color:inherit;text-decoration:none}.project-title-link:hover{color:var(--accent-deep)}
.project-card-link{position:relative;z-index:3;color:var(--accent-deep);font-weight:700;text-decoration:none}.project-card-link:hover{text-decoration:underline}
.project-detail{grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:clamp(2rem,4vw,3.5rem)}
.project-detail-content{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:clamp(1.25rem,2.4vw,2rem);box-shadow:0 12px 32px rgba(15,31,54,.07)}
.project-detail-lead{font-size:1.08rem!important;line-height:1.7;color:var(--fg)!important;font-weight:600}
.project-detail-desc{line-height:1.75}.tech-table{box-shadow:0 8px 24px rgba(15,31,54,.04)}
.project-detail-empty{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1rem;color:rgba(255,255,255,.72);background:linear-gradient(145deg,#162842,#263d5c)}
.project-detail-empty svg{width:76px;height:76px;opacity:.68}.project-detail-empty span{font-size:.85rem;letter-spacing:.08em;text-transform:uppercase}
.inner-hero .page-hero-title,.page-hero-title{max-width:1050px;text-wrap:balance}
@media(max-width:900px){.project-detail{grid-template-columns:1fr}.project-detail-content{padding:1.15rem}}

/* Final fix: Our Clients section directly after Completed Projects */
.clients-section{border-top:1px solid rgba(15,35,60,.08)}
.clients-head{text-align:center;max-width:780px;margin-left:auto;margin-right:auto}
.clients-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-top:34px}
.client-logo-card{min-height:128px;background:#fff;border:1px solid rgba(15,35,60,.11);border-radius:10px;display:flex;align-items:center;justify-content:center;padding:18px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;text-decoration:none;overflow:hidden}
.client-logo-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,35,60,.09);border-color:rgba(184,77,0,.25)}
.client-logo-card img{display:block;max-width:100%;max-height:82px;width:auto;height:auto;object-fit:contain}
.client-name-fallback{font-weight:700;text-align:center;color:#14233b;line-height:1.3}
@media (max-width:1100px){.clients-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:700px){.clients-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}.client-logo-card{min-height:102px;padding:12px}.client-logo-card img{max-height:66px}}

/* Final fix: ensure project pagination remains obvious on desktop/mobile */
.pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:36px}
.pagination .page-link,.pagination .page-ellipsis{min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px}
@media (max-width:520px){.pagination{gap:5px}.pagination .page-link,.pagination .page-ellipsis{min-width:36px;min-height:36px;padding:0 8px;font-size:13px}}
