/* ==========================================================================
   QCL PH redesign: design system + header, footer and homepage.
   Everything is scoped to .ph-ui so legacy templates (css/style.css) keep working.
   Note: css/style.css sets html { font-size: 10px }, so 1rem = 10px here.
   ========================================================================== */

:root {
  --ph-navy: #0b2340;
  --ph-navy-2: #12315a;
  --ph-blue: #1d5fbf;
  --ph-blue-dark: #174c99;
  --ph-teal: #2f8579;
  --ph-teal-soft: #e6f2f0;
  --ph-ink: #101828;
  --ph-body: #475467;
  --ph-muted: #667085;
  --ph-line: #e4e7ec;
  --ph-soft: #f5f7fa;
  --ph-white: #ffffff;

  --ph-font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --ph-font-body: 'Inter', 'Segoe UI', sans-serif;

  --ph-radius: 1.2rem;
  --ph-radius-lg: 2rem;
  --ph-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --ph-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --ph-header-h: 8.4rem;
}

/* ---------- Base (inside redesigned areas) ---------- */
.ph-ui,
.ph-ui * {
  font-family: var(--ph-font-body);
  box-sizing: border-box;
}
.ph-ui {
  color: var(--ph-body);
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ph-ui h1, .ph-ui h2, .ph-ui h3, .ph-ui h4, .ph-ui h5, .ph-ui h6,
.ph-ui .ph-h1, .ph-ui .ph-h2, .ph-ui .ph-h3 {
  font-family: var(--ph-font-head);
  color: var(--ph-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ph-ui p { margin: 0 0 1.6rem; }
.ph-ui p:last-child { margin-bottom: 0; }
.ph-ui a { color: var(--ph-blue); }
.ph-ui img { display: block; max-width: 100%; height: auto; }
.ph-ui ul { list-style: none; margin: 0; padding: 0; }

/* Grid/flex children may shrink below their content width (prevents horizontal overflow on phones). */
.ph-ui [class*="__grid"] > *,
.ph-ui .ph-hero__grid > *,
.ph-ui .ph-logos__list,
.ph-ui .ph-header__bar > * { min-width: 0; }

.ph-container {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}
.ph-section { padding: 10.4rem 0; }
.ph-section--soft { background: var(--ph-soft); }
.ph-section--navy { background: var(--ph-navy); }
.ph-section--tight { padding: 5.6rem 0; }

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-family: var(--ph-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-teal);
}
.ph-eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 2px;
  background: currentColor;
}
.ph-ui .ph-h1 { font-size: clamp(3.2rem, 4.4vw, 5.6rem); line-height: 1.08; margin: 0 0 2.4rem; }
.ph-ui .ph-h2 { font-size: clamp(2.8rem, 3vw, 4rem); line-height: 1.18; margin: 0 0 2rem; }
.ph-ui .ph-h3 { font-size: 2rem; line-height: 1.3; margin: 0 0 1rem; }
.ph-lead { font-size: 1.8rem; line-height: 1.65; color: var(--ph-body); }

.ph-section-head { max-width: 72rem; margin-bottom: 5.6rem; }
.ph-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ph-section-head--center .ph-eyebrow { justify-content: center; }
.ph-section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3.2rem;
}
.ph-section-head--split > div { max-width: 72rem; }

.ph-on-dark,
.ph-on-dark h2, .ph-on-dark h3, .ph-on-dark h4, .ph-on-dark .ph-h2 { color: var(--ph-white); }
.ph-on-dark .ph-lead, .ph-on-dark p { color: rgba(255, 255, 255, 0.78); }
.ph-on-dark .ph-eyebrow { color: #7cc7bb; }

/* ---------- Buttons ---------- */
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 1.2rem 2.4rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-family: var(--ph-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.ph-btn svg { width: 1.8rem; height: 1.8rem; flex: none; }
.ph-ui .ph-btn--primary { background: var(--ph-blue); color: var(--ph-white); }
.ph-ui .ph-btn--primary:hover { background: var(--ph-blue-dark); color: var(--ph-white); }
.ph-ui .ph-btn--ghost { background: var(--ph-white); color: var(--ph-ink); border-color: var(--ph-line); }
.ph-ui .ph-btn--ghost:hover { border-color: var(--ph-ink); }
.ph-ui .ph-btn--light { background: var(--ph-white); color: var(--ph-navy); }
.ph-ui .ph-btn--light:hover { background: var(--ph-teal-soft); }
.ph-ui .ph-btn--outline-light { color: var(--ph-white); border-color: rgba(255, 255, 255, 0.4); }
.ph-ui .ph-btn--outline-light:hover { border-color: var(--ph-white); }
.ph-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ph-font-head);
  font-weight: 700;
  font-size: 1.5rem;
}
.ph-link-arrow svg { width: 1.6rem; height: 1.6rem; transition: transform 0.2s; }
.ph-link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.ph-js [data-reveal] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ph-js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ph-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ph-line);
}
.admin-bar .ph-header { top: 32px; }
.ph-header__bar {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  height: var(--ph-header-h);
}
.ph-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: none;
}
.ph-brand img { width: 5.2rem; height: 5.2rem; object-fit: contain; }
.ph-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ph-ui .ph-brand__name {
  font-family: var(--ph-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ph-navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.ph-ui .ph-brand__region {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ph-teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ph-nav { margin-left: auto; }
.ph-nav > ul { display: flex; align-items: center; gap: 0.4rem; }
.ph-nav li { position: relative; }
.ph-ui .ph-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  font-family: var(--ph-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ph-ink);
}
.ph-ui .ph-nav a:hover,
.ph-ui .ph-nav .current-menu-item > a,
.ph-ui .ph-nav .current-menu-ancestor > a { color: var(--ph-blue); }
.ph-nav .menu-item-has-children > a::after {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.ph-nav .sub-menu-toggle { display: none; }
.ph-nav .sub-menu {
  /* css/style.css collapses .sub-menu (max-height: 0; overflow: hidden) for the old JS menu. */
  max-height: none;
  overflow: visible;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 26rem;
  padding: 0.8rem;
  background: var(--ph-white);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.ph-nav li:hover > .sub-menu,
.ph-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ph-ui .ph-nav .sub-menu a { padding: 1rem 1.2rem; font-weight: 500; font-size: 1.45rem; white-space: nowrap; }
.ph-ui .ph-nav .sub-menu a:hover { background: var(--ph-soft); }

.ph-header__actions { display: flex; align-items: center; gap: 1.6rem; flex: none; }
.ph-header .region-switch {
  margin: 0;
  font-family: var(--ph-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ph-muted);
  text-shadow: none;
}
.ph-header .region-switch a { color: var(--ph-muted); opacity: 1; }
.ph-header .region-switch a:hover { color: var(--ph-ink); }
.ph-header .region-switch-current { color: var(--ph-ink); text-decoration-color: var(--ph-teal); text-decoration-thickness: 2px; }
.ph-header .region-switch-sep { margin: 0 0.6rem; color: var(--ph-line); opacity: 1; }

.ph-menu-toggle {
  display: none;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--ph-line);
  border-radius: 0.8rem;
  background: var(--ph-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.ph-menu-toggle span,
.ph-menu-toggle span::before,
.ph-menu-toggle span::after {
  display: block;
  width: 1.8rem;
  height: 2px;
  background: var(--ph-ink);
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.ph-menu-toggle span::before,
.ph-menu-toggle span::after { content: ''; position: absolute; left: 0; }
.ph-menu-toggle span::before { top: -6px; }
.ph-menu-toggle span::after { top: 6px; }
.ph-nav-open .ph-menu-toggle span { background: transparent; }
.ph-nav-open .ph-menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.ph-nav-open .ph-menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* The floating legacy quote button duplicates the header CTA on desktop. */
@media (min-width: 1101px) {
  #getQuoteBtn { display: none !important; }
}

@media (max-width: 1100px) {
  .ph-header__bar { gap: 1.6rem; }
  .ph-header__actions { margin-left: auto; }
  .ph-menu-toggle { display: inline-flex; }
  .ph-header__cta { display: none; }
  .ph-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100vh - var(--ph-header-h));
    overflow-y: auto;
    background: var(--ph-white);
    border-bottom: 1px solid var(--ph-line);
    box-shadow: var(--ph-shadow-lg);
    display: none;
  }
  .ph-nav-open .ph-nav { display: block; }
  .ph-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1.2rem 2.4rem 2.4rem; }
  .ph-ui .ph-nav a { padding: 1.4rem 0.4rem; font-size: 1.7rem; border-bottom: 1px solid var(--ph-line); border-radius: 0; }
  .ph-nav .menu-item-has-children > a { justify-content: space-between; }
  .ph-nav .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 1.6rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .ph-nav li.is-open > .sub-menu { display: block; }
  .ph-nav li:hover > .sub-menu { display: none; }
  .ph-nav li.is-open:hover > .sub-menu { display: block; }
  .ph-ui .ph-nav .sub-menu a { font-size: 1.6rem; }
  .ph-nav__mobile-cta { display: block !important; padding: 0 2.4rem 2.4rem; }
  .ph-nav__mobile-cta .ph-btn { width: 100%; }
}
.ph-nav__mobile-cta { display: none; }
@media (max-width: 560px) {
  .ph-header .ph-brand__text { display: none; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */

/* Hero */
.ph-hero { position: relative; padding: 8.8rem 0 9.6rem; overflow: hidden; background: linear-gradient(180deg, var(--ph-soft) 0%, var(--ph-white) 100%); }
.ph-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6.4rem; align-items: center; }
.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3.2rem; }
.ph-hero__meta { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; margin-top: 3.2rem; font-size: 1.4rem; color: var(--ph-muted); }
.ph-hero__meta span { display: inline-flex; min-width: 0; align-items: center; gap: 0.8rem; }
.ph-hero__meta svg { width: 1.8rem; height: 1.8rem; color: var(--ph-teal); }
.ph-hero__media { position: relative; }
.ph-hero__media > img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--ph-radius-lg);
  box-shadow: var(--ph-shadow-lg);
}
.ph-hero__badge {
  position: absolute;
  left: -3.2rem;
  bottom: 3.2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 2.4rem;
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-lg);
}
.ph-ui .ph-hero__badge strong { font-family: var(--ph-font-head); font-size: 3.6rem; line-height: 1; color: var(--ph-navy); }
.ph-hero__badge span { font-size: 1.4rem; line-height: 1.3; color: var(--ph-muted); max-width: 14rem; }

/* Logo strip */
.ph-logos { border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); background: var(--ph-white); }
.ph-logos__inner { display: flex; align-items: center; gap: 4rem; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.ph-ui .ph-logos__label { flex: none; max-width: 16rem; font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: var(--ph-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.ph-logos__list { display: flex; align-items: center; justify-content: space-between; gap: 3.2rem; flex: 1; flex-wrap: wrap; }
.ph-logos__list img { height: 4.8rem; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.ph-logos__list li:hover img { filter: none; opacity: 1; }

/* About */
.ph-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.ph-about__media { position: relative; }
.ph-about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ph-radius-lg); background: var(--ph-soft); }
.ph-about__stat {
  position: absolute;
  right: -2.4rem;
  top: 3.2rem;
  padding: 2.4rem 2.8rem;
  background: var(--ph-navy);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow-lg);
}
.ph-ui .ph-about__stat strong { display: block; font-family: var(--ph-font-head); font-size: 4.4rem; line-height: 1; color: var(--ph-white); }
.ph-about__stat span { display: block; margin-top: 0.6rem; font-size: 1.4rem; color: rgba(255, 255, 255, 0.75); }
.ph-about__text { font-size: 1.7rem; }
.ph-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; margin: 3.2rem 0 4rem; }
.ph-checks li { display: flex; gap: 1.2rem; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.6rem; line-height: 1.4; color: var(--ph-ink); }
.ph-checks svg { flex: none; width: 2.4rem; height: 2.4rem; padding: 0.4rem; border-radius: 50%; background: var(--ph-teal-soft); color: var(--ph-teal); }

/* Stats band */
.ph-stats__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6.4rem; align-items: center; }
.ph-stats__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ph-stats__item { padding: 2.8rem 2.4rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--ph-radius); background: rgba(255, 255, 255, 0.04); }
.ph-ui .ph-stats__item strong { display: block; font-family: var(--ph-font-head); font-size: 4rem; line-height: 1; color: var(--ph-white); }
.ph-stats__item span { display: block; margin-top: 1rem; font-size: 1.4rem; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }

/* Services */
.ph-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.ph-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--ph-white);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
a.ph-card:hover { box-shadow: var(--ph-shadow-lg); transform: translateY(-3px); border-color: transparent; }
.ph-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph-soft); }
.ph-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
a.ph-card:hover .ph-card__img img { transform: scale(1.04); }
.ph-card__body { display: flex; flex-direction: column; flex: 1; padding: 2.4rem 2.4rem 2.8rem; }
.ph-card__body p { font-size: 1.5rem; color: var(--ph-body); }
.ph-card__body .ph-link-arrow { margin-top: auto; padding-top: 1.6rem; }

/* Mission / vision / values */
.ph-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.ph-value { overflow: hidden; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius); }
.ph-value__img { aspect-ratio: 16 / 9; background: var(--ph-soft); }
.ph-value__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-value__body { padding: 2.8rem 2.8rem 3.2rem; }
.ph-value p { font-size: 1.55rem; }

/* Founder */
.ph-founder { display: grid; grid-template-columns: 30rem 1fr; gap: 6.4rem; align-items: center; }
.ph-founder__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--ph-radius-lg); background: var(--ph-white); }
.ph-ui .ph-founder blockquote { margin: 0 0 3.2rem; font-family: var(--ph-font-head); font-size: clamp(2.2rem, 2.2vw, 2.8rem); font-weight: 600; line-height: 1.45; color: var(--ph-ink); letter-spacing: -0.01em; }
.ph-founder blockquote::before { content: '\201C'; display: block; height: 4rem; font-size: 8rem; line-height: 1; color: var(--ph-teal); }
.ph-ui .ph-founder__name { font-family: var(--ph-font-head); font-weight: 700; font-size: 1.8rem; color: var(--ph-ink); margin: 0; }
.ph-founder__role { font-size: 1.4rem; color: var(--ph-muted); }

/* Team */
.ph-team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
.ph-person__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ph-radius); background: var(--ph-soft); }
.ph-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-ui .ph-person h3 { margin: 1.6rem 0 0.2rem; font-size: 1.7rem; }
.ph-person p { font-size: 1.4rem; color: var(--ph-muted); }

/* Careers CTA */
.ph-cta { position: relative; overflow: hidden; border-radius: var(--ph-radius-lg); background: var(--ph-navy); }
.ph-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.ph-cta__content { position: relative; max-width: 64rem; padding: 7.2rem 6.4rem; }
.ph-cta__content .ph-btn { margin-top: 1.6rem; }

/* Insights */
.ph-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.ph-post__date { font-size: 1.3rem; font-weight: 600; color: var(--ph-teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }

/* Contact */
.ph-contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6.4rem; align-items: start; }
.ph-contact__list { display: grid; gap: 1.6rem; margin-top: 3.2rem; }
.ph-contact__item { display: flex; gap: 1.6rem; padding: 2rem; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius); }
.ph-contact__item svg { flex: none; width: 4.4rem; height: 4.4rem; padding: 1.1rem; border-radius: 1rem; background: var(--ph-teal-soft); color: var(--ph-teal); }
.ph-ui .ph-contact__item h3 { margin: 0 0 0.4rem; font-size: 1.4rem; font-weight: 600; color: var(--ph-muted); letter-spacing: 0; }
.ph-contact__item p, .ph-contact__item a { margin: 0; font-size: 1.6rem; color: var(--ph-ink); font-weight: 500; }
.ph-form-card { padding: 4rem; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow); }
.ph-form-card > h3 { margin: 0 0 0.8rem; font-size: 2.4rem; }
.ph-form-card > p { margin-bottom: 2.4rem; }

/* Contact Form 7 inside the redesigned card */
.ph-form-card .wpcf7-form { display: grid; gap: 1.6rem; }
.ph-form-card .wpcf7-form p { margin: 0; }
.ph-form-card .wpcf7-form br { display: none; }
.ph-form-card .wpcf7-form img { display: none; }
.ph-form-card .wpcf7-form-control-wrap { display: block; }
.ph-form-card input[type="text"],
.ph-form-card input[type="email"],
.ph-form-card input[type="tel"],
.ph-form-card input[type="url"],
.ph-form-card select,
.ph-form-card textarea {
  width: 100%;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--ph-line);
  border-radius: 0.8rem;
  background: var(--ph-white);
  font-size: 1.6rem;
  color: var(--ph-ink);
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ph-form-card textarea { min-height: 14rem; resize: vertical; }
.ph-form-card input:focus,
.ph-form-card select:focus,
.ph-form-card textarea:focus { outline: none; border-color: var(--ph-blue); box-shadow: 0 0 0 4px rgba(29, 95, 191, 0.12); }
.ph-form-card input[type="submit"],
.ph-form-card button[type="submit"] {
  width: 100%;
  min-height: 5.2rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--ph-blue);
  color: var(--ph-white);
  font-family: var(--ph-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.ph-form-card input[type="submit"]:hover,
.ph-form-card button[type="submit"]:hover { background: var(--ph-blue-dark); }
.ph-form-card .wpcf7-not-valid-tip { margin-top: 0.6rem; font-size: 1.3rem; }
.ph-form-card .wpcf7-response-output { margin: 0 !important; font-size: 1.4rem; border-radius: 0.8rem; }
.ph-form-card .wpcf7-spinner { display: none; }

/* Certifications */
.ph-certs { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.ph-ui .ph-certs h2 { flex: none; margin: 0; font-size: 2.4rem; }
.ph-certs ul { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; justify-content: flex-end; }
.ph-certs img { height: 6.4rem; width: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ph-footer { background: var(--ph-navy); color: rgba(255, 255, 255, 0.72); }
.ph-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 4.8rem; padding: 8rem 0 5.6rem; }
.ph-footer .ph-brand__name { color: var(--ph-white); }
.ph-footer .ph-brand__region { color: #7cc7bb; }
.ph-footer .ph-brand img { background: var(--ph-white); border-radius: 50%; padding: 0.3rem; }
.ph-footer__about { margin: 2.4rem 0; font-size: 1.5rem; line-height: 1.7; }
.ph-footer.ph-ui h2 { margin: 0 0 2rem; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-white); }
.ph-footer ul li + li { margin-top: 1.2rem; }
.ph-footer.ph-ui a { color: rgba(255, 255, 255, 0.72); font-size: 1.5rem; transition: color 0.2s; }
.ph-footer.ph-ui a:hover { color: var(--ph-white); }
.ph-footer__contact li { display: flex; gap: 1.2rem; font-size: 1.5rem; line-height: 1.55; }
.ph-footer__contact svg { flex: none; width: 1.8rem; height: 1.8rem; margin-top: 0.3rem; color: #7cc7bb; }
.ph-footer__social { display: flex; gap: 1rem; }
.ph-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.ph-footer__social a:hover { background: rgba(255, 255, 255, 0.18); }
.ph-footer__social img { width: 1.8rem; height: 1.8rem; object-fit: contain; filter: brightness(0) invert(1); }
.ph-footer__brochure { margin-top: 2.4rem; }
.ph-footer__seo { display: grid; grid-template-columns: 1fr 1fr; gap: 4.8rem; padding: 4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ph-ui .ph-footer__seo h3 { margin: 0 0 1rem; font-size: 1.6rem; color: var(--ph-white); }
.ph-footer__seo p { font-size: 1.4rem; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.ph-footer__bottom { display: flex; justify-content: space-between; gap: 2.4rem; flex-wrap: wrap; padding: 2.8rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 1.4rem; }
.ph-footer__bottom nav { display: flex; gap: 2.4rem; }
.ph-ui .ph-footer__bottom a { font-size: 1.4rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ph-section { padding: 8rem 0; }
  .ph-hero__grid, .ph-about__grid, .ph-stats__grid, .ph-contact__grid { grid-template-columns: 1fr; gap: 4.8rem; }
  .ph-hero__badge { left: 1.6rem; bottom: 1.6rem; }
  .ph-about__media { max-width: 56rem; }
  .ph-about__stat { right: 1.6rem; }
  .ph-services__grid, .ph-posts__grid { grid-template-columns: repeat(2, 1fr); }
  .ph-team__grid { grid-template-columns: repeat(3, 1fr); }
  .ph-founder { grid-template-columns: 22rem 1fr; gap: 4rem; }
  .ph-footer__top { grid-template-columns: 1fr 1fr; }
  .ph-logos__inner { flex-direction: column; align-items: flex-start; gap: 2.4rem; }
  .ph-logos__list { justify-content: flex-start; }
  .ph-certs { flex-direction: column; align-items: flex-start; }
  .ph-certs ul { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .ph-section { padding: 6.4rem 0; }
  .ph-container { padding: 0 1.6rem; }
  .ph-hero { padding: 4.8rem 0 6.4rem; }
  .ph-hero__actions .ph-btn { flex: 1 1 100%; }
  .ph-section-head { margin-bottom: 4rem; }
  .ph-section-head--split { flex-direction: column; align-items: flex-start; }
  .ph-checks, .ph-stats__list, .ph-services__grid, .ph-values__grid, .ph-posts__grid, .ph-footer__seo { grid-template-columns: 1fr; }
  .ph-team__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .ph-founder { grid-template-columns: 1fr; }
  .ph-founder__photo { max-width: 20rem; }
  .ph-cta__content { padding: 4.8rem 2.4rem; }
  .ph-form-card { padding: 2.4rem; }
  .ph-footer__top { grid-template-columns: 1fr; gap: 4rem; padding-top: 5.6rem; }
  .ph-logos__list { gap: 2.4rem; }
  .ph-logos__list img { height: 3.6rem; }
  .ph-certs ul { gap: 2.4rem; }
  .ph-certs img { height: 4.8rem; }
}

/* ==========================================================================
   Content blocks used on legacy-template pages (not scoped to .ph-ui)
   ========================================================================== */

/* Office map (Contact page) */
.ph-map iframe { display: block; width: 100%; height: 48rem; border: 0; }
@media (max-width: 720px) { .ph-map iframe { height: 34rem; } }

/* Photo gallery inside service descriptions */
.ph-service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 3.2rem 0 0;
}
.ph-service-gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1rem; background: #f5f7fa; }
.ph-service-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .ph-service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Certificates (Accreditation page) */
.ph-certs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
.ph-cert { display: flex; flex-direction: column; overflow: hidden; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius); }
.ph-cert__img { display: block; aspect-ratio: 3 / 4; background: var(--ph-soft); padding: 1.6rem; }
.ph-cert__img img { width: 100%; height: 100%; object-fit: contain; }
.ph-cert__body { padding: 2rem 2.2rem 2.4rem; display: grid; gap: 0.6rem; }
.ph-ui .ph-cert__body h3 { margin: 0; font-size: 1.8rem; }
.ph-cert__body p { margin: 0; font-size: 1.45rem; color: var(--ph-muted); }
@media (max-width: 1100px) { .ph-certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ph-certs-grid { grid-template-columns: 1fr; } }

/* Simple page header for redesigned inner pages */
.ph-page-head { padding: 7.2rem 0 5.6rem; background: linear-gradient(180deg, var(--ph-soft) 0%, var(--ph-white) 100%); border-bottom: 1px solid var(--ph-line); }
.ph-page-head .ph-lead { max-width: 72rem; }
.ph-page-head .yoast-breadcrumbs { margin-bottom: 1.6rem; font-size: 1.4rem; color: var(--ph-muted); }
.ph-page-head .yoast-breadcrumbs a { color: var(--ph-muted); }

/* Founder bio and document-style certificate thumbnails on the homepage */
.ph-ui .ph-founder__bio { margin: 0 0 2.4rem; font-size: 1.8rem; line-height: 1.7; color: var(--ph-ink); max-width: 72rem; }
.ph-certs img { height: 12rem; width: auto; border: 1px solid var(--ph-line); border-radius: 0.4rem; background: #fff; }
@media (max-width: 720px) { .ph-certs img { height: 9rem; } }

/* Homepage video */
.ph-video__frame { max-width: 96rem; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ph-radius-lg); background: var(--ph-navy); box-shadow: var(--ph-shadow-lg); }
.ph-video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Homepage: soil boring focus
   ========================================================================== */
.ph-hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 3.2rem; }
.ph-hero__facts li { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--ph-font-head); font-size: 1.45rem; font-weight: 600; color: var(--ph-ink); }
.ph-hero__facts svg { width: 2rem; height: 2rem; padding: 0.3rem; border-radius: 50%; background: var(--ph-teal-soft); color: var(--ph-teal); }

/* Clients strip */
.ph-trust { border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); background: var(--ph-white); }
.ph-trust__inner { display: flex; align-items: center; gap: 3.2rem; padding-top: 2.8rem; padding-bottom: 2.8rem; }
.ph-ui .ph-trust__label { flex: none; max-width: 18rem; margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ph-muted); }
.ph-trust__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 3.2rem; flex: 1; min-width: 0; }
.ph-trust__list li { font-family: var(--ph-font-head); font-size: 1.7rem; font-weight: 700; color: var(--ph-navy-2); opacity: 0.8; white-space: nowrap; }

/* Soil boring feature */
.ph-sb { display: grid; grid-template-columns: 0.85fr 1fr; gap: 8rem; align-items: center; }
.ph-sb > * { min-width: 0; }
.ph-sb__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ph-radius-lg); }
.ph-sb__intro { font-size: 1.7rem; }
.ph-steps { counter-reset: ph-step; display: grid; gap: 1.6rem; margin: 3.2rem 0 4rem; padding: 0; list-style: none; }
.ph-steps li { counter-increment: ph-step; display: grid; grid-template-columns: 4rem 1fr; column-gap: 1.6rem; align-items: start; }
.ph-steps li::before { content: counter(ph-step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ph-navy); color: var(--ph-white); font-family: var(--ph-font-head); font-weight: 700; font-size: 1.6rem; }
.ph-ui .ph-steps h3 { margin: 0.6rem 0 0.2rem; font-size: 1.7rem; }
.ph-steps p { margin: 0; font-size: 1.5rem; color: var(--ph-body); }

/* Services: soil boring card first and larger */
.ph-services__grid--featured { grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; }
.ph-services__grid--featured > li.is-primary { grid-row: span 2; }
.ph-services__grid--featured > li:not(.is-primary) .ph-card { flex-direction: row; }
.ph-services__grid--featured > li:not(.is-primary) .ph-card__img { flex: 0 0 40%; aspect-ratio: auto; }
.ph-services__grid--featured > li.is-primary .ph-card__img { aspect-ratio: 4 / 3; }
.ph-ui .ph-services__grid--featured > li.is-primary .ph-h3 { font-size: 2.6rem; }
.ph-services__grid--featured > li.is-primary .ph-card__body p { font-size: 1.6rem; }

/* Why choose: checks on the navy band */
.ph-on-dark .ph-checks--dark li { color: var(--ph-white); }
.ph-on-dark .ph-checks--dark svg { background: rgba(255, 255, 255, 0.12); color: #7cc7bb; }
.ph-checks--dark { margin: 2.4rem 0 3.2rem; }

/* Industries */
.ph-industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ph-industries li { padding: 2.4rem 2.6rem; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); background: var(--ph-white); border-top: 3px solid var(--ph-teal); }
.ph-ui .ph-industries h3 { margin: 0 0 0.8rem; font-size: 1.8rem; }
.ph-industries p { margin: 0; font-size: 1.45rem; color: var(--ph-muted); }

@media (max-width: 1100px) {
  .ph-sb { grid-template-columns: 1fr; gap: 4.8rem; }
  .ph-sb__media { max-width: 56rem; }
  .ph-trust__inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .ph-services__grid--featured { grid-template-columns: 1fr; }
  .ph-services__grid--featured > li.is-primary { grid-row: auto; }
  .ph-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ph-trust__list li { font-size: 1.5rem; white-space: normal; }
  .ph-services__grid--featured > li:not(.is-primary) .ph-card { flex-direction: column; }
  .ph-services__grid--featured > li:not(.is-primary) .ph-card__img { flex: none; aspect-ratio: 16 / 10; }
  .ph-industries { grid-template-columns: 1fr; }
  .ph-hero__facts { gap: 0.8rem 1.6rem; }
}

/* Keep the authentic (~700px) photos at or below their natural size on tablets */
@media (max-width: 1100px) {
  .ph-hero__media { max-width: 56rem; }
  .ph-services__grid--featured > li.is-primary .ph-card__img { aspect-ratio: 16 / 9; }
  .ph-services__grid--featured > li.is-primary { max-width: 72rem; }
}

/* ==========================================================================
   Homepage: geographical coverage map + fieldwork photos
   ========================================================================== */
.ph-coverage__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6.4rem; align-items: center; }
.ph-coverage__grid > * { min-width: 0; }
.ph-coverage__map { margin: 0; padding: 2rem; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius-lg); }
.ph-coverage__map svg { display: block; width: 100%; height: auto; }
.ph-coverage__map .land { fill: #dfe9f2; stroke: #9fb6cc; stroke-width: 0.8; }
.ph-coverage__map .m circle { fill: var(--ph-blue); stroke: #fff; stroke-width: 3; }
.ph-coverage__map .lab rect { fill: var(--ph-teal); stroke: #fff; stroke-width: 3; }
.ph-coverage__map text { font: 600 13px var(--ph-font-body); fill: var(--ph-navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.ph-coverage__map .lab text { fill: var(--ph-teal); }
.ph-coverage__legend { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; margin-top: 1.2rem; font-size: 1.3rem; color: var(--ph-body); }
.ph-coverage__legend span { display: inline-flex; align-items: center; gap: 0.8rem; }
.ph-coverage__dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--ph-blue); }
.ph-coverage__lab { width: 0.9rem; height: 0.9rem; background: var(--ph-teal); transform: rotate(45deg); }
.ph-coverage__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin: 2.8rem 0 3.2rem; }
.ph-ui .ph-coverage__groups h3 { margin: 0 0 1rem; font-size: 1.3rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-muted); }
.ph-coverage__groups ul { display: grid; gap: 0.8rem; }
.ph-coverage__groups li { display: flex; align-items: center; gap: 1rem; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.6rem; color: var(--ph-ink); }
.ph-coverage__groups li::before { content: ''; flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--ph-blue); }
.ph-ui .ph-coverage__note { margin: 1.4rem 0 0; font-size: 1.3rem; color: var(--ph-muted); }

.ph-fieldwork { margin-top: 7.2rem; }
.ph-ui .ph-fieldwork__title { margin: 0 0 2.4rem; font-size: 2.2rem; }
.ph-fieldwork__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.ph-fieldwork__grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ph-radius); background: var(--ph-soft); }
.ph-fieldwork__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ph-fieldwork__grid a:hover img { transform: scale(1.04); }
.ph-ui .ph-fieldwork__grid p { margin: 0.8rem 0 0; font-size: 1.35rem; font-weight: 500; color: var(--ph-ink); }
.ph-fieldwork__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; margin-top: 3.2rem; padding: 2.4rem 2.8rem; background: var(--ph-soft); border-radius: var(--ph-radius); }
.ph-ui .ph-fieldwork__more p { margin: 0; font-family: var(--ph-font-head); font-size: 1.7rem; font-weight: 600; color: var(--ph-ink); }

@media (max-width: 1100px) {
  .ph-coverage__grid { grid-template-columns: 1fr; gap: 4.8rem; }
  .ph-coverage__map { max-width: 72rem; }
  .ph-fieldwork__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ph-coverage__map { padding: 1.2rem; }
  .ph-coverage__groups { gap: 1.6rem; }
  .ph-fieldwork__grid { gap: 1.2rem; }
}

/* Hero frame: photo, temporary cross-fading photos, or banner video */
.ph-hero__frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow-lg); background: var(--ph-soft); }
.ph-hero__frame img,
.ph-hero__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero__frame--slides img { opacity: 0; transition: opacity 1.2s ease; }
.ph-hero__frame--slides img.is-active { opacity: 1; }
.ph-hero__video { opacity: 0; transition: opacity 0.8s ease; }
.ph-hero__video.is-playing { opacity: 1; }
.ph-hero__pause {
  position: absolute; right: 1.6rem; top: 1.6rem; z-index: 2;
  width: 4rem; height: 4rem; border: 0; border-radius: 50%;
  background: rgba(11, 35, 64, 0.65); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ph-hero__pause[hidden] { display: none; }
.ph-hero__pause span { display: block; width: 1.2rem; height: 1.4rem; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ph-hero__pause.is-paused span { width: 0; height: 0; border-style: solid; border-width: 0.8rem 0 0.8rem 1.3rem; border-color: transparent transparent transparent currentColor; margin-left: 0.3rem; }
.ph-hero__pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ph-hero__badge { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .ph-hero__frame--slides img { transition: none; }
}

/* ==========================================================================
   Hero: full-width banner video (same layout as the QCLNY homepage)
   ========================================================================== */
.ph-hero--video {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(56rem, 82vh, 90rem);
  padding: 9.6rem 0;
  overflow: hidden;
  background: var(--ph-navy);
}
.ph-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 35, 64, 0.88) 0%, rgba(11, 35, 64, 0.62) 45%, rgba(11, 35, 64, 0.15) 100%);
}
.ph-hero__inner { position: relative; z-index: 1; }
.ph-hero__copy { max-width: 68rem; }
.ph-hero--video .ph-h1 { color: var(--ph-white); }
.ph-hero--video .ph-lead { color: rgba(255, 255, 255, 0.88); }
.ph-hero--video .ph-eyebrow { color: #8fd3c8; }
.ph-hero--video .ph-hero__facts li { color: var(--ph-white); }
.ph-hero--video .ph-hero__facts svg { background: rgba(255, 255, 255, 0.14); color: #8fd3c8; }
@media (max-width: 720px) {
  .ph-hero--video { min-height: 0; padding: 7.2rem 0 9.6rem; }
  .ph-hero__shade { background: rgba(11, 35, 64, 0.72); }
}

/* Services grid: photos fill a fixed frame (no stretching from portrait/landscape originals);
   the two smaller cards share the height of the large Soil Boring card equally. */
.ph-services__grid--featured { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.ph-services__grid--featured > li > .ph-card { height: 100%; }
.ph-services__grid--featured .ph-card__img { position: relative; }
.ph-services__grid--featured .ph-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-services__grid--featured > li:not(.is-primary) .ph-card__img { align-self: stretch; min-height: 22rem; }
@media (max-width: 1100px) {
  .ph-services__grid--featured { grid-template-rows: none; }
}
@media (max-width: 720px) {
  .ph-services__grid--featured > li:not(.is-primary) .ph-card__img { min-height: 0; }
}

/* Construction Materials Testing photo: keep the technician in view in the narrow desktop card. */
.ph-service--materials-testing .ph-card__img img { object-position: 75% 35%; }

/* Project detail photo: never wider than the uploaded file (avoids pixelation), centred. */
.projects-details-banner img.ph-project-photo { display: block; margin-left: auto; margin-right: auto; height: auto; border-radius: 1.2rem; }
.ph-services__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .ph-services__grid--two { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner pages: page header, breadcrumbs, prose, split layout, info cards
   ========================================================================== */
.ph-pagehero { position: relative; overflow: hidden; padding: 12rem 0 9.6rem; background: var(--ph-navy); }
.ph-pagehero--plain { background: linear-gradient(180deg, var(--ph-soft) 0%, var(--ph-white) 100%); border-bottom: 1px solid var(--ph-line); padding: 8rem 0 6.4rem; }
.ph-pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-pagehero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 35, 64, 0.92) 0%, rgba(11, 35, 64, 0.72) 50%, rgba(11, 35, 64, 0.35) 100%); }
.ph-pagehero__inner { position: relative; z-index: 1; }
.ph-pagehero__inner > * { max-width: 76rem; }
.ph-pagehero .ph-h1 { color: var(--ph-white); font-size: clamp(3.4rem, 4vw, 5.2rem); }
.ph-pagehero .ph-lead { color: rgba(255, 255, 255, 0.88); }
.ph-pagehero .ph-eyebrow { color: #8fd3c8; }
.ph-pagehero--plain .ph-h1 { color: var(--ph-ink); }
.ph-pagehero--plain .ph-lead { color: var(--ph-body); }
.ph-pagehero--plain .ph-eyebrow { color: var(--ph-teal); }
.ph-breadcrumbs { margin-bottom: 2rem; font-size: 1.4rem; color: rgba(255, 255, 255, 0.75); }
.ph-ui .ph-breadcrumbs a { color: inherit; text-decoration: underline; text-underline-offset: 0.3rem; }
.ph-pagehero--plain .ph-breadcrumbs { color: var(--ph-muted); }
@media (max-width: 720px) {
  .ph-pagehero { padding: 7.2rem 0 6.4rem; }
  .ph-pagehero__shade { background: rgba(11, 35, 64, 0.8); }
}

/* Long-form text from the editor (service descriptions, project details) */
.ph-prose { font-size: 1.7rem; line-height: 1.75; color: var(--ph-body); }
.ph-prose > * + * { margin-top: 1.6rem; }
.ph-ui .ph-prose h2 { font-size: 2.8rem; margin: 4rem 0 1.2rem; }
.ph-ui .ph-prose h3 { font-size: 2.1rem; margin: 3.2rem 0 1rem; }
.ph-ui .ph-prose h2:first-child, .ph-ui .ph-prose h3:first-child { margin-top: 0; }
.ph-ui .ph-prose ul { display: grid; gap: 1rem; }
.ph-prose ul li { position: relative; padding-left: 2.8rem; }
.ph-prose ul li::before { content: ''; position: absolute; left: 0.4rem; top: 1rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--ph-teal); }
.ph-ui .ph-prose a { text-decoration: underline; text-underline-offset: 0.3rem; }

/* Two columns: content + sticky aside */
.ph-split { display: grid; grid-template-columns: minmax(0, 1fr) 38rem; gap: 6.4rem; align-items: start; }
.ph-split > * { min-width: 0; }
.ph-split__aside { position: sticky; top: calc(var(--ph-header-h) + 2.4rem); display: grid; gap: 2.4rem; }
@media (max-width: 1100px) { .ph-split { grid-template-columns: 1fr; } .ph-split__aside { position: static; } }

/* Info card */
.ph-infocard { padding: 2.8rem; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow); }
.ph-ui .ph-infocard h3 { margin: 0 0 1.2rem; font-size: 2rem; }
.ph-infocard p { font-size: 1.5rem; }
.ph-infocard .ph-btn { width: 100%; margin-top: 1.2rem; }
.ph-infocard dl { margin: 0; display: grid; gap: 1.4rem; }
.ph-infocard dt { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ph-muted); }
.ph-infocard dd { margin: 0.2rem 0 0; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.6rem; color: var(--ph-ink); }
.ph-infocard--navy { background: var(--ph-navy); border-color: var(--ph-navy); }
.ph-ui .ph-infocard--navy h3 { color: var(--ph-white); }
.ph-infocard--navy p { color: rgba(255, 255, 255, 0.8); }

/* Root font size: css/style.css shrinks it to 52% / 47% / 44% below 1600px (about 7px on phones),
   which made all rem-based text too small. Keep 10px at every width (1rem = 10px). */
html { font-size: 10px; }
@media (max-width: 1600px) { html { font-size: 10px; } }
@media (max-width: 1440px) { html { font-size: 10px; } }
@media (max-width: 1370px) { html { font-size: 10px; } }

/* Contact Form 7 fields fill the form card (older theme rules capped them at 80%). */
.ph-form-card .wpcf7-form-control-wrap { display: block !important; width: 100% !important; }
.ph-form-card .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { width: 100% !important; max-width: none !important; }

/* Body text inside redesigned areas: ignore the old theme's global p/li sizes (2.5rem).
   :where() keeps this at element-level specificity so .ph-lead etc. still win. */
:where(.ph-ui) p, :where(.ph-ui) li, :where(.ph-ui) dd, :where(.ph-ui) dt, :where(.ph-ui) blockquote { font-size: inherit; line-height: inherit; }

/* Projects page */
.ph-projects-intro { align-items: center; }
.ph-stats__list--light .ph-stats__item { border-color: var(--ph-line); background: var(--ph-soft); }
.ph-ui .ph-stats__list--light .ph-stats__item strong { color: var(--ph-navy); }
.ph-stats__list--light .ph-stats__item span { color: var(--ph-muted); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 4rem; }
.ph-ui .ph-chips a { display: inline-flex; align-items: center; gap: 0.8rem; padding: 1rem 1.8rem; border: 1px solid var(--ph-line); border-radius: 99rem; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.5rem; color: var(--ph-ink); background: var(--ph-white); }
.ph-ui .ph-chips a:hover { border-color: var(--ph-blue); color: var(--ph-blue); }
.ph-chips span { min-width: 2.4rem; padding: 0.2rem 0.8rem; border-radius: 99rem; background: var(--ph-soft); font-size: 1.3rem; text-align: center; }
[id] { scroll-margin-top: calc(var(--ph-header-h) + 1.6rem); }

/* Project detail */
.ph-project__photo { margin: 0 0 4rem; }
.ph-project__photo img { display: block; width: 100%; height: auto; border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow); }

/* FAQ */
.ph-faq { display: grid; grid-template-columns: 24rem minmax(0, 1fr); gap: 6.4rem; align-items: start; }
.ph-faq__nav { position: sticky; top: calc(var(--ph-header-h) + 2.4rem); display: grid; gap: 0.6rem; }
.ph-ui .ph-faq__nav a { padding: 1.2rem 1.6rem; border-radius: 0.8rem; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.5rem; color: var(--ph-ink); }
.ph-ui .ph-faq__nav a:hover { background: var(--ph-soft); color: var(--ph-blue); }
.ph-faq__groups { display: grid; gap: 5.6rem; }
.ph-ui .ph-faq__group > h2 { margin: 0 0 1.6rem; font-size: 2.4rem; }
.ph-faq__item { border-bottom: 1px solid var(--ph-line); }
.ph-faq__item:first-of-type { border-top: 1px solid var(--ph-line); }
.ph-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; font-family: var(--ph-font-head); font-weight: 600; font-size: 1.7rem; color: var(--ph-ink); }
.ph-faq__item summary::-webkit-details-marker { display: none; }
.ph-faq__item summary::after { content: '+'; flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ph-soft); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; font-size: 2rem; line-height: 1; }
.ph-faq__item[open] summary::after { content: '\2212'; }
.ph-faq__item summary:focus-visible { outline: 3px solid var(--ph-blue); outline-offset: 2px; }
.ph-faq__answer { padding: 0 5.2rem 2.4rem 0; font-size: 1.6rem; line-height: 1.7; color: var(--ph-body); }
@media (max-width: 900px) {
  .ph-faq { grid-template-columns: 1fr; gap: 3.2rem; }
  .ph-faq__nav { position: static; display: flex; flex-wrap: wrap; gap: 0.8rem; }
  .ph-ui .ph-faq__nav a { border: 1px solid var(--ph-line); border-radius: 99rem; }
  .ph-faq__answer { padding-right: 0; }
}

/* About: "how we work" points and timeline */
.ph-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 4.8rem; }
.ph-points li { display: flex; gap: 1.6rem; align-items: flex-start; }
.ph-points svg { flex: none; width: 3.2rem; height: 3.2rem; padding: 0.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #8fd3c8; }
.ph-ui .ph-points h3 { margin: 0.2rem 0 0.6rem; font-size: 1.9rem; color: var(--ph-white); }
.ph-points p { color: rgba(255, 255, 255, 0.78); }
.ph-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2.4rem; }
.ph-timeline li { padding: 2.4rem; border-top: 3px solid var(--ph-teal); background: var(--ph-soft); border-radius: 0 0 var(--ph-radius) var(--ph-radius); }
.ph-ui .ph-timeline strong { font-family: var(--ph-font-head); font-size: 2.8rem; color: var(--ph-navy); }
.ph-ui .ph-timeline h3 { margin: 0.8rem 0 0.4rem; font-size: 1.7rem; }
@media (max-width: 720px) { .ph-points { grid-template-columns: 1fr; } }

/* Coverage: three region groups + map captions */
.ph-coverage__groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 2rem; }
.ph-coverage__groups li { font-size: 1.5rem; }
.ph-coverage__map .cl text { fill: var(--ph-blue); }
.ph-coverage__map .rg { font: 700 14px var(--ph-font-head); letter-spacing: 0.2em; fill: #9fb6cc; stroke: none; }
@media (max-width: 560px) { .ph-coverage__groups--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .ph-ui .ph-btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Fieldwork videos */
.ph-videos { display: grid; gap: 2.4rem; }
.ph-videos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-videos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-videos--1 { grid-template-columns: minmax(0, 72rem); }
.ph-videocard { display: flex; flex-direction: column; overflow: hidden; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: var(--ph-radius); }
.ph-videocard__frame { aspect-ratio: 16 / 9; background: var(--ph-navy); }
.ph-videocard__frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ph-navy); }
.ph-videocard__body { padding: 1.8rem 2rem 2.2rem; }
.ph-ui .ph-videocard h3 { margin: 0 0 0.6rem; font-size: 1.7rem; line-height: 1.35; }
.ph-videocard p { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.4rem; color: var(--ph-muted); }
.ph-videocard p svg { width: 1.6rem; height: 1.6rem; }
@media (max-width: 1100px) { .ph-videos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ph-videos--3, .ph-videos--2 { grid-template-columns: 1fr; } }

/* Homepage form (CF7 "homepage form"): the old theme placed .contact-form-submit absolutely as a round button; show it as a normal full-width button in the card. */
.ph-form-card .contact-form-submit { position: static; right: auto; bottom: auto; z-index: auto; margin-top: 0.4rem; }
.ph-form-card .contact-form-submit p { margin: 0 !important; }
.ph-form-card .contact-form-submit input[type="submit"] {
  display: block;
  width: 100%;
  height: auto;
  min-height: 5.2rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--ph-blue);
  color: var(--ph-white);
  font-family: var(--ph-font-head);
}
.ph-form-card .contact-form-submit input[type="submit"]:hover { background: var(--ph-blue-dark); color: var(--ph-white); }
