/* ================================
   hero-fixedbg.css  (full file)
   - Fixed full-bleed background that never moves
   - Background swaps per frame via JS (sets --bg-url to image-set)
   - Compact frames (not full-screen)
   - Light grey glass slab + lighter grey article cards
   - H1 = white, H3 (.copy-title) = teal (uses --accent)
   - Article text = black/ink (uses --text)
   - Sticky header + footer readability
   ================================= */

/* Base + stacking */
html,
body {
  overflow-x: hidden;
  background: #0b0f17;
}

#buildops-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* Fixed full-bleed bg that never moves (always behind content) */
#hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  /* Default: blueprint with PNG fallback via image-set */
  --bg-url: image-set(url('/images/blueprint-modern.webp') type('image/webp') 1x,
      url('/images/blueprint-modern.png') type('image/png') 1x);

  background-image:
    radial-gradient(120% 65% at 50% 10%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(7, 12, 20, .10) 0%, rgba(7, 12, 20, .12) 40%, rgba(7, 12, 20, .16) 100%),
    var(--bg-url);
  background-position: center center, center center, center center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  transition: background-image 280ms ease, opacity 220ms ease;
}

#hero-bg.bg-off {
  opacity: 0;
  pointer-events: none;
}

/* ── Frames & content ── */
.hero-frame {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 3rem 1rem 3.5rem;
  display: block;
}

.hero-frame+.hero-frame {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-frame {
    padding: 3.5rem 1.25rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-frame {
    padding: 4.5rem 1.5rem 5rem;
  }
}

/* Kill legacy fade/slide states so frames are always visible */
.hero-frame,
.hero-frame.in-view,
.hero-frame.is-visible,
.hero-frame.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Prevent old overlays from double-stacking */
.hero-overlay,
.hero-light {
  display: none !important;
}

/* ── Shared widths ── */
#buildops-hero {
  --slab-w: 66rem;
}

.hero-slab {
  max-width: var(--slab-w);
  margin-left: auto;
  margin-right: auto;
}

/* ── Headline ── */
.frame-content {
  position: relative;
  z-index: 2;
}

.frame-content h1 {
  max-width: var(--slab-w);
  margin: 0 auto 1rem auto;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

/* ── Glass variables ── */
#buildops-hero {
  --slab-bg: rgba(255, 255, 255, 0.52);
  --slab-brd: rgba(255, 255, 255, 0.22);
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-brd: rgba(255, 255, 255, 0.30);
}

/* ── Slab panel ── */
.hero-slab {
  background: var(--slab-bg);
  border: 1px solid var(--slab-brd);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 0.8rem + 1.2vw, 2rem);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 16px 40px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Grid ── */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Cards ── */
.copy-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-brd) !important;
  border-radius: 1rem;
  padding: clamp(1.15rem, 0.7rem + 1vw, 1.75rem) clamp(1.15rem, 0.8rem + 1vw, 2rem);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 24px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.copy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 138, 147, 0.25) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
    0 16px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Top accent gradient stripe on cards */
.copy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #118A93 0%, rgba(17, 138, 147, 0.35) 60%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

/* ── Article headings (h3): teal ── */
.copy-title {
  color: var(--accent, #0ea5e9) !important;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Article body text ── */
.copy-card,
.copy-card .bo-copy,
.copy-card li,
.copy-card p,
.copy-card span,
.copy-card [class*="text-ink"] {
  color: var(--text, #1f2937) !important;
}

/* Title icons — slightly larger for heading weight */
.copy-title i[data-lucide],
.copy-title svg.lucide {
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex-shrink: 0;
}

/* Better list item spacing and icon alignment */
.copy-card li {
  line-height: 1.55;
}

.copy-card li i[data-lucide],
.copy-card li svg.lucide {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── CTA row ── */
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

/* Larger, more polished CTA in hero context */
#buildops-hero .cta-row .bo-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  box-shadow:
    0 6px 20px rgba(180, 83, 9, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#buildops-hero .cta-row .bo-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(180, 83, 9, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

.bo-btn.bo-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Trust / social-proof strip ── */
.trust-strip {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .trust-strip {
    padding: 2rem 1.25rem;
  }
}

.trust-strip-inner {
  max-width: var(--slab-w, 66rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Badge row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(17, 138, 147, 0.45);
  border: 1px solid rgba(17, 138, 147, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust-badge i[data-lucide],
.trust-badge svg.lucide {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Testimonial quote */
.trust-quote {
  max-width: 38rem;
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-quote p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.trust-quote cite {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

/* ── CTA subtext (urgency / scarcity line) ── */
.cta-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text, #1f2937);
  opacity: 0.7;
  text-align: center;
}

.cta-subtext i[data-lucide],
.cta-subtext svg.lucide {
  flex-shrink: 0;
  color: #118A93;
}

/* ── FAQ link below CTA ── */
.cta-faq-link {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.8rem;
}

.cta-faq-link a {
  color: var(--accent, #0ea5e9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(14, 165, 233, 0.35);
  font-weight: 500;
}

.cta-faq-link a:hover {
  border-bottom-style: solid;
}

/* ── Timeline strip (between Frame 2 and Form) ── */
.timeline-strip {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .timeline-strip {
    padding: 2.5rem 1.25rem;
  }
}

.timeline-strip-inner {
  max-width: var(--slab-w, 66rem);
  margin: 0 auto;
  text-align: center;
}

.timeline-heading {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 0 1 auto;
  padding: 0 0.25rem;
}

.timeline-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(17, 138, 147, 0.5);
  border: 2px solid rgba(17, 138, 147, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.timeline-icon i[data-lucide],
.timeline-icon svg.lucide {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.timeline-label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.timeline-duration {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 500;
}

.timeline-connector {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  flex-shrink: 0;
}

.timeline-connector::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: rgba(17, 138, 147, 0.45);
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .timeline-connector::before {
    width: 2.5rem;
  }
  .timeline-step {
    padding: 0 0.5rem;
  }
}

@media (min-width: 1024px) {
  .timeline-connector::before {
    width: 4rem;
  }
}

@media (max-width: 480px) {
  .timeline-row {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .timeline-connector {
    display: none;
  }
  .timeline-step {
    width: calc(33.33% - 0.5rem);
  }
}

/* ── Floating quick-contact button — now a full-width bottom bar ── */
/* (Primary styles in marketing.css — these are kept in sync for homepage) */

/* Hide floating CTA when footer is visible (JS adds this class) */
.floating-cta.cta-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #hero-bg {
    transition: none;
  }
  .copy-card {
    transition: none;
  }
  .floating-cta {
    transition: none;
  }
}

/* ── Extra breathing room before the feasibility frame ── */
.hero-frame:last-of-type {
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .hero-frame:last-of-type {
    margin-top: 4.5rem;
  }
}

/* ── Feasibility: kill flicker & keep above bg ── */
#feasibility {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  content-visibility: auto;
}

#feasibility,
#feasibility.bg-background {
  background: transparent !important;
}

#feasibility.in-view,
#feasibility.is-visible,
#feasibility.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* ── Feasibility heading — white on photo bg ── */
#feasibility h2 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
}

#feasibility > .bo-container > p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* ── Feasibility form card — glass treatment matching hero cards ── */
#feasibility form.bo-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 1rem;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
    0 16px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

/* Accent stripe on form card top */
#feasibility form.bo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #118A93 0%, rgba(17, 138, 147, 0.35) 60%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

/* Keep form labels and inputs readable on glass */
#feasibility form.bo-card label {
  color: var(--text, #1f2937);
}

#feasibility form.bo-card .bo-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.10);
}

#feasibility form.bo-card .bo-input:focus {
  background: rgba(255, 255, 255, 0.9);
}

/* ── Footer always readable on neutral ── */
footer,
.site-footer,
#footer {
  position: relative;
  z-index: 1;
  background: var(--bg, #faf7f2);
  color: var(--text, #1f2937);
  border-top: 1px solid var(--border, #e2e8f0);
}

footer a,
.site-footer a,
#footer a {
  color: var(--accent, #0ea5e9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(14, 165, 233, .35);
}

footer a:hover,
.site-footer a:hover,
#footer a:hover {
  border-bottom-style: solid;
}

/* ── Sticky header ── */
#site-header,
.bo-nav,
.site-header,
header#site-header,
header.bo-nav,
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  width: 100%;
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  isolation: isolate;
}

html.header-scrolled #site-header,
html.header-scrolled .bo-nav,
html.header-scrolled .site-header,
html.header-scrolled header#site-header,
html.header-scrolled header.bo-nav,
html.header-scrolled header {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
}

/* Allow stickiness */
main,
.site-main,
.layout,
.page,
.wrapper,
.content {
  overflow: visible !important;
}

/* ── Footer phone — large, prominent number ── */
.footer-phone {
  display: inline-block;
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #118A93;
  text-decoration: none;
  border-bottom: none;
  padding: 0.25rem 0;
}

@media (min-width: 640px) {
  .footer-phone {
    font-size: 1.85rem;
  }
}

.footer-phone:hover {
  color: #0E6B73;
  border-bottom: none;
}
