@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
:root {
  --navy: #15304a;
  --navy-dark: #0a1c2e;
  --steel: #51606d;
  --steel-light: #83919d;
  --accent: #2f6fd6;
  --accent-dark: #234f9e;
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #dde2e7;
  --text: #1c2b3a;
  --text-muted: #5b6b78;
  --display-font: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(12,28,44,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(12,28,44,.98);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .25s ease; }
.site-header.scrolled .container { height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: .6rem; font-weight: 400; color: var(--steel-light); letter-spacing: .12em; text-transform: uppercase; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 16px; font-size: .92rem; font-weight: 600; border-radius: 4px; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.08); color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: #fff !important; margin-left: 8px; }
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; display: none; gap: 0; border-top: 1px solid rgba(255,255,255,.1); transition: top .25s ease; }
  .site-header.scrolled .main-nav { top: 62px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -120px; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,105,237,.22) 0%, rgba(23,105,237,0) 70%);
}
.hero .container { position: relative; z-index: 2; }

/* Homepage hero only: full-bleed jobsite photo. Swap /images/hero-excavation.jpg
   for your own project photo (via the admin panel) when one is available. */
.hero.hero-photo {
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero.hero-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("/images/hero-excavation.jpg") center/cover no-repeat;
  animation: heroZoom 16s ease-out both;
}
/* Optional hero video (admin > Hero Background). Sits above the photo in document order,
   so when present it simply covers the photo — no other markup changes needed. */
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Optional rotating background photos (admin > Hero Background). Same layer as the video —
   whichever is present covers the single static photo underneath. */
.hero-rotator { position: absolute; inset: 0; z-index: 0; }
.hero-rotator-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-rotator-slide.active { opacity: 1; animation: heroZoom 8s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotator-slide.active { animation: none; }
}
/* Always-on legibility gradient — shown above whichever background (photo, video, or rotator) is active. */
.hero.hero-photo .hero-gradient-overlay {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,24,39,.94) 0%, rgba(7,27,44,.65) 55%, rgba(7,27,44,.25) 100%);
}
.hero h1 { font: 700 clamp(2.4rem, 6vw, 4.4rem)/.98 var(--display-font); letter-spacing: -.02em; text-transform: uppercase; max-width: 780px; margin: 0 0 22px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.hero p.lead { font-size: 1.1rem; color: #c7d1da; max-width: 600px; margin: 0 0 32px; }
.hero .services-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero .services-strip a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: 7px 16px; border-radius: 30px; font-size: .85rem; transition: background .15s, border-color .15s; }
.hero .services-strip a:hover { background: var(--accent); border-color: var(--accent); }
.hero-locations { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-locations svg { flex-shrink: 0; color: var(--accent); }
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Scroll-reveal: fade + slide up into place. .in-view is added by js/main.js via IntersectionObserver. */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1.in-view { transition-delay: .12s; }
.reveal-delay-2.in-view { transition-delay: .22s; }
.reveal-delay-3.in-view { transition-delay: .32s; }
.reveal-delay-4.in-view { transition-delay: .42s; }
.reveal-delay-5.in-view { transition-delay: .52s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { opacity: 1; transform: none; transition: none; }
}

.btn { display: inline-block; padding: 13px 28px; border-radius: 5px; font-weight: 700; font-size: .95rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* Sections */
section { padding: 70px 0; }
.section-alt { background: var(--bg); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
h2.section-title { font: 700 2rem/1.15 var(--display-font); letter-spacing: -.01em; margin: 0 0 14px; color: var(--navy); }
p.section-sub { color: var(--text-muted); max-width: 640px; margin: 0 0 40px; }

/* Stats band */
.stats-band { background: var(--navy-dark); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 44px 24px; }
.stat-tile { padding: 10px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-tile:first-child { border-left: none; }
.stat-value { display: block; font: 700 2.6rem/1 var(--display-font); color: var(--accent); }
.stat-label { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #b7c1ca; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding: 34px 20px; }
  .stat-tile:nth-child(3) { border-left: none; }
}

/* Before/after slider */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 12px; background: var(--steel); user-select: none; touch-action: none; cursor: ew-resize;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 6px rgba(0,0,0,.3); }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.ba-handle-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  font-size: 1.1rem; color: var(--navy); font-weight: 700;
}
.ba-label {
  position: absolute; top: 14px; padding: 5px 14px; background: rgba(12,28,44,.72); color: #fff;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 20px; pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-caption { margin-top: 16px; text-align: center; }
.ba-caption .cat { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ba-caption h3 { margin: 6px 0 0; color: var(--navy); font-size: 1.15rem; }

/* Skeleton loading states */
@keyframes skeletonShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skel { background: linear-gradient(90deg, #e4e8ec 25%, #f2f4f6 37%, #e4e8ec 63%); background-size: 400% 100%; animation: skeletonShimmer 1.6s ease-in-out infinite; border-radius: 6px; }
.skel-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.skel-card .skel-thumb { height: 190px; border-radius: 0; }
.skel-card .skel-body { padding: 18px 20px; }
.skel-line { height: 11px; }
.skel-line + .skel-line { margin-top: 10px; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-70 { width: 70%; }
.skel-line.title { height: 16px; width: 65%; margin-bottom: 12px; }
.skel-team { text-align: center; }
.skel-avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 16px; }
.skel-detail-thumb { aspect-ratio: 16/9; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; background-position: 50% 0; }
}

/* Testimonial carousel — rotates a "page" of boxed cards at a time (1 on narrow screens,
   2 on wider ones; see the perPage logic in renderTestimonialCarousel). */
.tc { overflow: hidden; max-width: 860px; margin: 0 auto; }
.tc-track { display: flex; align-items: stretch; transition: transform .5s ease; }
.tc-slide { flex: 0 0 100%; padding: 4px 4px; }
.tc-page { display: flex; gap: 20px; align-items: stretch; justify-content: center; }
.tc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 26px; text-align: left; flex: 1 1 0; min-width: 0;
}
.tc-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tc-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tc-avatar.initials { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 .9rem var(--display-font); }
.tc-author-info { text-align: left; }
.tc-name { font-weight: 700; color: var(--navy); font-size: .92rem; }
.tc-role { color: var(--text-muted); font-size: .82rem; }
.tc-stars { color: #f0a500; font-size: 1rem; letter-spacing: .1em; margin-bottom: 14px; }
.tc-card blockquote { font: 500 1rem/1.55 var(--display-font); color: var(--navy); margin: 0; }
.tc-toggle {
  display: block; margin: 12px 0 0; background: none; border: none; color: var(--accent);
  font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0;
}
.tc-toggle:hover { text-decoration: underline; }
.tc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.tc-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: background .15s, transform .15s; }
.tc-dots button.active { background: var(--accent); transform: scale(1.2); }
@media (max-width: 700px) {
  .tc-page { flex-direction: column; }
}

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,41,63,.1); }
.service-card .icon { width: 150px; height: 96px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; overflow: hidden; }
.service-card .icon svg { width: 92%; height: 92%; }
.service-card .icon.icon-feature { width: 230px; height: 148px; border-radius: 18px; }
.service-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.service-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Service icon "mini-scene" animations — plain CSS/SVG, no external library. */
.svc-icon { display: block; overflow: visible; }
.svc-icon g, .svc-icon circle, .svc-icon path, .svc-icon rect, .svc-icon line { transform-box: view-box; }

/* Excavation: articulated dig-and-dump cycle. Boom -> stick -> bucket are nested
   groups so each rotates around its own joint while inheriting its parent's motion. */
.svc-excavation .exc-boom { transform-origin: 71px 54px; animation: boomSwing 5s cubic-bezier(.45,0,.15,1) infinite; }
.svc-excavation .exc-stick { transform-origin: 71px 26px; animation: stickCurl 5s cubic-bezier(.45,0,.15,1) infinite; }
.svc-excavation .exc-bucket { transform-origin: 97px 22px; animation: bucketCurl 5s cubic-bezier(.45,0,.15,1) infinite; }
.svc-excavation .exc-pile { transform-origin: 22px 86px; animation: pileSquish 5s ease-in-out infinite; }
.svc-excavation .exc-clump { animation: dirtClump 5s ease-in-out infinite; }
.svc-excavation .exc-truck { animation: truckReceive 5s ease-in-out infinite; }
@keyframes boomSwing { 0% { transform: rotate(-45deg); } 25% { transform: rotate(-15deg); } 50% { transform: rotate(55deg); } 70% { transform: rotate(58deg); } 100% { transform: rotate(-45deg); } }
@keyframes stickCurl { 0% { transform: rotate(12deg); } 25% { transform: rotate(-25deg); } 50% { transform: rotate(-8deg); } 70% { transform: rotate(18deg); } 100% { transform: rotate(12deg); } }
@keyframes bucketCurl { 0% { transform: rotate(-10deg); } 25% { transform: rotate(-42deg); } 50% { transform: rotate(-28deg); } 70% { transform: rotate(30deg); } 100% { transform: rotate(-10deg); } }
@keyframes pileSquish { 0%, 100% { transform: scaleY(1); } 22% { transform: scaleY(.82); } 30% { transform: scaleY(1); } }
@keyframes dirtClump {
  0%, 18%   { opacity: 0; transform: translate(0,0) scale(.5); }
  26%, 46%  { opacity: 1; transform: translate(0,0) scale(1); }
  62%       { opacity: 1; transform: translate(48px,14px) scale(1); }
  72%, 76%  { opacity: 1; transform: translate(48px,14px) scale(1); }
  84%       { opacity: 0; transform: translate(48px,22px) scale(.5); }
  100%      { opacity: 0; }
}
@keyframes truckReceive { 0%, 68% { transform: translateY(0); } 74% { transform: translateY(2px); } 80%, 100% { transform: translateY(0); } }

/* Custom Homes: a roof truss is lifted into place by crane, then a topping-out flag pops up. */
.svc-home .home-roof { transform-origin: 60px 22px; animation: roofLower 3s cubic-bezier(.3,0,.2,1) infinite; }
.svc-home .home-flag { animation: flagPop 3s ease-in-out infinite; }
@keyframes roofLower {
  0%, 15%   { transform: translateY(-40px); }
  35%, 70%  { transform: translateY(0); }
  100%      { transform: translateY(-40px); }
}
@keyframes flagPop { 0%, 40% { opacity: 0; transform: scale(.5); } 55%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.5); } }

/* Renovations: a paint roller sweeps across the wall, revealing fresh color as it goes. */
.svc-reno .reno-roller-grp { animation: renoRoll 3s ease-in-out infinite; }
.svc-reno .reno-paint { animation: renoPaint 3s ease-in-out infinite; }
@keyframes renoRoll {
  0%    { transform: translateX(0); opacity: 1; }
  85%   { transform: translateX(120px); opacity: 1; }
  87%   { transform: translateX(120px); opacity: 0; }
  89%   { transform: translateX(0); opacity: 0; }
  100%  { transform: translateX(0); opacity: 1; }
}
@keyframes renoPaint {
  0%    { width: 0; }
  85%   { width: 120px; }
  87%   { width: 120px; }
  89%   { width: 0; }
  100%  { width: 0; }
}

/* Commercial: a tower crane's jib swings and hook bobs over a building whose windows flicker on. */
.svc-commercial .com-jib { transform-origin: 111px 10px; animation: craneSwing 6s ease-in-out infinite; }
.svc-commercial .com-hook { animation: hookBob 3s ease-in-out infinite; }
.svc-commercial .com-window-1 { animation: sparkTwinkle 2.4s ease-in-out infinite; }
.svc-commercial .com-window-2 { animation: sparkTwinkle 2.4s ease-in-out infinite; animation-delay: .5s; }
.svc-commercial .com-window-3 { animation: sparkTwinkle 2.4s ease-in-out infinite; animation-delay: 1s; }
@keyframes craneSwing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes hookBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Safety First: hard hat bobs, badge glows, checkmark keeps "checking off", sparks twinkle. */
.svc-safety .saf-hat { animation: hatBob 2.2s ease-in-out infinite; }
.svc-safety .saf-glow { transform-origin: 118px 42px; animation: safGlow 2s ease-in-out infinite; }
.svc-safety .saf-check { animation: checkDraw 2.4s ease-in-out infinite; }
.svc-safety .saf-spark-1 { animation: sparkTwinkle 2.4s ease-in-out infinite; }
.svc-safety .saf-spark-2 { animation: sparkTwinkle 2.4s ease-in-out infinite; animation-delay: .5s; }
.svc-safety .saf-spark-3 { animation: sparkTwinkle 2.4s ease-in-out infinite; animation-delay: 1s; }
@keyframes hatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes safGlow { 0%, 100% { transform: scale(1); opacity: .15; } 50% { transform: scale(1.15); opacity: .3; } }
@keyframes checkDraw { 0%, 15% { stroke-dashoffset: 40; } 40%, 75% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 40; } }
@keyframes sparkTwinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* Training & Certifications: the certificate's checkmark keeps "checking off". */
.svc-training .trn-check { animation: checkDraw 2.4s ease-in-out infinite; }

/* PPE: hard hat bobs gently, same motion language as the Safety First icon. */
.svc-ppe .ppe-hat { animation: hatBob 2.2s ease-in-out infinite; }

/* Compliance: the two province pins twinkle in turn, checkmark stays solid (already compliant). */
.svc-compliance .cmp-pin-1 { animation: sparkTwinkle 2.6s ease-in-out infinite; }
.svc-compliance .cmp-pin-2 { animation: sparkTwinkle 2.6s ease-in-out infinite; animation-delay: .6s; }

/* Fully Equipped: toolbox lid lifts open, tools pop up, a shine flashes at full open. */
.svc-equipped .eq-lid { transform-origin: 30px 54px; animation: lidOpen 3s ease-in-out infinite; }
.svc-equipped .eq-tools { animation: toolsPop 3s ease-in-out infinite; }
.svc-equipped .eq-shine { animation: shineFlash 3s ease-in-out infinite; }
@keyframes lidOpen { 0%, 20% { transform: rotate(0deg); } 45%, 75% { transform: rotate(-35deg); } 100% { transform: rotate(0deg); } }
@keyframes toolsPop { 0%, 20% { opacity: 0; transform: translateY(10px); } 45%, 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes shineFlash { 0%, 40% { opacity: 0; transform: scale(.5); } 55% { opacity: 1; transform: scale(1.2); } 70%, 100% { opacity: 0; transform: scale(.5); } }

/* Reliable Partners: two hands slide in and meet, a glow and sparks mark the handshake. */
.svc-partners .par-arm-left { animation: armInLeft 2.6s ease-in-out infinite; }
.svc-partners .par-arm-right { animation: armInRight 2.6s ease-in-out infinite; }
.svc-partners .par-glow { transform-origin: 80px 50px; animation: parGlow 2.6s ease-in-out infinite; }
.svc-partners .par-spark-1 { animation: sparkTwinkle 2.6s ease-in-out infinite; animation-delay: .35s; }
.svc-partners .par-spark-2 { animation: sparkTwinkle 2.6s ease-in-out infinite; animation-delay: .55s; }
@keyframes armInLeft { 0%, 10% { transform: translateX(-40px); } 35%, 80% { transform: translateX(0); } 100% { transform: translateX(-40px); } }
@keyframes armInRight { 0%, 10% { transform: translateX(40px); } 35%, 80% { transform: translateX(0); } 100% { transform: translateX(40px); } }
@keyframes parGlow { 0%, 30% { transform: scale(.8); opacity: 0; } 45%, 70% { transform: scale(1.1); opacity: .3; } 100% { transform: scale(.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .svc-icon * { animation: none !important; }
}

/* Safety page checklists */
.safety-list { list-style: none; margin: 18px 0 0; padding: 0; }
.safety-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.safety-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Our Process page hero illustration. */
.process-scene-section { padding-bottom: 20px; }
.process-scene-frame {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; margin: 10px auto 0; max-width: 900px;
}
.process-scene-image { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Project cards */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button { background: #fff; border: 1px solid var(--border); padding: 9px 18px; border-radius: 30px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--text-muted); }
.filter-bar button.active, .filter-bar button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }

.news-search-bar { max-width: 420px; margin: 0 0 24px; }
.news-search-bar input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fff;
}
.news-search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,214,.14); }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.project-card .thumb { height: 190px; background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%); position: relative; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .thumb .placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 2.4rem; }
.project-card .body { padding: 18px 20px; }
.project-card .cat { color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.project-card h3 { margin: 8px 0 6px; font-size: 1.1rem; color: var(--navy); }
.project-card .meta { color: var(--text-muted); font-size: .85rem; }

/* Project detail */
.pd-media-main { border-radius: 10px; overflow: hidden; background: var(--navy); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.pd-media-main img, .pd-media-main iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.pd-media-main.has-photo { cursor: zoom-in; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs .pd-thumb { width: 90px; height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--navy); position: relative; }
.pd-thumbs .pd-thumb.active { border-color: var(--accent); }
.pd-thumbs .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .pd-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.pd-privacy-note { margin-top: 14px; color: var(--text-muted); font-size: .85rem; font-style: italic; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6,15,24,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-stage { max-width: 90vw; max-height: 85vh; }
.lb-stage img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lbZoom .2s ease; }
@keyframes lbZoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-btn:hover { background: var(--accent); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .82rem; background: rgba(255,255,255,.12); padding: 6px 16px; border-radius: 20px; }
@media (max-width: 700px) {
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-prev { left: 8px; width: 40px; height: 40px; }
  .lb-next { right: 8px; width: 40px; height: 40px; }
}

/* Ask Us: free, client-side FAQ widget — no API, matched by keyword in js/main.js. */
.ask-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 26px rgba(47,111,214,.4);
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s ease;
}
.ask-toggle:hover { background: var(--accent-dark); transform: scale(1.06); }
.ask-toggle svg { width: 26px; height: 26px; }
.ask-toggle[hidden] { display: none; }

.ask-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 900; width: 380px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 120px); background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 20px 50px rgba(10,28,46,.25); display: flex; flex-direction: column; overflow: hidden;
}
.ask-panel[hidden] { display: none; }
.ask-header {
  background: var(--navy-dark); color: #fff; padding: 14px 16px; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.ask-header button { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0; }
.ask-controls { padding: 10px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ask-topic-select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
  color: var(--navy); font-size: .82rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.ask-quicklinks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.ask-quicklinks a {
  color: var(--text-muted); font-size: .74rem; font-weight: 600; text-decoration: none;
}
.ask-quicklinks a:hover { color: var(--accent); text-decoration: underline; }
.ask-thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: .87rem; line-height: 1.5; }
.ask-msg-bot { background: var(--bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.ask-msg-user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.ask-msg a { color: var(--accent); font-weight: 700; }
.ask-msg-user a { color: #fff; text-decoration: underline; }
.ask-suggestion {
  display: inline-block; margin: 4px 4px 0 0; background: #fff; border: 1px solid var(--accent); color: var(--accent);
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 16px; cursor: pointer;
}
.ask-suggestion:hover { background: var(--accent); color: #fff; }
.ask-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.ask-form input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: .85rem; font-family: inherit;
}
.ask-form button {
  background: var(--accent); color: #fff; border: none; padding: 9px 16px; border-radius: 20px; font-weight: 700;
  font-size: .85rem; cursor: pointer;
}
.ask-form button:hover { background: var(--accent-dark); }
@media (max-width: 480px) {
  .ask-panel { right: 16px; left: 16px; width: auto; bottom: 86px; }
  .ask-toggle { right: 16px; bottom: 16px; }
}

.pd-meta-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.pd-meta-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.pd-meta-table td:first-child { color: var(--text-muted); width: 140px; }

/* Contact / footer */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; }
.contact-form label[hidden] { display: none; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 6px; font-size: .95rem; font-family: inherit; margin-top: 5px; background: #fff;
}
.contact-form button { margin-top: 6px; }
.form-note { font-size: .85rem; margin-top: 14px; }
.form-note.success { color: #1e8a4c; }
.form-note.error { color: #c0392b; }

/* Estimate calculator result panel */
.estimate-result {
  margin-top: 34px; padding: 30px 28px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; text-align: center;
}
.estimate-result-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.estimate-range { font: 700 2.1rem/1.1 var(--display-font); color: var(--navy); margin-bottom: 8px; }
.estimate-timeline { font-size: .95rem; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }
.estimate-disclaimer { font-size: .82rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 20px; line-height: 1.5; }

.site-footer { background: var(--navy-dark); color: #c7d1da; padding: 50px 0 26px; }

.newsletter-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 26px 30px; margin-bottom: 30px;
}
.newsletter-band h3 { margin: 0 0 4px; color: #fff; font-size: 1.15rem; }
.newsletter-band p { margin: 0; color: #a9b7c3; font-size: .88rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 11px 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; min-width: 220px;
}
.newsletter-form input::placeholder { color: #8a97a3; }
.newsletter-form button {
  background: var(--accent); color: #fff; border: none; padding: 11px 22px; border-radius: 6px;
  font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-note { text-align: center; font-size: .85rem; margin: -18px 0 30px; min-height: 1em; }
.newsletter-note.success { color: #4fd17a; }
.newsletter-note.error { color: #ff8a7a; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer-grid a { display: block; color: #a9b7c3; font-size: .9rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0; }
.social-icons a:hover { background: var(--accent); }
.social-icons svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .8rem; color: #83919d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.cta-band { background: var(--accent); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { margin: 0 0 20px; font: 700 1.8rem var(--display-font); }

/* Team */
.team-section { margin-bottom: 54px; }
.team-group-title { font: 700 1.3rem var(--display-font); color: var(--navy); margin: 0 0 26px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.team-card { text-align: center; }
.team-card .photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; background: linear-gradient(135deg, var(--steel), var(--navy)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); font: 700 2rem var(--display-font); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.team-card .role { color: var(--accent); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.team-card p.bio { color: var(--text-muted); font-size: .88rem; margin: 0; }
.team-card .contact-line { margin-top: 10px; font-size: .82rem; }
.team-card .contact-line a { color: var(--steel); }
.team-card .contact-line a:hover { color: var(--accent); }

/* Our Process page: deliverables + ITTO detail attached to the pm-flow tracer below —
   tracks whichever phase is currently active in the tracer (see renderPhaseDetail() in
   process.php's script). Naming mirrors the tracer's own .pm-* convention. */
.pm-deliverables-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pm-accent); margin: 4px 0 10px; }
.pm-deliverables {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.pm-deliverables li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 7px 16px;
  font-size: .84rem; color: var(--navy); font-weight: 600;
}
.pm-itto-toggle {
  display: block; margin: 20px 0 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 700; color: var(--pm-accent); padding: 6px 0;
}
.pm-itto-toggle .pm-itto-sub { font-weight: 400; color: var(--pm-muted); }
.pm-itto-toggle .pm-itto-chevron { display: inline-block; transition: transform .2s ease; }
.pm-itto-toggle.open .pm-itto-chevron { transform: rotate(180deg); }
.pm-itto {
  margin-top: 16px; text-align: left; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 26px;
}
.pm-itto[hidden] { display: none; }
@media (max-width: 700px) { .pm-itto { grid-template-columns: 1fr; gap: 18px; } }
.pm-itto-col-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pm-accent); margin-bottom: 8px; }
.pm-itto-col ul { margin: 0; padding-left: 18px; }
.pm-itto-col li { font-size: .84rem; color: var(--pm-muted); margin-bottom: 5px; line-height: 1.4; }

/* "Trace the project" scenario tracer — a richer replacement for the earlier flow diagram:
   9 real project scenarios (normal flow + 8 exceptions), each steppable/playable, mapped back
   to the 5 life-cycle phases and 10 management areas. Colors/fonts alias the site's own design
   tokens (--pm-* here just points at the existing --navy/--accent/etc. custom properties)
   rather than duplicating hardcoded values, so this stays in sync if the palette ever changes.
   Layout/interaction pattern kept close to the reference the client supplied. */
.pm-flow {
  --pm-bg: var(--card);
  --pm-panel: var(--bg);
  --pm-card: var(--card);
  --pm-text: var(--text);
  --pm-muted: var(--text-muted);
  --pm-border: var(--border);
  --pm-accent: var(--accent);
  --pm-accent-dark: var(--accent-dark);
  --pm-accent-soft: #eaf1fc;
  --pm-radius: 14px;
  --pm-shadow: 0 10px 30px rgba(20,41,63,.07);
  color: var(--pm-text);
}
.pm-flow button { font-family: inherit; }
.pm-flow__header { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; }
.pm-flow__header h2 { margin: 4px 0 8px; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display-font); color: var(--navy); }
.pm-flow__eyebrow { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pm-accent); }
.pm-flow__intro { max-width: 700px; margin: 0; color: var(--pm-muted); line-height: 1.65; }
.pm-section { margin-top: 22px; }
.pm-section h3, .pm-card h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.pm-section__title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.pm-muted { color: var(--pm-muted); font-size: .8rem; }
.pm-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pm-phase {
  position: relative; min-height: 58px; padding: 13px 12px; border: 1px solid var(--pm-border); border-radius: 11px;
  background: var(--pm-card); color: var(--pm-text); font-weight: 800; font-size: .85rem; cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.pm-phase:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -10px; top: 50%; transform: translate(50%,-50%); z-index: 3; color: var(--steel-light); pointer-events: none;
}
.pm-phase:hover { border-color: var(--pm-accent); transform: translateY(-2px); }
.pm-phase.is-active { background: var(--pm-accent); border-color: var(--pm-accent); color: #fff; box-shadow: 0 8px 22px rgba(47,111,214,.22); }
.pm-phase.is-complete { border-color: #b7d9c9; background: #f1faf6; }
.pm-area-scroll { overflow-x: auto; padding-bottom: 6px; }
.pm-areas { display: flex; align-items: center; width: max-content; min-width: 100%; }
.pm-area {
  position: relative; min-width: 114px; min-height: 46px; padding: 11px 13px; border: 1px solid var(--pm-border); border-radius: 10px;
  background: var(--pm-card); color: var(--pm-text); font-weight: 700; font-size: .85rem; cursor: pointer; transition: .25s ease;
}
.pm-area:hover { border-color: var(--pm-accent); }
.pm-area.is-active { border-color: var(--pm-accent); background: var(--pm-accent-soft); box-shadow: inset 0 -3px 0 var(--pm-accent); transform: translateY(-2px); }
.pm-area.is-complete { opacity: .55; }
.pm-area-arrow { flex: 0 0 auto; padding: 0 8px; color: var(--steel-light); font-size: 1.1rem; }
.pm-scenarios { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.pm-scenario {
  min-height: 42px; padding: 9px 14px; border: 1px solid var(--pm-border); border-radius: 999px; background: var(--pm-card);
  color: var(--pm-text); font-size: .82rem; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.pm-scenario:hover, .pm-scenario.is-active { border-color: var(--pm-accent); background: var(--pm-accent-soft); }
.pm-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 16px; margin-top: 22px; }
.pm-card, .pm-info-card { border: 1px solid var(--pm-border); border-radius: var(--pm-radius); background: var(--pm-panel); box-shadow: var(--pm-shadow); }
.pm-card { padding: 18px; }
.pm-trace-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pm-trace-head h3 { margin-top: 4px; font-size: 1.25rem; }
.pm-step-counter { align-self: flex-start; flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--pm-accent-soft); color: var(--pm-accent-dark); font-size: .72rem; font-weight: 800; }
.pm-progress { height: 5px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: #dfe6ef; }
.pm-progress span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pm-accent), #68a2ff); transition: width .5s ease; }
.pm-current-step { display: flex; gap: 13px; min-height: 138px; padding: 18px; border: 1px solid var(--pm-border); border-radius: 12px; background: var(--pm-card); }
.pm-current-step__dot {
  flex: 0 0 auto; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--pm-accent);
  box-shadow: 0 0 0 6px var(--pm-accent-soft); animation: pmPulse 1.4s ease-in-out infinite;
}
.pm-current-step strong { font-size: 1.02rem; color: var(--navy); }
.pm-current-step p { margin: 7px 0 0; color: var(--pm-muted); line-height: 1.55; }
.pm-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.pm-btn { min-height: 42px; padding: 9px 14px; border-radius: 9px; font-weight: 800; font-size: .85rem; cursor: pointer; transition: .2s ease; }
.pm-btn--primary { border: 1px solid var(--pm-accent); background: var(--pm-accent); color: #fff; }
.pm-btn--primary:hover { background: var(--pm-accent-dark); border-color: var(--pm-accent-dark); }
.pm-btn--ghost { border: 1px solid var(--pm-border); background: var(--pm-card); color: var(--pm-text); }
.pm-btn--ghost:hover { border-color: var(--pm-accent); color: var(--pm-accent-dark); }
.pm-steps { display: grid; gap: 6px; margin-top: 12px; }
.pm-step {
  width: 100%; padding: 10px 11px 10px 13px; text-align: left; border: 0; border-left: 3px solid var(--pm-border);
  border-radius: 0 9px 9px 0; background: transparent; color: var(--pm-text); cursor: pointer; transition: .25s ease;
}
.pm-step:hover { background: #f1f5fb; }
.pm-step.is-active { border-left-color: var(--pm-accent); background: var(--pm-accent-soft); transform: translateX(3px); }
.pm-step.is-complete { opacity: .58; }
.pm-step strong { display: block; font-size: .82rem; color: var(--navy); }
.pm-step span { display: block; margin-top: 3px; color: var(--pm-muted); font-size: .76rem; line-height: 1.45; }
.pm-info-card { padding: 18px 20px; background: var(--pm-card); }
.pm-info-card h3 { margin-top: 4px; font-size: 1.05rem; }
.pm-info-card p:last-child { margin: 7px 0 0; color: var(--pm-muted); line-height: 1.6; }
@keyframes pmPulse { 0%, 100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.15); opacity: 1; } }
@media (max-width: 900px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-phase::after { display: none; }
}
@media (max-width: 620px) {
  .pm-flow__header, .pm-section__title-row, .pm-trace-head { align-items: flex-start; flex-direction: column; }
  .pm-phases { grid-template-columns: 1fr; }
  .pm-controls .pm-btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-flow *, .pm-flow *::before, .pm-flow *::after { animation: none !important; transition: none !important; }
}

/* Homepage "Our Process" teaser: a static, non-clickable preview strip linking to process.php. */
.process-teaser {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  margin: 36px 0 6px; padding: 0 10px;
}
.process-teaser::before {
  content: ""; position: absolute; top: 30px; left: 40px; right: 40px; height: 3px;
  background: var(--accent); opacity: .3; border-radius: 2px;
}
.process-teaser-node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; padding: 0 6px; }
.process-teaser-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.process-teaser-icon svg { width: 26px; height: 26px; }
.process-teaser-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-align: center; }
@media (max-width: 720px) {
  .process-teaser { flex-direction: column; gap: 20px; align-items: flex-start; padding-left: 6px; }
  .process-teaser::before { display: none; }
  .process-teaser-node { flex-direction: row; justify-content: flex-start; width: 100%; text-align: left; }
  .process-teaser-icon { width: 48px; height: 48px; flex-shrink: 0; }
  .process-teaser-icon svg { width: 22px; height: 22px; }
}

/* Homepage content hub: Articles / Videos / Podcasts tabs (reuses .filter-bar for the tab bar itself). */
.hub-panel { display: none; }
.hub-panel.active { display: block; }

.media-placeholder {
  text-align: center; padding: 50px 30px; background: var(--bg); border: 1px dashed var(--border);
  border-radius: 12px; max-width: 520px; margin: 0 auto;
}
.media-placeholder .media-placeholder-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--steel-light); font-size: 1.6rem;
}
.media-placeholder h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.media-placeholder p { color: var(--text-muted); font-size: .9rem; margin: 0 0 18px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.video-thumb {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: none; padding: 0;
  background: var(--navy-dark); cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; background: rgba(10,28,46,.28);
}
.video-play-badge::before {
  content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10,28,46,.55);
}
.video-play-badge { text-indent: 2px; }
iframe.video-thumb { aspect-ratio: 16 / 9; }
.video-card-body { padding: 16px 18px; }
.video-card-body h4 { margin: 0 0 6px; font-size: .96rem; line-height: 1.4; color: var(--navy); }
.video-channel { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

.podcast-list { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 0 auto; }
.podcast-episode { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.podcast-episode h4 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.podcast-episode .podcast-desc { margin: 0 0 12px; font-size: .88rem; color: var(--text-muted); }
.podcast-episode iframe { display: block; border-radius: 8px; }

/* Google Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.review-card .review-stars { color: #f0a500; font-size: .95rem; letter-spacing: .08em; margin-bottom: 10px; }
.review-card .review-text { color: var(--text); font-size: .92rem; line-height: 1.55; margin: 0 0 16px; }
.review-card .review-author { display: flex; align-items: center; gap: 10px; }
.review-card .review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--navy); }
.review-card .review-avatar.initials { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; }
.review-card .review-name { font-weight: 700; color: var(--navy); font-size: .85rem; }
.review-card .review-time { color: var(--text-muted); font-size: .78rem; }
.google-rating-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.google-rating-summary .stars { color: #f0a500; font-size: 1.3rem; letter-spacing: .08em; }
.google-rating-summary .rating-text { color: var(--text-muted); font-size: .9rem; }
