/* ==========================================================================
   PAGE-SPECIFIC COMPONENTS
   ========================================================================== */

/* ---------- Services detail rows ---------- */
.service-rows { display: flex; flex-direction: column; gap: 110px; }
.service-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row-media { position: relative; }
.service-row-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-lg);
}
.service-row-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.service-row-media .frame.pattern {
  background: linear-gradient(135deg, var(--navy-900), var(--wood-700));
  display: flex; align-items: center; justify-content: center;
}
.service-row-media .frame.pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(232,205,156,0.08) 0 2px, transparent 2px 24px);
}
.service-row-media .frame.pattern svg { width: 92px; height: 92px; color: rgba(232,205,156,0.35); position: relative; z-index: 1; }
.service-row-media .index-badge {
  position: absolute;
  top: -20px; left: -20px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.service-row-body .service-icon { margin-bottom: 20px; }
.service-row-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-row-body p { margin-top: 16px; color: var(--ink-500); font-size: 1.02rem; line-height: 1.8; }
.service-row-body .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.service-row-body .tags span {
  font-size: 0.8rem; font-weight: 600; color: var(--navy-800);
  background: var(--cream-100); padding: 8px 16px; border-radius: 100px;
}

/* ---------- Why choose band ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  gap: 16px;
}
.why-item svg { width: 26px; height: 26px; color: var(--gold-400); flex-shrink: 0; }
.why-item p { color: rgba(255,255,255,0.85); font-size: 0.98rem; line-height: 1.6; }

/* ---------- NAICS ---------- */
.naics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.naics-card {
  background: var(--white);
  border: 1px solid rgba(11,28,44,0.08);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.naics-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.naics-code { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-600); font-weight: 700; }
.naics-card p { margin-top: 8px; font-size: 0.88rem; color: var(--ink-500); line-height: 1.5; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 6px; height: 100%;
  background: linear-gradient(180deg, var(--gold-500), var(--navy-800));
}
.team-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-300); font-weight: 700;
  margin-bottom: 22px;
}
.team-card h3 { font-size: 1.3rem; }
.team-card .role { margin-top: 6px; color: var(--gold-600); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.team-card p.desc { margin-top: 16px; color: var(--ink-500); line-height: 1.7; font-size: 0.96rem; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.cert-card {
  text-align: center;
  padding: 38px 26px;
  background: var(--cream-100);
  border-radius: var(--radius-md);
}
.cert-card .cert-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
}
.cert-card .cert-icon svg { width: 28px; height: 28px; color: var(--navy-950); }
.cert-card h3 { font-size: 1.05rem; }
.cert-card p { margin-top: 10px; color: var(--ink-500); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Timeline (mission/values) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.value-card { padding: 4px; }
.value-num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-300); opacity: 0.6; }
.value-card h3 { color: var(--white); margin-top: 8px; font-size: 1.15rem; }
.value-card p { margin-top: 10px; color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: flex-start;
}
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon svg { width: 22px; height: 22px; color: var(--gold-300); }
.contact-card h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-300); font-weight: 600; }
.contact-card .value { margin-top: 6px; font-size: 1.08rem; color: var(--navy-900); font-weight: 600; }
.contact-card .value a:hover { color: var(--gold-600); }

.map-frame {
  margin-top: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 240px;
  border: 1px solid rgba(11,28,44,0.08);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.05); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.4rem; }
.contact-form > p { margin-top: 10px; color: var(--ink-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--navy-800); letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid rgba(11,28,44,0.14);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 16px; /* keep >=16px: iOS Safari zooms the whole page on focus below this */
  color: var(--ink-900);
  background: var(--cream-50);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201,151,79,0.16);
}
.form-note { margin-top: 18px; font-size: 0.84rem; color: var(--ink-300); }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(87, 158, 108, 0.12);
  border: 1px solid rgba(87, 158, 108, 0.35);
  color: #2f6b41;
  font-size: 0.92rem;
  align-items: center;
  gap: 10px;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(163, 51, 51, 0.1);
  border: 1px solid rgba(163, 51, 51, 0.3);
  color: #a33333;
  font-size: 0.92rem;
  align-items: center;
  gap: 10px;
}
.form-error.is-visible { display: flex; }
.form-error svg { width: 20px; height: 20px; flex-shrink: 0; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; overflow: hidden;
}

/* ==========================================================================
   QUICK QUOTE MODAL
   ========================================================================== */
.qq-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 8, 4, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.qq-overlay.is-open { opacity: 1; visibility: visible; }
.qq-modal {
  position: relative;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 34px 32px 26px;
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 0 0 1px rgba(232,205,156,0.35), 0 40px 90px rgba(15, 8, 4, 0.5);
  transform: scale(0.92) translateY(18px);
  transition: transform 0.4s var(--ease);
}
.qq-overlay.is-open .qq-modal { transform: scale(1) translateY(0); }
.qq-modal-header {
  background: linear-gradient(135deg, var(--wood-900), var(--wood-700));
  margin: -34px -32px 18px;
  padding: 18px 32px 12px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--gold-500);
}
.qq-modal-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.qq-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.qq-close:hover { background: rgba(255,255,255,0.24); color: var(--gold-200, #e8cd9c); }

.qq-state { text-align: center; }
.qq-state-form h3 { text-align: center; font-size: 1.22rem; }
.qq-subtitle { text-align: center; margin-top: 4px; color: var(--ink-500); font-size: 0.86rem; line-height: 1.45; }
.qq-row { display: flex; gap: 10px; }
.qq-row .qq-field { flex: 1; min-width: 0; }
.qq-field { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.qq-field label { font-size: 0.76rem; font-weight: 600; color: var(--navy-800); }
.qq-field input, .qq-field select, .qq-field textarea {
  border: 1.5px solid rgba(11,28,44,0.14);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 16px; /* keep >=16px: iOS Safari zooms the whole page on focus below this */
  background: var(--cream-50);
  font-family: inherit;
  width: 100%;
}
.qq-field textarea { min-height: 56px; resize: vertical; }
.qq-field input:focus, .qq-field select:focus, .qq-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201,151,79,0.16);
}
.qq-submit { margin-top: 14px; padding: 12px 32px; }

.qq-state-loading, .qq-state-sending { padding: 20px 0 6px; }
.qq-loader {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qq-loader-sm { width: 64px; height: 64px; margin-bottom: 18px; }
.qq-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--gold-400) 38%, var(--gold-300) 50%, transparent 62%);
  animation: qqSpin 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 10px rgba(216,173,109,0.65));
}
@keyframes qqSpin { to { transform: rotate(360deg); } }
.qq-loader-text { color: var(--ink-500); font-size: 0.92rem; margin-top: 4px; }

.qq-check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(87,158,108,0.14);
  color: #2f6b41;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qqPop 0.5s var(--ease);
}
.qq-check svg { width: 30px; height: 30px; }
.qq-check-error { background: rgba(163,51,51,0.12); color: #a33333; }
@keyframes qqPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.qq-state-success h3, .qq-state-error h3 { font-size: 1.3rem; }
.qq-state-success p, .qq-state-error p { margin-top: 10px; color: var(--ink-500); line-height: 1.6; }
.qq-done, .qq-retry { margin-top: 22px; }

@media (max-width: 480px) {
  .qq-modal { padding: 26px 22px 22px; }
  .qq-modal-header { margin: -26px -22px 14px; padding: 14px 22px 10px; }
  .qq-modal-logo { height: 34px; }
  .qq-row { flex-direction: column; gap: 0; }
}

@media (max-height: 700px) {
  .qq-modal-header { padding-top: 10px; padding-bottom: 8px; }
  .qq-modal-logo { height: 30px; }
  .qq-state-form h3 { font-size: 1.1rem; }
  .qq-subtitle { display: none; }
  .qq-field { margin-top: 8px; }
  .qq-field textarea { min-height: 44px; }
}

/* ==========================================================================
   PHOTO GALLERY (touch/drag filmstrip + lightbox)
   ========================================================================== */
.gallery-section { overflow: hidden; }
.gallery-viewport {
  position: relative;
  margin-top: 44px;
  padding: 0 24px;
}
.gallery-viewport::before, .gallery-viewport::after {
  content: "";
  position: absolute;
  top: 0; bottom: 20px;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.gallery-viewport::before { left: 0; background: linear-gradient(90deg, var(--cream-50), rgba(250,246,238,0)); }
.gallery-viewport::after { right: 0; background: linear-gradient(270deg, var(--cream-50), rgba(250,246,238,0)); }
.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 22px;
  cursor: grab;
  touch-action: pan-x;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:active { cursor: grabbing; }
.gallery-item {
  flex: 0 0 auto;
  width: 300px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  background: var(--navy-950);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item:hover, .gallery-item:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); outline: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .gallery-item { width: 220px; height: 165px; }
  .gallery-viewport { padding: 0 16px; margin-top: 32px; }
  .gallery-viewport::before, .gallery-viewport::after { width: 28px; }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,6,3,0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox-stage { max-width: min(90vw, 1100px); max-height: 82vh; display: flex; }
.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-lightbox.is-open .gallery-lightbox-stage img { opacity: 1; transform: scale(1); }
.gallery-lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background 0.25s var(--ease);
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.24); }
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.gallery-lightbox-nav svg { width: 22px; height: 22px; }
.gallery-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
.gallery-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .gallery-lightbox-nav { width: 40px; height: 40px; }
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
  .gallery-lightbox-close { top: 12px; right: 12px; }
}

/* ==========================================================================
   AI CHAT WIDGET
   ========================================================================== */
.vm-chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 2500;
}

/* ---- toggle button: compact, brand mark, soft breathing halo ---- */
.vm-chat-toggle {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-800), var(--wood-600));
  color: var(--gold-200, #e8cd9c);
  border: 1px solid rgba(232,205,156,0.35);
  box-shadow: 0 8px 20px rgba(15,8,4,0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  isolation: isolate;
}
.vm-chat-toggle:hover { transform: scale(1.05); }
.vm-chat-glow {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,79,0.65), rgba(201,151,79,0) 72%);
  filter: blur(5px);
  animation: vmAuraBreathe 3.6s ease-in-out infinite;
}
@keyframes vmAuraBreathe {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .vm-chat-glow { animation: none; opacity: 0.6; }
}
.vm-chat-dot {
  position: absolute;
  top: 0; right: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #4caf6f;
  border: 2px solid var(--cream-50);
  box-shadow: 0 0 0 0 rgba(76,175,111,0.6);
  animation: vmDotPing 2.4s ease-out infinite;
  z-index: 1;
}
.vm-chat.is-open .vm-chat-dot { opacity: 0; }
@keyframes vmDotPing {
  0% { box-shadow: 0 0 0 0 rgba(76,175,111,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(76,175,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,111,0); }
}
.vm-chat-toggle svg, .vm-chat-toggle img {
  width: 26px; height: 26px;
  position: absolute;
  object-fit: contain;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.vm-chat-icon-close { opacity: 0; transform: scale(0.6) rotate(-45deg); }
.vm-chat.is-open .vm-chat-icon-open { opacity: 0; transform: scale(0.6) rotate(45deg); }
.vm-chat.is-open .vm-chat-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }

.vm-chat-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: calc(52px + max(16px, env(safe-area-inset-bottom, 16px)) + 12px);
  width: min(360px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 140px));
  max-height: 70vh;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(232,205,156,0.3), 0 30px 70px rgba(15,8,4,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  box-sizing: border-box;
}
.vm-chat.is-open .vm-chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ---- header: slow-drifting gradient + shimmering bottom edge ---- */
.vm-chat-header {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 44px 14px 16px;
  background: linear-gradient(115deg, var(--wood-950) 0%, var(--wood-800) 45%, var(--wood-600) 75%, var(--wood-800) 100%);
  background-size: 220% 220%;
  animation: vmHeaderDrift 9s ease-in-out infinite;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}
@keyframes vmHeaderDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.vm-chat-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), var(--gold-500), var(--gold-300), transparent);
  background-size: 200% 100%;
  animation: vmHeaderShimmer 3.5s linear infinite;
}
@keyframes vmHeaderShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .vm-chat-header { animation: none; }
  .vm-chat-header::after { animation: none; }
}
.vm-chat-header-avatar {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-800), var(--wood-600));
  border: 1px solid rgba(232,205,156,0.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.vm-chat-header-avatar svg, .vm-chat-header-avatar img { width: 22px; height: 22px; color: var(--gold-200, #e8cd9c); object-fit: contain; }
.vm-chat-header-dot { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #4caf6f; border: 2px solid var(--wood-900); }
.vm-chat-header-text { min-width: 0; }
.vm-chat-header strong { display: block; font-size: 0.92rem; }
.vm-chat-header span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.72); margin-top: 1px; }
.vm-chat-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.vm-chat-close:hover { background: rgba(255,255,255,0.24); color: var(--gold-200, #e8cd9c); }

.vm-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.vm-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.vm-chat-row-user { justify-content: flex-end; }
.vm-chat-avatar {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-800), var(--wood-600));
  display: flex; align-items: center; justify-content: center;
}
.vm-chat-avatar svg { width: 15px; height: 15px; color: var(--gold-300); }
.vm-chat-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 0.87rem; line-height: 1.55; white-space: pre-wrap; }
.vm-chat-msg-bot { background: #fff; box-shadow: var(--shadow-sm); border-bottom-left-radius: 4px; color: var(--ink-700, #2b1710); }
.vm-chat-msg-user { background: var(--navy-900); color: #fff; border-bottom-right-radius: 4px; }
.vm-chat-typing.vm-chat-row { padding: 0 0 2px; }
.vm-chat-typing[hidden] { display: none; }
.vm-chat-panel[hidden] { display: none; }
.vm-chat-typing-dots { display: flex; align-items: center; gap: 4px; background: #fff; box-shadow: var(--shadow-sm); border-radius: 16px; border-bottom-left-radius: 4px; padding: 12px 14px; }
.vm-chat-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(11,28,44,0.35); animation: vmTypingBounce 1.2s ease-in-out infinite; }
.vm-chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.vm-chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vmTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.vm-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(11,28,44,0.1); flex-shrink: 0; background: #fff; box-sizing: border-box; }
.vm-chat-form input {
  flex: 1 1 0%;
  min-width: 0; /* without this a flex-shrinking input can refuse to shrink and push the send button out of view */
  border: 1.5px solid rgba(11,28,44,0.14);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 16px; /* keep >=16px: iOS Safari zooms the whole page on focus below this */
  font-family: inherit;
  background: var(--cream-50);
  box-sizing: border-box;
}
.vm-chat-form input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,151,79,0.16); }
.vm-chat-form button {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.vm-chat-form button svg { width: 17px; height: 17px; }
.vm-chat-form button:hover { background: var(--gold-400); transform: scale(1.05); }
@media (max-width: 480px) {
  .vm-chat-panel { width: min(360px, calc(100vw - 24px)); }
}

/* ==========================================================================
   OUR WORK — categorized grid (reuses .gallery-item hover/zoom + lightbox)
   ========================================================================== */
.work-category { margin-bottom: 64px; }
.work-category:last-child { margin-bottom: 0; }
.work-category-head { margin-bottom: 26px; }
.work-category-head h2 { font-size: 1.6rem; }
.work-category-head p { margin-top: 8px; color: var(--ink-500); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.work-grid .gallery-item { width: 100%; height: 220px; }
@media (max-width: 640px) {
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .work-grid .gallery-item { height: 170px; }
  .work-category { margin-bottom: 44px; }
}

/* ---------- Animated glow CTA buttons ---------- */
.btn-glow {
  position: relative;
  overflow: hidden;
  animation: btnGlowPulse 2.8s ease-in-out infinite;
}
.btn-glow::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.4s ease-in-out infinite;
}
@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,151,79,0.5), var(--shadow-sm); }
  50% { box-shadow: 0 0 24px 6px rgba(201,151,79,0.5), var(--shadow-sm); }
}
@keyframes btnShine {
  0% { left: -60%; }
  35% { left: 130%; }
  100% { left: 130%; }
}

/* ==========================================================================
   RESPONSIVE — page components
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .naics-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .team-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .service-rows { gap: 64px; }
  .service-row-media .frame { height: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
  .naics-grid { grid-template-columns: 1fr; }
}
