/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: var(--space-md);
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark__main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.wordmark__main .w-pmt { color: var(--ink); }
.wordmark__main .w-asia { color: var(--accent); }
.wordmark__sub {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-top: 2px;
  text-transform: uppercase;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}
.primary-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  border-bottom-color: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after { content: ''; position: absolute; top: 6px; }

@media (max-width: 860px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .primary-nav li { width: 100%; border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px var(--space-sm); }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 0; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
  .header-actions .btn span.btn-label-full { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
  background: linear-gradient(100deg, rgba(2, 72, 166, 0.07) 0%, rgba(0, 132, 214, 0.025) 55%, transparent 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero__eyebrow { color: var(--accent); }
.hero h1 { margin-bottom: var(--space-sm); }
.hero__sub {
  font-size: 1.1rem;
  color: var(--steel);
  margin-bottom: var(--space-md);
  max-width: 46ch;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto var(--space-md); }
}

/* ===== Section basics ===== */
.section { padding: var(--space-xl) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-bright); }
.section-head { max-width: 720px; margin-bottom: var(--space-lg); }
.section-head p { color: var(--steel); margin-top: var(--space-xs); }
.section--dark .section-head p { color: #C7CEDD; }

/* ===== About strip (asymmetric two-col) ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-lg);
  align-items: start;
}
.about-grid__figure {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--line);
}
.about-grid__figure dl { display: grid; gap: var(--space-md); }
.about-grid__figure dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
}
.about-grid__figure dd { font-size: 0.9rem; color: var(--steel); margin-top: 4px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== Capabilities bento (uneven grid, not 3 equal cards) ===== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-sm);
}
.cap-card {
  background: var(--bg);
  padding: var(--space-md);
  grid-column: span 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.cap-card--wide { grid-column: span 4; background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.cap-card--wide h3 { color: #fff; }
.cap-card--narrow { grid-column: span 2; }
.cap-card__index {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.cap-card--wide .cap-card__index { color: var(--accent-bright); }
.cap-card p { font-size: 0.92rem; color: var(--steel); }
.cap-card--wide p { color: #C7CEDD; }
@media (max-width: 860px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .cap-card, .cap-card--wide, .cap-card--narrow { grid-column: span 1; }
}

/* ===== Value props (list style, not equal cards) ===== */
.value-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.value-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.value-item__num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
}
.value-item h3 { margin-bottom: 6px; }
.value-item p { color: var(--steel); }
@media (max-width: 700px) {
  .value-item { grid-template-columns: 1fr; gap: var(--space-xs); }
}

/* ===== Process timeline ===== */
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
.process-line::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-step { position: relative; padding-top: var(--space-md); }
.process-step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--steel); font-size: 0.92rem; }
@media (max-width: 780px) {
  .process-line { grid-template-columns: 1fr; gap: var(--space-lg); }
  .process-line::before { display: none; }
}

/* ===== CTA band ===== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 34ch; }
.section--dark .btn-outline { color: #fff; border-color: #6b7794; }
.section--dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #C7CEDD;
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #2a3a63;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.footer-grid p, .footer-grid a { font-size: 0.92rem; color: #C7CEDD; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  font-size: 0.82rem;
  color: #7c88a6;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.footer-wordmark .w-pmt { color: #fff; }
.footer-wordmark .w-asia { color: var(--accent-bright); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Generic page content ===== */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(2, 72, 166, 0.05) 0%, transparent 70%);
}
.entry-content { padding: var(--space-lg) 0; }
.entry-content :where(p, ul, ol) { margin-bottom: var(--space-sm); color: var(--steel); }
.entry-content h2 { margin: var(--space-md) 0 var(--space-xs); }

/* ===== Top utility bar ===== */
.topbar { background: var(--ink); color: #C7CEDD; font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; flex-wrap: wrap; gap: 8px; }
.topbar__tagline { letter-spacing: 0.02em; }
.topbar__contacts { display: flex; gap: var(--space-md); list-style: none; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 6px; color: #C7CEDD; }
.topbar__contacts a:hover { color: #fff; }
@media (max-width: 700px) { .topbar__tagline { display: none; } .topbar__contacts { gap: 14px; } }

/* ===== Hero — photo/dark variant ===== */
.hero--photo {
  background: linear-gradient(120deg, #081326 0%, var(--ink) 45%, var(--accent) 160%);
  color: #fff;
  padding: var(--space-xl) 0;
}
.hero--photo .container { display: block; }
.hero__inner { max-width: 900px; }
.hero--photo h1 { color: #fff; }
.hero--photo .hero__sub { color: #C7CEDD; max-width: 56ch; }
.btn-outline--dark { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline--dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Solutions grid (6 equal icon cards) ===== */
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.solution-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-md); text-align: center; }
.solution-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); margin-bottom: var(--space-xs); }
.solution-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.solution-card p { color: var(--steel); font-size: 0.9rem; }
@media (max-width: 860px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions-grid { grid-template-columns: 1fr; } }

/* ===== About + stats sidebar ===== */
.about-grid { grid-template-columns: 1.15fr 0.85fr; }
.about-stats { display: grid; gap: var(--space-sm); align-content: start; }
.about-stats__item { background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: var(--space-md); }
.about-stats__label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.about-stats__desc { display: block; font-size: 0.85rem; color: #C7CEDD; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr !important; } }

/* ===== Contact CTA bar ===== */
.cta-bar { background: var(--bg); color: var(--ink); padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.cta-bar__inner { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: var(--space-lg); align-items: center; }
.cta-bar__message h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; max-width: 20ch; }
.cta-bar__message p { color: var(--steel); font-size: 0.92rem; }
.cta-bar__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.cta-bar__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-xs); }
.cta-bar__item svg { flex-shrink: 0; color: var(--accent); }
.cta-bar__item strong { display: block; font-size: 0.8rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.cta-bar__item span { display: block; font-size: 0.78rem; color: var(--steel); max-width: 16ch; }
.cta-bar__rule { width: 48px; height: 3px; background: var(--gradient); border-radius: 2px; margin: 8px 0 12px; }
.cta-bar__action { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.cta-bar__contacts { list-style: none; display: grid; gap: 6px; font-size: 0.85rem; color: #C7CEDD; }
@media (max-width: 900px) {
  .cta-bar__inner { grid-template-columns: 1fr; text-align: left; }
  .cta-bar__items { grid-template-columns: 1fr; }
  .cta-bar__item { flex-direction: row; align-items: flex-start; text-align: left; }
  .cta-bar__item span { max-width: none; }
}

/* ===== Footer 4-col ===== */
.footer-grid--4 { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid--4 { grid-template-columns: 1fr; } }

/* ===== Placeholder media (swap-in-ready image slots) ===== */
.ph-media {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--line) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--steel);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.ph-media svg { opacity: 0.55; }
.ph-media span { font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.65; text-align: center; padding: 0 10px; }
.ph-media--dark { background: linear-gradient(135deg, #16233f 0%, #0a1224 100%); color: #90A0C2; }

/* ===== Hero photo placeholder + overlay ===== */
.hero--photo {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  overflow: hidden;
  box-sizing: border-box;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .ph-media { position: absolute; inset: 0; border-radius: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(6,14,30,0.94) 0%, rgba(6,14,30,0.75) 45%, rgba(2,72,166,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

/* ===== Solution card photo slot ===== */
.solution-card__photo { width: 100%; height: 130px; margin: var(--space-xs) 0; position: relative; overflow: hidden; border-radius: 8px; }
.solution-card__photo svg { width: 28px; height: 28px; }

/* ===== About photo + icon row ===== */
.about-photo { width: 100%; height: 260px; margin-bottom: var(--space-sm); }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md); }
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.about-chip__icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-chip span:last-child { font-size: 0.78rem; font-weight: 500; color: var(--ink); white-space: nowrap; }

/* ===== Projects section ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.project-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.project-card__photo { width: 100%; height: 190px; border-radius: 0; overflow: hidden; }
.project-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.project-card__body h3 { font-size: 1rem; margin-bottom: 4px; }
.project-card__body p { font-size: 0.85rem; color: var(--steel); margin-bottom: 10px; }
.project-card__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 860px) { .projects-grid { grid-template-columns: 1fr; } }

/* ===== Trusted brands strip ===== */
.brands-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-sm); align-items: center; }
.brand-slot { height: 64px; }
.brand-slot span { font-size: 0.6rem; }
@media (max-width: 860px) { .brands-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .brands-strip { grid-template-columns: repeat(2, 1fr); } }

/* ===== Hero headline accent rule ===== */
.hero--photo h1 { margin-bottom: 14px; }
.hero__rule { width: 56px; height: 4px; background: var(--gradient); border: 0; margin: 0 0 var(--space-sm); border-radius: 2px; }
.btn svg, .btn-outline svg { flex-shrink: 0; }

/* ===== Hero: pull content closer to the left edge, full-bleed container ===== */
.hero--photo .container {
  max-width: 100%;
  margin: 0;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
}

.solution-card__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* ===== About: full-bleed strip (text stays inset, photo+stats bleed to viewport edge) ===== */
.about-strip-section { background: var(--surface); overflow: hidden; }
.about-strip {
  display: flex;
  align-items: stretch;
  min-height: 340px;
  padding: var(--space-lg) 0 var(--space-lg) max(20px, calc((100vw - 1180px) / 2 + 20px));
}
.about-text { flex: 0 0 auto; width: min(420px, 40vw); padding-right: var(--space-lg); align-self: center; }
.about-photo-stats { flex: 1 1 auto; display: flex; min-width: 0; }
.about-photo-3col { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.about-photo-3col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-stats-panel {
  flex: 0 0 270px;
  background: var(--ink);
  color: #fff;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 3px solid var(--accent-bright);
}
.about-stats-panel__lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.about-stats-panel__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--accent-bright);
  line-height: 1;
}
.about-stats-panel__lead .about-stats-panel__desc { color: #fff; font-weight: 500; }
.about-stats-panel__list { display: flex; flex-direction: column; gap: var(--space-sm); }
.about-stats-panel__item { display: flex; align-items: center; gap: 12px; }
.about-stats-panel__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-stats-panel__desc { font-size: 0.85rem; color: #C7CEDD; line-height: 1.35; }
@media (max-width: 900px) {
  .about-strip { flex-direction: column; padding: var(--space-md) var(--space-sm); min-height: 0; }
  .about-text { width: 100%; padding-right: 0; margin-bottom: var(--space-md); }
  .about-photo-stats { flex-direction: column; }
  .about-photo-3col { min-height: 220px; }
  .about-stats-panel { flex: 0 0 auto; }
}

/* ===== About strip refinements: tighter, more compact ===== */
.about-text { width: min(460px, 42vw); }
.about-text h2 { font-size: 1.65rem; line-height: 1.18; margin-bottom: 2px; }
.about-text .eyebrow { margin-bottom: 6px; }
.about-text p { font-size: 0.94rem; line-height: 1.55; }
.about-icons { margin-top: var(--space-sm); gap: var(--space-xs); }
.about-icon__badge { width: 34px; height: 34px; }
.about-icon__badge svg { width: 15px; height: 15px; }
.about-icon span { font-size: 0.74rem; }
.about-strip { padding-top: var(--space-md); padding-bottom: var(--space-md); }

/* ===== Single project page ===== */
.project-banner { position: relative; height: 46vh; min-height: 320px; max-height: 520px; overflow: hidden; }
.project-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,14,30,0.1) 0%, rgba(6,14,30,0.55) 100%); }
.project-summary { margin-top: 10px; color: var(--steel); font-size: 1.05rem; max-width: 60ch; }
.project-description :where(p, ul, ol) { color: var(--steel); margin-bottom: var(--space-sm); max-width: 70ch; }
.project-description h2, .project-description h3 { margin: var(--space-md) 0 var(--space-xs); }
.project-gallery-head { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.project-gallery__item { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.project-gallery__item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.2s ease; }
.project-gallery__item:hover img { transform: scale(1.03); }
.project-back { display: flex; gap: var(--space-sm); flex-wrap: wrap; padding-top: var(--space-md); border-top: 1px solid var(--line); }
@media (max-width: 780px) {
  .project-banner { height: 32vh; min-height: 220px; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .project-gallery { grid-template-columns: 1fr; } }

/* ===== Projects: view all button ===== */
.projects-view-all { text-align: center; margin-top: var(--space-md); }

/* ===== Project card links (title + image now clickable) ===== */
.project-card__body h3 a { color: var(--ink); }
a.project-card__photo { display: block; }

/* ===== Brands: auto-scrolling carousel ===== */
.brands-carousel {
  overflow: hidden;
  padding: var(--space-md) 0 var(--space-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: max-content;
  animation: pmt-brands-scroll 28s linear infinite;
}
.brands-carousel:hover .brands-track { animation-play-state: paused; }
.brand-slot { flex: 0 0 auto; width: 140px; height: 64px; }
.brand-slot .ph-media { width: 100%; height: 100%; }
.brand-slot .ph-media span { font-size: 0.6rem; }
@keyframes pmt-brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* ===== Brand logo images in carousel ===== */
.brand-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.2s ease;
}
.brand-slot img:hover { filter: grayscale(0%) opacity(1); }

/* ===== Trusted Brands: compact section ===== */
.brands-section { padding: var(--space-md) 0; }
.section-head--tight { margin-bottom: 0; }
.section-head--tight h2 { font-size: 1.15rem; letter-spacing: 0.02em; }
.brands-carousel { padding: var(--space-sm) 0 var(--space-md); }
.brand-slot { width: 120px; height: 48px; }

/* ===== CTA bar contact list with icons ===== */
.cta-bar__contacts li { margin-bottom: 4px; }
.cta-bar__contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); transition: opacity 0.15s ease; }
.cta-bar__contacts a:hover { opacity: 0.7; }
.cta-bar__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.cta-bar__contact-icon--whatsapp { background: #25D366; }

/* ===== About Us: Vision & Mission cards ===== */
.vision-mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.vm-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-lg); }
.vm-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); margin-bottom: var(--space-sm);
}
.vm-card h3 { margin-bottom: 10px; }
.vm-card p { color: var(--steel); }
@media (max-width: 780px) { .vision-mission-grid { grid-template-columns: 1fr; } }

/* ===== About Us: Heritage centered stats row ===== */
.heritage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); max-width: 720px; margin: var(--space-lg) auto 0; }
.heritage-stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.heritage-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.heritage-stat__desc { display: block; font-size: 0.85rem; color: var(--steel); }
@media (max-width: 700px) { .heritage-stats { grid-template-columns: 1fr; max-width: 320px; } }

/* ===== About Us: Who We Are balance fix ===== */
.who-we-are-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
.who-we-are-grid .about-photo { height: 100%; min-height: 380px; margin-bottom: 0; }
.who-we-are-grid .about-photo img { height: 100%; }
@media (max-width: 900px) { .who-we-are-grid .about-photo { min-height: 280px; } }

/* ===== Page hero: photo variant (About Us) ===== */
.page-hero--photo {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,14,30,0.55) 0%, rgba(6,14,30,0.78) 100%);
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero--photo .eyebrow { color: var(--accent-bright); }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .project-summary { color: #E4E9F5; }
@media (max-width: 700px) { .page-hero--photo { min-height: 300px; } }

/* ============================================================
 * WooCommerce: single product + shop styling
 * ============================================================ */
.woocommerce { padding: 0; }
.woocommerce .container, .woocommerce-page .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-md); }

/* Single product layout */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: var(--space-lg);
  row-gap: var(--space-md);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}
.woocommerce div.product div.images {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.woocommerce div.product div.images img { width: 100%; height: auto; display: block; }
.woocommerce div.product div.summary {
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related.products,
.woocommerce div.product > .pmt-product-details {
  grid-column: 1 / -1;
  width: 100%;
}

/* Inline product details (description + specs, no tab-click needed) */
.pmt-product-details {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
}
.pmt-product-details .eyebrow { font-size: 0.85rem; margin-bottom: 8px; display: block; }
.pmt-product-details__desc p { color: var(--steel); margin-bottom: var(--space-sm); line-height: 1.75; font-size: 1.02rem; }
.pmt-product-details__desc img { max-width: 360px; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--line); margin-top: var(--space-sm); }
.pmt-specs-table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); }
.pmt-specs-table tr { border-bottom: 1px solid var(--line); }
.pmt-specs-table th, .pmt-specs-table td { text-align: left; padding: 12px 0; font-size: 0.98rem; }
.pmt-specs-table th { color: var(--ink); font-weight: 600; width: 42%; }
.pmt-specs-table td { color: var(--steel); }
@media (max-width: 780px) { .pmt-product-details { grid-template-columns: 1fr; } }
.woocommerce div.product .product_title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price { display: none; }
.woocommerce-product-details__short-description { color: var(--steel); margin-bottom: var(--space-sm); }
.posted_in, .product_meta, .sku_wrapper, span.posted_in {
  display: block; font-size: 0.85rem; color: var(--steel); margin-top: var(--space-md);
}
.posted_in a, .product_meta a { color: var(--accent); }
.pmt-quote-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; width: fit-content; }

/* Tabs */
.woocommerce-tabs { max-width: 1180px; margin: 0 auto var(--space-lg); padding: 0 var(--space-md); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: var(--space-sm); border-bottom: 1px solid var(--line); margin-bottom: var(--space-md); padding: 0; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block; padding: 10px 4px; font-weight: 600; color: var(--steel);
  border-bottom: 2px solid transparent; text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--accent); }
.woocommerce-Tabs-panel h2 { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.woocommerce-Tabs-panel img { max-width: 320px; border-radius: var(--radius-md); border: 1px solid var(--line); }

/* Related products */
.related.products { max-width: 1180px; margin: 0 auto; padding: var(--space-md) var(--space-md) var(--space-lg); }
.related.products > h2 {
  font-size: 1.3rem; margin-bottom: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--line);
}
.related.products ul.products {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); padding: 0; margin: 0;
}
.related.products ul.products li.product {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; transition: border-color 0.15s ease;
}
.related.products ul.products li.product:hover { border-color: var(--accent); }
.related.products ul.products li.product a.woocommerce-loop-product__link {
  display: block; background: var(--surface);
}
.related.products ul.products li.product a.woocommerce-loop-product__link img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.9rem; font-weight: 600; color: var(--ink); padding: 12px 14px 4px; line-height: 1.35; flex: 1;
  display: block; margin: 0;
}
.related.products ul.products li.product span.price { display: none; }
.related.products ul.products li.product a.pmt-quote-btn--small {
  display: block; margin: 8px 14px 14px; font-size: 0.8rem; padding: 8px 14px; text-align: center;
  aspect-ratio: auto; background: var(--accent); color: #fff;
}
@media (max-width: 900px) { .related.products ul.products { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 780px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* Shop / category archive grid */
ul.products { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); padding: 0; }
ul.products li.product {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg);
}
ul.products li.product img { width: 100%; height: 180px; object-fit: cover; display: block; }
ul.products li.product .woocommerce-loop-product__title { font-size: 0.9rem; font-weight: 600; color: var(--ink); padding: 10px 12px 4px; }
ul.products li.product span.price { display: none; }
@media (max-width: 780px) { ul.products { grid-template-columns: repeat(2, 1fr); } }

.woocommerce-breadcrumb { max-width: 1180px; margin: 0 auto var(--space-sm); padding: 0 var(--space-md); color: var(--steel); font-size: 0.85rem; }
.woocommerce-breadcrumb a { color: var(--accent); }

/* ===== Quote request modal ===== */
.pmt-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-md);
}
.pmt-modal.is-open { display: flex; }
.pmt-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(6,14,30,0.6);
}
.pmt-modal__box {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg) calc(var(--space-lg) * 1.3);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(6,14,30,0.35);
}
.pmt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-md); }
@media (max-width: 560px) { .pmt-form-grid { grid-template-columns: 1fr; } }
.pmt-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 1.3rem; line-height: 1; color: var(--steel);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pmt-modal__close:hover { color: var(--ink); border-color: var(--accent); }
.pmt-modal__box h3 { font-size: 1.3rem; margin: 4px 0 10px; color: var(--ink); }
.pmt-modal__product-line {
  font-size: 0.85rem; color: var(--steel); margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm); border-bottom: 1px solid var(--line);
}
.pmt-modal__product-line strong { color: var(--ink); }
.pmt-form-row { margin-bottom: var(--space-sm); }
.pmt-form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pmt-form-row input, .pmt-form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg);
}
.pmt-form-row input:focus, .pmt-form-row textarea:focus { outline: none; border-color: var(--accent); }
.pmt-modal__submit { width: 100%; margin-top: 4px; justify-content: center; }
.pmt-modal__note { font-size: 0.75rem; color: var(--steel); text-align: center; margin-top: 10px; }

/* WooCommerce content wrapper - tight, not the generic .section padding */
.woo-wrap { padding: var(--space-md) 0; }

/* ===== Solution cards: clickable + crossfading photos ===== */
a.solution-card { display: block; cursor: pointer; }
.solution-card__photo { position: relative; }
.solution-card__photo img {
  position: static;
  transition: opacity 1.2s ease-in-out;
}
.solution-card__photo img:not(.is-active) {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.solution-card__photo img.is-active { opacity: 1; }

/* ===== Primary nav: dropdown submenu (Solutions) ===== */
.primary-nav ul { list-style: none; display: flex; gap: var(--space-md); margin: 0; padding: 0; }
.primary-nav .menu-item { position: relative; }
.primary-nav .menu-item > a { display: flex; align-items: center; gap: 4px; }
.primary-nav .menu-item-has-children > a::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
}
.primary-nav .menu-item-has-children:hover > a::after { transform: rotate(225deg); margin-top: 3px; }

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  width: 560px;
  max-height: 75vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(6,14,30,0.14);
  z-index: 50;
}
.primary-nav > ul > li.menu-item-has-children:hover > .sub-menu,
.primary-nav > ul > li.menu-item-has-children.is-open > .sub-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 2px;
  align-items: start;
}
.primary-nav .sub-menu > li { width: 100%; margin-bottom: 2px; }
.primary-nav .sub-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.primary-nav .sub-menu a:hover { background: var(--surface); color: var(--accent); }
.primary-nav > ul > li.menu-item-has-children > .sub-menu > li:first-child { grid-column: 1 / -1; }
.primary-nav > ul > li.menu-item-has-children > .sub-menu > li:first-child > a { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 6px; padding-bottom: 10px; }

/* Second-level (category groups): show inline, not as another flyout */
.primary-nav .sub-menu .sub-menu {
  display: block;
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 8px 0;
  margin: 0 0 6px 0;
}
.primary-nav .sub-menu .sub-menu li { margin-bottom: 0; }
.primary-nav .sub-menu .sub-menu a {
  padding: 5px 10px 5px 18px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--steel);
}
.primary-nav .sub-menu .sub-menu a:hover { color: var(--accent); }
/* Parent category label (e.g. "Catalogs") acts as a section header */
.primary-nav .sub-menu > li.menu-item-has-children > a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-bottom: 2px;
}

@media (max-width: 900px) {
  .primary-nav .sub-menu { position: static; box-shadow: none; margin-top: 4px; border: none; padding-left: var(--space-sm); display: none; }
  .primary-nav .menu-item-has-children.is-open .sub-menu { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
}

.primary-nav .sub-menu > li.menu-item-has-children > a::after { display: none; }
@media (max-width: 900px) { .primary-nav .sub-menu { width: 100%; grid-template-columns: 1fr; } }
