@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 { 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; }
.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); }
@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 */
.tc { overflow: hidden; max-width: 720px; margin: 0 auto; }
.tc-track { display: flex; transition: transform .5s ease; }
.tc-slide { flex: 0 0 100%; text-align: center; padding: 4px 20px; }
.tc-stars { color: #f0a500; font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 16px; }
.tc-slide blockquote { font: 500 1.35rem/1.5 var(--display-font); color: var(--navy); margin: 0 0 26px; }
.tc-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.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-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); }

/* 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; }

/* 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; }
.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; }

/* 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; }
}
.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: clickable phase timeline + knowledge-area grid that highlights in response. */
.process-timeline {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  margin: 30px 0 46px; padding: 0 10px;
}
.process-timeline::before {
  content: ""; position: absolute; top: 36px; left: 46px; right: 46px; height: 4px;
  background: var(--border); border-radius: 2px;
}
.process-timeline::after {
  content: ""; position: absolute; top: 36px; left: 46px; height: 4px;
  width: calc((100% - 92px) * var(--line-pct, 0) / 100);
  background: var(--accent); border-radius: 2px; transition: width .6s cubic-bezier(.3,0,.2,1);
}
.process-node {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; flex: 1; padding: 0; font-family: inherit;
}
.process-node-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--card); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--steel-light);
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.process-node-icon svg { width: 30px; height: 30px; }
.process-node-label { font-weight: 700; font-size: .85rem; color: var(--text-muted); transition: color .25s ease; }
.process-node:hover .process-node-icon { border-color: var(--accent); color: var(--accent); }
.process-node.active .process-node-icon {
  border-color: var(--accent); color: var(--accent); background: #eaf1fc; transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(47,111,214,.28);
}
.process-node.active .process-node-label { color: var(--navy); }
@media (max-width: 720px) {
  .process-timeline { flex-direction: column; gap: 26px; align-items: flex-start; padding-left: 8px; }
  .process-timeline::before, .process-timeline::after { display: none; }
  .process-node { flex-direction: row; justify-content: flex-start; text-align: left; width: 100%; }
  .process-node-icon { width: 56px; height: 56px; flex-shrink: 0; }
  .process-node-icon svg { width: 24px; height: 24px; }
}

.process-detail { text-align: center; max-width: 680px; margin: 0 auto; min-height: 90px; }
.process-detail p { font-size: 1rem; }

.process-deliverables-wrap { margin-top: 22px; }
.process-deliverables-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.process-deliverables {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.process-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;
}

.process-itto-toggle {
  display: block; margin: 26px auto 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 700; color: var(--accent); padding: 6px 0;
}
.process-itto-toggle .itto-toggle-sub { font-weight: 400; color: var(--text-muted); }
.process-itto-toggle .itto-chevron { display: inline-block; transition: transform .2s ease; }
.process-itto-toggle.open .itto-chevron { transform: rotate(180deg); }
.process-itto {
  margin: 20px auto 0; max-width: 780px; 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;
}
.process-itto[hidden] { display: none; }
@media (max-width: 700px) { .process-itto { grid-template-columns: 1fr; gap: 18px; } }
.itto-col-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.itto-col ul { margin: 0; padding-left: 18px; }
.itto-col li { font-size: .84rem; color: var(--text-muted); margin-bottom: 5px; line-height: 1.4; }

.ka-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ka-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ka-grid { grid-template-columns: repeat(2, 1fr); } }
.ka-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 10px; padding: 18px 10px; text-align: center;
  cursor: pointer; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease, opacity .3s ease;
}
.ka-card:hover { box-shadow: 0 8px 18px rgba(20,41,63,.1); }
.ka-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ka-card .ka-icon { display: block; width: 30px; height: 30px; margin: 0 auto 10px; color: var(--steel-light); transition: color .3s ease; }
.ka-card .ka-icon svg { width: 100%; height: 100%; }
.ka-card .ka-label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-muted); transition: color .3s ease; }
.ka-card.ka-active { border-color: var(--accent); background: #eaf1fc; box-shadow: 0 10px 22px rgba(47,111,214,.16); transform: translateY(-3px); }
.ka-card.ka-active .ka-icon { color: var(--accent); }
.ka-card.ka-active .ka-label { color: var(--navy); }
.ka-card.ka-dim { opacity: .35; }
.ka-definition {
  max-height: 0; overflow: hidden; opacity: 0; text-align: left; font-size: .8rem; line-height: 1.45;
  color: var(--text-muted); margin: 0; transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.ka-card.ka-expanded .ka-definition { max-height: 160px; opacity: 1; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .process-node-icon, .process-node-label, .ka-card, .ka-card .ka-icon, .ka-card .ka-label, .ka-definition, .process-timeline::after { transition: none; }
}

/* 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; }

/* 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; }
