/* =========================================================
   TOKENS — Design Variables
   ========================================================= */
:root {
  --navy: #2A3C47;
  --navy-deep: #1E2C35;
  --navy-active: #0C202E;
  --ink: #3A3A3A;
  --ink-soft: #6B7176;
  --paper: #FCFCFC;
  --paper-alt: #F4F4F2;
  --brick: #ec1818;
  --blue: #0E3476;
  --line: #DEDFDC;
  --wa-green: #25D366;

  --space-xs: 12px;
  --space-sm: 20px;
  --space-md: 40px;
  --space-lg: 56px;
  --space-xl: 96px;

  --radius-pill: 999px;
  --radius-sm: 6px;

  --shadow-card: 0 20px 60px rgba(0,0,0,0.3);

  --z-header: 200;
  --z-overlay: 300;
}

/* =========================================================
   TYPOGRAPHY — Fonts & Text
   ========================================================= */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Traditional Chinese Typography Overrides */
html[lang="zh-Hant-HK"] body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
}
html[lang="zh-Hant-HK"] h1,
html[lang="zh-Hant-HK"] h2,
html[lang="zh-Hant-HK"] h3,
html[lang="zh-Hant-HK"] .font-display {
  font-family: 'Noto Serif TC', 'Fraunces', serif;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   LAYOUT — Structure & Spacing
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 0px;
  padding-right: 22px;
  padding-left: 22px;
  padding-bottom: 0px;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
section { padding: var(--space-xl) 0; }

/* =========================================================
   UTILITIES — Helpers
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.accent-blue { color: var(--blue); }
.accent-brick { color: var(--brick); }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* =========================================================
   COMPONENT — Header & Navigation
   ========================================================= */
header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(252,252,252,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
}

.logo .mark-box {
  width: 38px; height: 38px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
}

nav.primary-nav { display: flex; gap: 36px; }
nav.primary-nav a { font-size: 14px; font-weight: 500; padding: 4px 0; }
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] { color: var(--navy-deep); }

.lang-toggle { display: flex; gap: 6px; font-size: 13px; font-weight: 600; }
.lang-toggle button { background: none; border: none; color: var(--ink-soft); }
.lang-toggle button.active { color: var(--brick); }

.nav-right { display: flex; align-items: center; gap: 18px; }

/* Mobile Nav Elements */
.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.menu-toggle span { width: 16px; height: 2px; background: var(--navy); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.mobile-nav.open { max-height: 500px; padding: 12px 32px 20px; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  color: var(--navy);
  display: block;
}
.mobile-nav a:last-child { border-bottom: none; }

/* =========================================================
   COMPONENT — Search Overlay
   ========================================================= */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(30,44,53,0.72);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 14vh;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }

.search-panel {
  background: var(--paper);
  width: min(560px, 90vw);
  padding: 36px;
  border-top: 3px solid var(--brick);
  box-shadow: var(--shadow-card);
  position: relative;
}

.search-panel label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.search-panel input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--navy);
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 24px;
  color: var(--navy);
  background: transparent;
  padding: 8px 2px;
}
.search-panel input:focus { outline: none; border-color: var(--brick); }
.search-panel input::placeholder { color: #B7BCC0; }

.search-hint { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

.search-results {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 40vh; overflow: auto;
}
.search-results a {
  font-size: 15px; padding: 8px 10px;
  background: var(--paper-alt); color: var(--navy); font-weight: 500;
}
.search-results a:hover { background: var(--line); }

.search-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none;
  color: var(--ink-soft); font-size: 22px; line-height: 1;
}
.search-close:hover { color: var(--brick); }

/* =========================================================
   COMPONENT — Tabs & Buttons
   ========================================================= */
.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 9px 20px;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius-pill);
  transition: .2s ease;
}
.tab-btn:hover { border-color: var(--navy); }
.tab-btn[aria-current="true"] {
  background: var(--navy-active);
  border-color: var(--navy-active);
  color: #fff;
}

.btn-contact {
  background: var(--navy); color: #fff;
  padding: 10px 22px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--navy);
  transition: background .2s ease;
}
.btn-contact:hover { background: var(--navy-deep); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .2s ease, border-color .2s ease;
}
.icon-btn:hover { background: var(--paper-alt); border-color: var(--navy); }
.icon-btn svg { width: 16px; height: 16px; }

.link-arrow {
  font-weight: 600; font-size: 14px; color: var(--navy);
  border-bottom: 1px solid var(--navy); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--brick); border-color: var(--brick); }

.link-arrow.small {
  font-size: 13px; color: var(--brick); border: none; margin-left: 14px;
}
.link-arrow.small:hover { color: var(--navy); }

.eyebrow-link {
  display: inline-block; font-size: 22px; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 6px;
}

/* =========================================================
   COMPONENT — Image Placeholder & Cards
   ========================================================= */
.img-ph {
  background: var(--paper-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 10px;
}
.img-ph.on-navy { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.55); }

.quote-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 44px 40px;
}
.quote-card p {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 21px; color: var(--navy); line-height: 1.55;
}
html[lang="zh-Hant-HK"] .quote-card p { font-size: 19px; }
.quote-card cite {
  display: block; margin-top: 18px;
  font-style: normal; font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
}

.contact-card {
  background: var(--navy); color: #fff;
  padding: 52px 48px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
}
.contact-card h2 { color: #fff; font-size: 28px; }
.contact-details dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55); margin-top: 18px;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { font-size: 15px; margin: 4px 0 0; line-height: 1.7; }
.contact-details a { border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-details a:hover { border-color: #fff; }
.contact { padding-bottom: 80px; }

/* =========================================================
   COMPONENT — Footer
   ========================================================= */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-follow {
  display: flex;
  flex-direction: row;   /* side by side */
  align-items: flex-start;   /* vertically align logo + text */
  gap: 16px;             /* space between logo and text */
}

.footer-logo {
  width: 80px;   /* adjust size */
  height: auto;
  display: block;
}

.follow-text {
  display: flex;
  flex-direction: column; /* stack heading + links */
  gap: 8px;
}
.footer-follow h3 {
  color: #fff;
  font-size: 15px;
  margin: 0;
}

.footer-follow ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center; /* keep nav links aligned */
}

.footer-follow a,
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-follow a:hover,
.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* =========================================================
   COMPONENT — Blueprint Background & Mark
   ========================================================= */
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 18px;
}
.mark::before {
  content: ""; width: 18px; height: 18px;
  border-left: 2px solid var(--brick); border-top: 2px solid var(--brick);
}

/* =========================================================
   COMPONENT — WhatsApp FAB
   ========================================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--wa-green);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  color: white;
}
.whatsapp-btn svg { width: 36px; height: 36px; fill: currentColor; }

/* =========================================================
   ACCESSIBILITY — Focus & Motion
   ========================================================= */
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   PAGE — Home
   ========================================================= */
.hero {
  padding-top: 96px;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 80px;
  position: relative;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-copy p { font-size: 19px; color: var(--ink); max-width: 360px; }
.hero-copy p + p { margin-top: 2px; }
.hero-brand { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-brand h1 { font-size: 48px; border-right: 3px solid var(--brick); padding-right: 18px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
  z-index: 0;
}

/* Shared Grid Layouts */
.vision-inner, .process-grid, .certs-grid, .results-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}

.vision-section {
  padding: 60px 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left and right columns */
  gap: 60px;
  align-items: start;
}

.vision-heading {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 48px;
  color: var(--navy);
  margin: 0;
}

.vision-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}

.link-arrow {
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
}

.project-band {
  background-color:  transparent; /* dark navy background */
  padding-top: 0px;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0px;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.band-grid img {
  width: 100%;
  height: 300px;       /* adjust height */
  object-fit: cover;   /* crop nicely */
  border-radius: 6px;
}
.process-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-images {
  display: grid;
  grid-template-columns: repeat(2, 250px); /* match your box width */
  gap: 50px; /* smaller, even spacing */
}

.img-ph {
  background:  none; /* gray placeholder */
  border: none;       /* remove border */
  padding: 0;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}

.process-copy {
  max-width: 400px;
  margin-left: 40px;
}

.process-copy h2 {
  font-size: 48px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.certs { padding: 40px 0 96px; }
.certs-grid { grid-template-columns: 1fr 1.5fr; align-items: center; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* even spacing */
}

.mosaic .img-ph {
  background: #ccc;
  height: 200px; /* adjust size */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.certs-copy h2 { font-size: 48px; margin-bottom: 20px; }
.certs-copy ul { margin-bottom: 22px; }
.certs-copy li { color: var(--ink-soft); font-size: 15px; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.certs-copy li:last-child { border-bottom: 1px solid var(--line); }
.certs-copy li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--brick); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 40px; /* space between left and right */
  align-items: center; /* vertical alignment */
}

.quote-card {
  background: #ccc; /* gray box like photo */
  padding: 40px;
  font-size: 16px;
  line-height: 1.6;
}

.results-copy h2 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.4;
  border-bottom: 2px solid #0a2340; /* navy line */
  padding-bottom: 12px;
}

.results-copy p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}


/* =========================================================
   PAGE — About
   ========================================================= */
.page-hero { padding: 96px 0 60px; }
.page-hero-inner { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; }
.page-hero-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.intro {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* left text wider, right image narrower */
  gap: 60px;                        /* space between text and image */
  align-items: center;               /* vertically align */
}

.intro-copy h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--blue); /* underline accent */
  padding-bottom: 8px;
}

.intro-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.intro-img .img-ph {
  background: #ccc;   /* placeholder grey box */
  width: 100%;
  height: 280px;      /* fixed height for balance */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}

.stat-line {
  padding: 80px 0;
  text-align: center;   /* center horizontally */
}

.stat-line p {
  font-size: 38px;
  line-height: 1.4;
  color: var(--navy);
  white-space: nowrap;  /* force all text to stay on one line */
}

.accent-brick {
  color: var(--brick);  /* red highlight */
  font-weight: 600;
}

.job-ref {
  padding: 60px 0;
}

.job-ref-head {
  text-align: left;              /* move heading to the left */
  margin-bottom: 20px;
}
.job-ref-head h2 {
  display: inline-block;
  border-bottom: 2px solid var(--blue);
  width: auto;                        /* FIX: Removed fixed 180px width */
  padding-right: 20px;                /* Added padding instead */
  text-align: left;                   /* keep text aligned left */
  padding-bottom: 6px;
}

.job-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 0;                          /* no gap, we’ll use borders */
}

.job-ref-col {
  padding: 0 30px;
  border-left: 2px solid var(--blue); /* vertical divider */
}

.job-ref-col:first-child {
  border-left: none; /* no divider on the first column */
}

.job-ref-col h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--navy);
}

.job-ref-col ul {
  margin: 0;
  padding: 0;
}

.job-ref-col li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
}

.about-certs { padding: 20px 0 90px; }
.about-certs h2 { font-size: 36px; margin-bottom: 56px; }

.about-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
  gap: 40px;                             /* spacing between items */
  justify-items: center;                 /* center items horizontally */
}

.cert-item {
  text-align: center;                    /* center text under photo */
}

.cert-item .img-ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 250px;
  background: #ccc;                      /* placeholder grey */
  display: flex;
  align-items: center;
  justify-content: center;               /* center text inside box */
  object-fit: cover;  /* space between photo and label */
  margin-bottom: 12px;
}

/* =========================================================
   PAGE — Services
   ========================================================= */
.services-hero { padding: 96px 0 60px; }
.curtain-wall-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.services-hero h1 { font-size: 32px; max-width: 480px; }

.filter-tabs {
  text-align: center;   /* center everything inside */
  padding: 20px 0;      /* spacing above/below */
}

.filter-tabs ul {
  list-style: none;     /* remove default bullets */
  padding: 0;
  margin: 0;
  display: inline-flex; /* keep buttons in one row */
  gap: 12px;            /* spacing between buttons */
}

.filter-tabs .tab-btn {
  padding: 10px 20px;
  border-radius: 25px;  /* rounded pill shape */
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* active button style */
.filter-tabs .tab-btn[aria-current="true"] {
  background: var(--navy); /* dark blue */
  color: #fff;
  border-color: var(--navy);
}

.service-row { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-row:last-of-type { border-bottom: none; }
.service-row .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service-row.reverse .service-media { order: 2; }
.service-media .img-ph { aspect-ratio: 4/3; }
.service-copy .heading-line { margin-bottom: 18px; }
.service-copy h2 { font-size: 26px; display: inline; }
.service-copy p { color: var(--ink-soft); }

/* =========================================================
   PAGE — Curtain Wall
   ========================================================= */
.curtain-wall-hero {
  padding-top: 140px;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 140px;
}
.curtain-wall--hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.curtain-wall--hero h1 { font-size: 32px; max-width: 480px; }

.services-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* three equal columns */
  gap: 24px;                          /* spacing between photos */
  padding-top: 40px;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 40px;
  margin-top: 100px;
  margin-bottom: 140px;
}

.services-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 860px){
  nav.primary-nav { display: none; }
  .menu-toggle, .mobile-nav { display: flex; }

  /* FIX: Collapses multi-column grids into a single column for mobile */
  .hero-inner, .vision-inner, .vision-grid, .process-grid, .results-grid, .contact-card {
    grid-template-columns: 1fr;
  }

  /* FIX: Ensure contact card padding doesn't push text off screen */
  .contact-card {
    padding: 32px 24px;
  }

  .hero-copy p {
    font-size: 16px;      /* smaller body text */
    line-height: 1.4;
    text-align: left;   /* optional: center align on mobile */
  }
  /* Adjusts text alignment for smaller screens */
  .hero-brand { align-items: right; text-align: right; }
  .hero-brand h1 { border-right: none;
    border-left-width: 3px;
    border-left-style: solid;
    font-size: 32px;      /* reduce heading size */
    line-height: 1.3;
    padding-right: 0; padding-left: 18px; }

  .hero::before {
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.5) 100%,   /* darker gradient for mobile */
            rgba(0,0,0,0) 100%
    );
  }
  /* Adjusts project grids */
  .wrap {
    padding: 60px 20px;   /* reduce padding for smaller screens */
  }
  .project-band {
    background-color: var(--navy);   /* solid navy background */
    padding-top: 40px;               /* space above boxes */
    padding-bottom: 40px;            /* space below boxes */
  }

  .band-grid {
    grid-template-columns: 1fr;      /* stack vertically */
    gap: 32px;                       /* spacing between boxes */
    justify-items: center;           /* center horizontally */
  }

  .band-grid .img-ph.on-navy {
    background: #fff;                /* white box */
    width: 90%;                      /* make larger on mobile */
    max-width: 400px;                /* cap size */
    aspect-ratio: 3 /4 ;             /* keep square shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  .process-grid {
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* center content horizontally */
    gap: 24px;                /* spacing between images and copy */
  }

  .process-images {
    justify-content: center;
    grid-template-columns: 1fr 1fr;   /* keep two columns */
    gap: 10px;    /* keep images centered */
  }
  .process-images .img-ph {
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 200px;
    font-size: 14px;                  /* smaller text inside */
  }
  .process-copy {
    margin-left: 0;           /* remove desktop left margin */
    max-width: 100%;          /* let text span full width */
    text-align: center;       /* optional: center text */
  }

  /* FIX: Reduce large heading sizes so they don't break words on mobile */
  .process-copy h2, .certs-copy h2, .results-copy h2, .vision-heading {
    font-size: 32px;
  }

  .certs-grid {
    display: flex;
    flex-direction: column;   /* stack vertically */
    gap: 32px;                /* spacing between copy and mosaic */
  }

  .certs-copy {
    order: 1;
    text-align: center;
  }

  .mosaic {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr ;
    gap: 16px;
    justify-items: center;
  }
  .mosaic .img-ph {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 180px;
  }
  mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
  }
  .certs-copy,
  .vision-heading,
  .job-ref-head,
  .certs-copy h2,
  .job-ref-head h2 {
    text-align: left ;   /* force left alignment */
  }

  .stat-line p,
  .stat-line.right p {
    text-align: center;   /* center the text itself */
    white-space: normal;  /* allow wrapping instead of forcing one line */
    font-size: 32px;      /* optional: scale down for smaller screens */
    line-height: 1.3;
  }

  .stat-line .font-display {
    font-size: 28px;      /* smaller for tablets */
    line-height: 1.3;
    margin: 0 auto;       /* center block element */
    display: inline-block;
  }
  .job-ref-grid {
    display: flex;
    flex-direction: column;   /* stack columns vertically */
  }

  .job-ref-col {
    padding: 20px 0;
    border-left: none;        /* remove vertical divider */
    border-top: 2px solid var(--blue); /* add horizontal divider */
  }

  .job-ref-col:first-child {
    border-top: none;         /* don’t show line above the first block */
  }

  .about-certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;                      /* spacing between columns */
    justify-items: center;
  }

  .about-certs-grid .certs-copy {
    grid-column: 1 / -1;            /* make text span both columns */
    text-align: center;
    margin-bottom: 20px;
  }

  .about-certs-grid .mosaic {
    grid-column: span 1;            /* mosaic sits in one column */
    display: grid;
    grid-template-columns: 1fr;     /* stack images inside */
    gap: 12px;
  }
  .about-certs-grid .cert-item .img-ph {
    max-width: 250px;   /* shrink image size */

  }

  .about-certs-grid .cert-item {
    font-size: 14px;    /* smaller text */
    padding: 12px;
  }
  .filter-tabs ul {
    display: flex;              /* switch from inline-flex */
    flex-wrap: wrap;            /* allow wrapping */
    justify-content: center;    /* center buttons */
    gap: 12px;                  /* spacing between buttons */
  }

  .filter-tabs li {
    flex: 1 1 45%;              /* two buttons per row */
    max-width: 200px;           /* cap width */
  }

  .filter-tabs .tab-btn {
    width: 100%;                /* fill li width */
    font-size: 14px;            /* slightly smaller text */
    padding: 10px;              /* balanced padding */
  }
  .curtain-wall-hero {
    padding-top: 100px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 100px;
  }
  .services-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* About Page Overrides */
  .page-hero-inner { justify-content: flex-start; }
  .page-hero-title { align-items: flex-start; text-align: left; }
  .intro-grid { grid-template-columns: 1fr; }
  .stat-line, .stat-line.right, .job-ref-head { text-align: left; }
  .job-ref-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Services Page Overrides */
  .service-row .wrap { grid-template-columns: 1fr; }
  .service-row.reverse .service-media { order: 0; }

  .footer-top {
    flex-direction: column;       /* stack instead of row */
    align-items: center;          /* center everything */
    text-align: center;           /* center text */
    gap: 32px;                    /* more breathing space */
  }

  .footer-follow {
    flex-direction: row;          /* logo on the left, text on the right */
    align-items: center;
    justify-content: center;      /* center both blocks horizontally */
    gap: 12px;
  }

  .footer-nav {
    justify-content: center;      /* center nav links */
    gap: 20px;
  }
  .follow-text {
    text-align: left;            /* optional: align text to the right */
  }
}

/* small device */
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .img-ph.on-navy {
    max-width: 180px;   /* shrink square */
  }
  .band-grid .img-ph {
    width: 90%;                  /* full width on very small screens */
    max-width: 200px;             /* slightly smaller cap */
    aspect-ratio: 1 / 1;          /* keep square shape */
  }
  .mosaic { grid-template-columns: repeat(2,1fr); }
  .nav-right .btn-contact { display: none; } /* Hides contact button in header to save space */
  .hero-copy p {
    font-size: 16px;      /* even smaller for very small screens */
  }
  .hero-brand h1 {
    font-size: 26px;      /* heading scales down further */
  }
  .mosaic {
    grid-template-columns: 1fr 1fr; /* stack boxes vertically on phones */
    gap: 20px;
  }
  .stat-line {
    text-align: center;   /* keep centered on phones */
  }

  .stat-line .font-display {
    font-size: 22px;      /* even smaller for phones */
    line-height: 1.2;
    margin: 0 auto;
    display: inline-block;
  }
  .about-certs-grid {
    grid-template-columns: 1fr 1fr; /* stack items in one column */
    gap: 20px;
  }

  .about-certs-grid .cert-item .img-ph {
    max-width: 200px;        /* smaller square on phones */
  }

  .about-certs-grid .cert-item {
    font-size: 13px;
    padding: 10px;
  }

  .services-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

}

/* Language-specific responsive overrides */
html[lang="zh-Hant-HK"] .hero-brand h1 { font-size: 48px; }
html[lang="zh-Hant-HK"] .stat-line p { font-size: 30px; }

/* Static image inside placeholder container */
.img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}