/* ============================================================
   XYLEM — Enhancement layer: hero imagery, lead popup,
   sticky quote bar, multi-step form. Self-contained.
   ============================================================ */

/* ---------- HERO: photographic layer + SVG port scene ---------- */
.hero{position:relative;overflow:hidden}
/* If a real photo is present it will be set via .hero.has-photo (JS checks). */
.hero-photo{position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity .8s ease;z-index:0}
.hero.has-photo .hero-photo{opacity:.28}
.hero-scene{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.5}
.hero-scene svg{position:absolute;bottom:0;left:0;width:100%;height:auto}
.hero .container{position:relative;z-index:2}
/* subtle animated container-ship drift */
@keyframes drift{from{transform:translateX(-40px)}to{transform:translateX(40px)}}
.hero-scene .ship{animation:drift 18s ease-in-out infinite alternate}
@media (prefers-reduced-motion:reduce){.hero-scene .ship{animation:none}}

/* ---------- STICKY QUOTE BAR (appears after scroll) ---------- */
.sticky-quote{position:fixed;left:0;right:0;bottom:-90px;z-index:900;
  background:linear-gradient(90deg,var(--navy),var(--navy-mid));
  border-top:2px solid var(--orange);box-shadow:0 -6px 24px rgba(0,0,0,.25);
  transition:bottom .35s cubic-bezier(.2,.8,.2,1)}
.sticky-quote.show{bottom:0}
.sticky-quote-inner{max-width:1200px;margin:0 auto;padding:12px 20px;display:flex;
  align-items:center;gap:18px;justify-content:space-between;flex-wrap:wrap}
.sticky-quote-text{color:#fff;font-weight:600;font-size:15px;display:flex;align-items:center;gap:10px}
.sticky-quote-text strong{color:var(--secondary)}
.sticky-quote-actions{display:flex;gap:10px;align-items:center}
.sticky-quote .btn{padding:10px 20px;font-size:13px}
.sticky-quote-close{background:none;border:none;color:rgba(255,255,255,.55);
  font-size:20px;cursor:pointer;padding:4px 8px;line-height:1}
.sticky-quote-close:hover{color:#fff}
@media(max-width:640px){
  .sticky-quote-text{font-size:13px}
  .sticky-quote-inner{padding:10px 14px;gap:10px}
  .sticky-quote-text span.sq-sub{display:none}
}

/* ---------- LEAD POPUP (exit-intent / timed) ---------- */
.lead-pop-overlay{position:fixed;inset:0;z-index:1000;background:rgba(10,20,35,.72);
  backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;
  padding:20px;opacity:0;visibility:hidden;transition:opacity .3s}
.lead-pop-overlay.open{opacity:1;visibility:visible}
.lead-pop{background:#fff;max-width:900px;width:100%;border-radius:14px;overflow:hidden;
  display:grid;grid-template-columns:1fr 1fr;box-shadow:0 30px 80px rgba(0,0,0,.4);
  transform:translateY(20px) scale(.98);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.lead-pop-overlay.open .lead-pop{transform:none}
.lead-pop-visual{background:linear-gradient(150deg,var(--navy),var(--ocean));
  color:#fff;padding:38px 32px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.lead-pop-visual::after{content:"";position:absolute;right:-40px;bottom:-40px;width:180px;height:180px;
  border:2px solid rgba(255,255,255,.12);border-radius:50%}
.lead-pop-visual .eyebrow{color:var(--secondary);letter-spacing:2px}
.lead-pop-visual h3{font-family:'Plus Jakarta Sans',sans-serif;font-size:30px;line-height:1.1;margin:8px 0 14px;font-weight:800}
.lead-pop-visual ul{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-direction:column;gap:9px}
.lead-pop-visual li{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:rgba(255,255,255,.9)}
.lead-pop-visual li svg{width:18px;height:18px;color:var(--orange);flex-shrink:0;margin-top:1px}
.lead-pop-form{padding:34px 30px;position:relative}
.lead-pop-close{position:absolute;top:12px;right:14px;background:none;border:none;
  font-size:24px;color:#9aa5b1;cursor:pointer;line-height:1;z-index:3}
.lead-pop-close:hover{color:var(--navy)}
.lead-pop-form h4{font-family:'Plus Jakarta Sans',sans-serif;font-size:24px;color:var(--navy);font-weight:800;margin-bottom:4px}
.lead-pop-form p.sub{font-size:13px;color:#64748b;margin-bottom:16px}
.lead-pop-form .form-field{margin-bottom:11px}
/* Popup panel is white — .form-field is styled for dark panels (white text,
   near-transparent white background/border), so it renders invisible here.
   Re-style for a light background. */
.lead-pop-form .form-field{
  background:var(--white);
  border:1px solid var(--border);
  color:var(--text-dark);
}
.lead-pop-form .form-field::placeholder{color:var(--text-light)}
.lead-pop-form .form-field:focus{
  border-color:var(--ocean);
  background:var(--white);
}
.lead-pop-form select.form-field{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3e%3cpath d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:14px;
  padding-right:34px;
}
.lead-pop-form .form-field option{background:var(--white);color:var(--text-dark)}
.lead-pop-note{font-size:11px;color:#94a3b8;text-align:center;margin-top:10px}
@media(max-width:720px){
  .lead-pop{grid-template-columns:1fr;max-width:420px}
  .lead-pop-visual{display:none}
}

/* ---------- MULTI-STEP QUOTE FORM ---------- */
.msf-steps{display:flex;gap:6px;margin-bottom:18px}
.msf-step-dot{flex:1;height:4px;border-radius:2px;background:var(--border);transition:background .3s}
.msf-step-dot.active{background:var(--orange)}
.msf-step-dot.done{background:var(--ocean)}
.msf-panel{display:none;animation:msfIn .35s ease}
.msf-panel.active{display:block}
@keyframes msfIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.msf-q{font-family:'Plus Jakarta Sans',sans-serif;font-size:19px;font-weight:700;
  color:var(--navy);margin-bottom:4px}
.msf-hint{font-size:12px;color:#94a3b8;margin-bottom:14px}
.msf-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
.msf-choice{border:1.5px solid var(--border);border-radius:8px;padding:13px 12px;
  cursor:pointer;font-size:13.5px;font-weight:600;color:var(--text-mid);
  display:flex;align-items:center;gap:9px;transition:all .18s;background:#fff;text-align:left}
.msf-choice svg{width:20px;height:20px;color:var(--ocean);flex-shrink:0}
.msf-choice:hover{border-color:var(--ocean);background:var(--ocean-light)}
.msf-choice.sel{border-color:var(--orange);background:#F5F8FC;color:var(--navy)}
.msf-choice.sel svg{color:var(--orange)}
.msf-nav{display:flex;justify-content:space-between;gap:10px;margin-top:18px}
.msf-nav .btn{flex:0 0 auto}
.msf-back{background:none;border:none;color:var(--text-light);font-weight:600;
  font-size:13px;cursor:pointer;padding:8px 4px}
.msf-back:hover{color:var(--navy)}
.msf-back[hidden]{visibility:hidden}
@media(max-width:480px){.msf-choices{grid-template-columns:1fr}}

/* ────────────────────────────────────────────────────────────────
   SERVICE BUTTON GRID - Replace dropdown with clickable buttons
   ──────────────────────────────────────────────────────────────── */

.service-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.service-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  text-align: left;
  width: 100%;
}

.service-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.service-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.service-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.service-label {
  flex: 1;
  font-size: 13px;
}

/* Mobile: single column */
@media (max-width: 480px) {
  .service-buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .service-btn {
    padding: 11px 12px;
    font-size: 12px;
  }
  
  .service-icon {
    font-size: 16px;
  }
}


/* ────────────────────────────────────────────────────────────────
   BLOG ARTICLE HERO — full-width featured image
   ──────────────────────────────────────────────────────────────── */
.article-hero{
  position:relative;
  background:var(--navy);
  min-height:420px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.article-hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}
.article-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Dark wash keeps the headline legible over any photo */
.article-hero-media::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,
    rgba(54,69,87,.55) 0%,
    rgba(54,69,87,.78) 55%,
    rgba(54,69,87,.94) 100%);
}
.article-hero .container{
  position:relative;
  z-index:1;
  padding-top:56px;
  padding-bottom:44px;
}
.article-crumb{
  font-size:12px;
  color:rgba(255,255,255,.7);
  margin-bottom:16px;
}
.article-crumb a{color:rgba(255,255,255,.7);transition:var(--transition)}
.article-crumb a:hover{color:var(--secondary)}
.article-crumb span{color:var(--secondary)}
.article-hero h1{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:800;
  font-size:clamp(28px,4.4vw,46px);
  color:#fff;
  line-height:1.12;
  max-width:880px;
  margin:0;
  text-shadow:0 2px 18px rgba(0,0,0,.35);
}
.article-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:18px;
}
.article-meta .tag{
  font-size:11px;
  background:rgba(255,255,255,.16);
  color:#fff;
  padding:5px 12px;
  border-radius:10px;
  font-weight:600;
}
.article-meta .read{
  font-size:11px;
  color:rgba(255,255,255,.7);
}

@media(max-width:768px){
  .article-hero{min-height:300px}
  .article-hero .container{padding-top:40px;padding-bottom:32px}
}
