/* Public Architecture and Construction pages */
.architecture-page,
.construction-page {
  --service-blue: #0a46a6;
  --service-blue-dark: #052d75;
  --service-red: #ef1717;
  --service-ink: #10233f;
  --service-muted: #627188;
  --service-line: #dfe5ed;
  margin-top: 112px;
  color: var(--service-ink);
}

/* ---------- Architecture: intentionally clean and simple ---------- */
.architecture-page {
  min-height: 70vh;
  padding: 28px 0 84px;
  background: #fff;
}

.architecture-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.architecture-heading {
  padding: 0 0 22px;
  text-align: center;
}

.architecture-heading p {
  margin: 0 0 5px;
  color: #7a8799;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.architecture-heading h1 {
  margin: 0;
  color: #050b78;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.architecture-heading h1 span { color: var(--service-red); }

.architecture-heading > div {
  width: 52px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--service-red) 0 46%, var(--service-blue) 46% 100%);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.architecture-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9dee6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 40, 72, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.architecture-card:hover {
  border-color: #c8d4e4;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 40, 72, .1);
}

.architecture-image {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf1f6;
}

.architecture-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f7f8fa;
  transition: transform .45s ease;
}

.architecture-card:hover .architecture-image > img { transform: scale(1.025); }

.architecture-latest {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 45, 117, .9);
  box-shadow: 0 8px 22px rgba(4, 28, 71, .2);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.architecture-card-body { padding: 11px 12px 13px; }

.architecture-card h2 {
  margin: 0 0 7px;
  color: #14345d;
  font-size: .9rem;
  line-height: 1.3;
}

.architecture-card p {
  display: flex;
  gap: 5px;
  margin: 4px 0 0;
  color: #154ca2;
  font-size: .68rem;
  line-height: 1.45;
}

.architecture-card p strong {
  flex: 0 0 auto;
  color: #003da0;
  font-weight: 800;
}

.architecture-card p span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Shared reliable image fallback ---------- */
.service-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 25px;
  color: #78879b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .1)),
    repeating-linear-gradient(45deg, #e9eef4 0 14px, #e2e8f0 14px 28px);
  text-align: center;
}

.service-image-fallback i { font-size: 2rem; }
.service-image-fallback span { font-size: .8rem; font-weight: 750; }
[data-image-frame].is-missing > img { display: none !important; }
[data-image-frame].is-missing > .service-image-fallback,
.service-image-fallback.always-visible { display: grid; }

/* ---------- Construction project slider ---------- */
.construction-page {
  --construction-orange: #f36b21;
  --construction-orange-dark: #c8450d;
  position: relative;
  min-height: 78vh;
  padding: 0 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 2%, rgba(243, 107, 33, .1), transparent 26rem),
    radial-gradient(circle at 95% 15%, rgba(10, 70, 166, .09), transparent 30rem),
    #f6f8fb;
}

.construction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 45px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0 42px;
}

.construction-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--construction-orange-dark);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.construction-hero h1 {
  max-width: 760px;
  margin: 13px 0 16px;
  color: var(--service-ink);
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.06em;
}

.construction-hero h1 strong {
  color: var(--construction-orange);
  font-weight: inherit;
}

.construction-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--service-muted);
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  line-height: 1.7;
}

.construction-summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 11px;
  min-width: 310px;
}

.construction-summary > span {
  display: grid;
  min-width: 112px;
  padding: 15px 17px;
  border: 1px solid rgba(211, 220, 232, .95);
  border-radius: 17px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 30px rgba(17, 36, 65, .07);
  backdrop-filter: blur(12px);
}

.construction-summary > span strong {
  color: var(--service-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.construction-summary > span small {
  margin-top: 5px;
  color: var(--service-muted);
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.construction-summary > a {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--service-blue), var(--service-blue-dark));
  box-shadow: 0 12px 25px rgba(10, 70, 166, .2);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
}

.construction-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.construction-carousel {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(215, 224, 235, .95);
  border-radius: 30px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 28px 80px rgba(15, 35, 67, .13);
  backdrop-filter: blur(15px);
}

.construction-carousel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 62px;
  padding: 5px 9px 13px 15px;
}

.construction-carousel-topbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.construction-carousel-topbar span {
  color: #53647b;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.construction-carousel-topbar strong {
  color: #8a96a6;
  font-size: .78rem;
  font-weight: 750;
}

.construction-carousel-topbar strong b {
  color: var(--service-ink);
  font-size: 1rem;
}

.construction-project-controls,
.construction-photo-controls {
  display: flex;
  gap: 8px;
}

.construction-project-controls button,
.construction-photo-controls button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #dce3ec;
  border-radius: 50%;
  color: var(--service-ink);
  background: #fff;
  transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease;
}

.construction-project-controls button:hover,
.construction-photo-controls button:hover {
  border-color: var(--service-blue);
  color: #fff;
  background: var(--service-blue);
  transform: translateY(-2px);
}

.construction-viewport {
  overflow: hidden;
  border-radius: 22px;
}

.construction-track {
  display: flex;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: transform .62s cubic-bezier(.22, .72, .22, 1);
  will-change: transform;
}

.construction-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, .82fr);
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  opacity: .4;
  transform: scale(.985);
  transition: opacity .35s ease, transform .35s ease;
}

.construction-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.construction-gallery {
  min-width: 0;
  padding: 14px;
  background: #101b2b;
}

.construction-photo-stage {
  position: relative;
  height: clamp(510px, 58vw, 720px);
  overflow: hidden;
  border-radius: 17px;
  background: #0d1726;
}

.construction-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(34px) scale(1.015);
  pointer-events: none;
  transition: opacity .46s ease, transform .58s cubic-bezier(.22, .72, .22, 1);
}

.construction-photo.is-active {
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.construction-photo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d1726;
}

.construction-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 11, 22, .74));
  pointer-events: none;
}

.construction-photo figcaption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.construction-stage {
  max-width: 55%;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.construction-photo-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(4, 13, 27, .53);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 700;
}

.construction-photo figcaption > strong {
  display: grid;
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 50%;
  background: var(--construction-orange);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  font-size: .75rem;
}

.construction-photo-controls {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 17px;
}

.construction-photo-controls button {
  width: 39px;
  height: 39px;
  border-color: rgba(255,255,255,.26);
  color: #fff;
  background: rgba(4, 13, 27, .54);
  backdrop-filter: blur(8px);
}

.construction-photo-empty {
  display: block;
}

.construction-thumbnails {
  display: flex;
  gap: 9px;
  margin-top: 11px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.construction-thumbnails button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 150px;
  min-width: 150px;
  padding: 5px 9px 5px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #c1cbd8;
  background: rgba(255, 255, 255, .045);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.construction-thumbnails button:hover,
.construction-thumbnails button.is-active {
  border-color: rgba(243, 107, 33, .85);
  color: #fff;
  background: rgba(243, 107, 33, .14);
  transform: translateY(-1px);
}

.construction-thumbnails button > span {
  position: relative;
  display: grid;
  width: 54px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #273447;
}

.construction-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-thumbnail-fallback { display: none; color: #8e9caf; }
.construction-thumbnails [data-image-frame].is-missing .service-thumbnail-fallback { display: block; }
.construction-thumbnails small {
  overflow: hidden;
  font-size: .68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.construction-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4.5vw, 56px);
  background:
    radial-gradient(circle at 100% 0, rgba(10,70,166,.08), transparent 16rem),
    #fff;
}

.construction-project-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.construction-project-labels time {
  color: #7d8998;
  font-size: .72rem;
  font-weight: 700;
}

.construction-latest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #9e3409;
  background: #fff0e7;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.construction-details h2 {
  margin: 22px 0 13px;
  color: var(--service-ink);
  font-size: clamp(1.8rem, 3.8vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.construction-intro {
  margin: 0;
  color: var(--service-muted);
  font-size: .94rem;
  line-height: 1.68;
}

.construction-facts {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.construction-facts p {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e4e9f0;
  border-radius: 13px;
  background: #f8fafc;
}

.construction-facts p > i {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 11px;
  color: var(--service-blue);
  background: #e8f0ff;
}

.construction-facts p span { min-width: 0; }
.construction-facts small {
  display: block;
  margin-bottom: 2px;
  color: #8a96a4;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.construction-facts strong {
  display: block;
  overflow: hidden;
  color: #304158;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.construction-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px 15px;
  margin-top: 20px;
  padding: 17px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #102743, #0a1728);
  box-shadow: 0 15px 32px rgba(8, 23, 42, .18);
}

.construction-progress-card > div:first-child { min-width: 0; }
.construction-progress-card > div:first-child span {
  display: block;
  margin-bottom: 3px;
  color: #93a6bf;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.construction-progress-card > div:first-child strong {
  display: block;
  overflow: hidden;
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.construction-progress-card > b {
  color: #ffb07f;
  font-size: 1.05rem;
}

.construction-progress-unset { font-size: .72rem !important; text-transform: uppercase; }

.construction-progress-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.construction-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--construction-orange), #ffb06c);
}

.construction-progress-bar.is-indeterminate span {
  width: 42%;
  animation: progressPulse 1.8s ease-in-out infinite alternate;
}

.construction-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  margin-top: auto;
  padding: 0 17px;
  border: 1px solid #d9e2ef;
  border-radius: 13px;
  color: var(--service-blue);
  background: #fff;
  font-size: .83rem;
  font-weight: 850;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.construction-enquire:hover {
  border-color: var(--service-blue);
  color: #fff;
  background: var(--service-blue);
  transform: translateY(-2px);
}

.construction-project-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 16px 5px 4px;
}

.construction-project-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd4e1;
  transition: width .25s ease, background .25s ease;
}

.construction-project-dots button.is-active {
  width: 28px;
  background: var(--construction-orange);
}

.service-empty-state {
  display: grid;
  min-height: 430px;
  place-content: center;
  justify-items: center;
  padding: 45px 20px;
  border: 1px dashed #cad4e1;
  border-radius: 22px;
  color: var(--service-muted);
  background: #f8fafc;
  text-align: center;
}

.service-empty-state > i { color: var(--service-blue); font-size: 2.5rem; }
.service-empty-state h2 { margin: 14px 0 7px; color: var(--service-ink); }
.service-empty-state p { max-width: 520px; margin: 0; }
.service-empty-state a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 15px;
  border-radius: 11px;
  color: #fff;
  background: var(--service-blue);
  font-weight: 800;
  text-decoration: none;
}

@keyframes progressPulse {
  from { transform: translateX(-40%); opacity: .65; }
  to { transform: translateX(170%); opacity: 1; }
}

@media (max-width: 1100px) {
  .architecture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .construction-hero { grid-template-columns: 1fr; gap: 26px; }
  .construction-summary { width: min(410px, 100%); }
  .construction-slide { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
  .construction-photo-stage { height: clamp(500px, 64vw, 650px); }
  .construction-details { padding: 31px; }
}

@media (max-width: 820px) {
  .architecture-page,
  .construction-page { margin-top: 96px; }
  .architecture-page { padding-top: 24px; }
  .architecture-shell,
  .construction-shell,
  .construction-hero { width: min(100% - 24px, 1240px); }
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .construction-carousel { padding: 9px; border-radius: 23px; }
  .construction-viewport,
  .construction-slide { border-radius: 17px; }
  .construction-slide { grid-template-columns: 1fr; }
  .construction-gallery { padding: 10px; }
  .construction-photo-stage { height: min(76vh, 620px); }
  .construction-details { min-height: 600px; }
}

@media (max-width: 620px) {
  .architecture-shell { width: min(100% - 20px, 1320px); }
  .architecture-heading { padding-bottom: 18px; }
  .architecture-card-body { padding: 11px 12px 13px; }
  .construction-page { padding-bottom: 56px; }
  .construction-hero { padding-top: 42px; }
  .construction-summary { grid-template-columns: 1fr 1fr; min-width: 0; }
  .construction-carousel-topbar { min-height: 54px; padding-left: 8px; }
  .construction-photo-stage { height: min(115vw, 570px); }
  .construction-photo figcaption { right: 11px; bottom: 11px; left: 11px; flex-wrap: wrap; }
  .construction-stage { max-width: 100%; width: 100%; }
  .construction-photo-date { margin-left: 0; }
  .construction-photo figcaption > strong { margin-left: auto; }
  .construction-thumbnails button { width: 132px; min-width: 132px; grid-template-columns: 48px minmax(0,1fr); }
  .construction-thumbnails button > span { width: 48px; }
  .construction-details { min-height: 570px; padding: 25px 20px 27px; }
  .construction-project-labels { align-items: flex-start; flex-direction: column; }
  .construction-details h2 { margin-top: 16px; }
  .construction-enquire { margin-top: 24px; }
}

@media (max-width: 520px) {
  .architecture-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .architecture-card p { align-items: flex-start; flex-direction: column; gap: 1px; }
  .construction-summary > span { min-width: 0; padding-inline: 12px; }
  .construction-summary > span strong { font-size: 1.25rem; }
  .construction-project-controls button { width: 39px; height: 39px; }
  .construction-photo-controls { top: 10px; right: 10px; }
  .construction-photo-controls button { width: 36px; height: 36px; }
  .construction-facts p { grid-template-columns: 37px minmax(0,1fr); }
  .construction-facts p > i { width: 37px; height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  .architecture-card,
  .architecture-image > img,
  .construction-track,
  .construction-slide,
  .construction-photo,
  .construction-project-dots button,
  .construction-progress-bar.is-indeterminate span { animation: none !important; transition: none !important; }
}
