/* ============================================================
   BFE, LLC — Systems Design and Integration
   DARK lagoon-teal theme · layer-stack motif
   ============================================================ */

*,*::before,*::after{box-sizing:border-box}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  color:#D6E2DF;
  background-color:#0C1516;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:#17948F;text-decoration:none;transition:color .18s ease}
a:hover{color:#F0F7F5}

h1,h2,h3,h4{
  margin:0 0 14px;
  color:#F0F7F5;
  font-weight:700;
  line-height:1.2;
}

p{margin:0 0 16px}

/* ------------------------------------------------------------
   Layout frame: content offset from the right rail on desktop
   ------------------------------------------------------------ */
.site-frame{
  margin-right:230px;
  overflow-x:hidden;
}

/* ============================================================
   RAIL NAV — fixed vertical rail on the right (class-scoped)
   ============================================================ */
.rail-nav{
  position:fixed;
  top:0;
  right:0;
  width:230px;
  height:100vh;
  background-color:#0C1516;
  border-left:1px solid #203533;
  display:flex;
  flex-direction:column;
  z-index:60;
  overflow-y:auto;
}

.rail-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:28px 24px 20px;
  border-bottom:1px solid #203533;
}

.rail-wordmark{
  font-size:20px;
  font-weight:800;
  letter-spacing:.28em;
  color:#F0F7F5;
}

.rail-links{
  list-style:none;
  margin:0;
  padding:18px 0;
  flex:1;
}

.rail-links li{margin:0}

.rail-links a{
  display:block;
  padding:12px 24px;
  color:#D6E2DF;
  font-size:15px;
  font-weight:600;
  letter-spacing:.04em;
  border-left:2px solid transparent;
  transition:color .18s ease,background-color .18s ease,border-color .18s ease;
}

.rail-links a:hover,
.rail-links a.active{
  color:#F0F7F5;
  border-left-color:#17948F;
  background-color:#132223;
}

.rail-status{
  display:flex;
  align-items:center;
  gap:10px;
  padding:20px 24px 24px;
  color:#93ABA5;
  font-size:12px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.status-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background-color:#17948F;
  animation:statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse{
  0%,100%{box-shadow:0 0 0 0 #17948F}
  50%{box-shadow:0 0 0 8px #0C1516}
}

/* Rail menu button (mobile only) */
.rail-menu-btn{
  display:none;
  margin-left:auto;
  background:none;
  border:1px solid #203533;
  color:#D6E2DF;
  font-size:20px;
  line-height:1;
  width:44px;
  height:44px;
  border-radius:4px;
  cursor:pointer;
}

/* ============================================================
   LAYER-STACK mark (three offset rectangles, pure CSS)
   ============================================================ */
.layer-stack{
  position:relative;
  display:inline-block;
  width:24px;
  height:20px;
  vertical-align:middle;
  flex:0 0 auto;
}

.layer-stack i{
  position:absolute;
  display:block;
  height:6px;
  border-radius:1px;
  background-color:#17948F;
}

.layer-stack i:nth-child(1){left:0;top:0;width:24px}
.layer-stack i:nth-child(2){left:5px;top:7px;width:19px}
.layer-stack i:nth-child(3){left:10px;top:14px;width:14px}

/* Inverted variant for light bands */
.layer-stack.invert i{background-color:#F0F7F5}
.layer-stack.mid i:nth-child(2){background-color:#0C1516}

/* Node dots motif (integration points) */
.node-dots{
  display:inline-flex;
  align-items:center;
  gap:5px;
  vertical-align:middle;
}

.node-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background-color:#17948F;
}

.node-dots span:nth-child(2){background-color:#93ABA5}
.node-dots span:nth-child(3){background-color:#17948F}

/* Pulse-line wave (stepped bars) */
.pulse-wave{
  display:inline-flex;
  align-items:flex-end;
  gap:4px;
  height:22px;
  vertical-align:middle;
}

.pulse-wave span{
  display:block;
  width:5px;
  background-color:#17948F;
}

.pulse-wave span:nth-child(1){height:8px}
.pulse-wave span:nth-child(2){height:16px}
.pulse-wave span:nth-child(3){height:22px}
.pulse-wave span:nth-child(4){height:13px}
.pulse-wave span:nth-child(5){height:19px}
.pulse-wave span:nth-child(6){height:7px}
.pulse-wave span:nth-child(7){height:15px}

/* ============================================================
   BLOCK HERO — full-bleed lagoon-teal band
   ============================================================ */
.block-hero{
  position:relative;
  background-color:#17948F;
  padding:96px 40px 130px;
  text-align:center;
}

.eyebrow-chip{
  display:inline-block;
  background-color:#F0F7F5;
  color:#17948F;
  font-size:12px;
  font-weight:800;
  letter-spacing:.24em;
  text-transform:uppercase;
  padding:9px 18px;
  border-radius:999px;
  margin-bottom:26px;
}

.block-hero h1{
  font-size:56px;
  font-weight:800;
  letter-spacing:-.01em;
  color:#F0F7F5;
  margin:0 0 24px;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.block-hero h1 .hero-dark{
  color:#0C1516;
}

.hero-subcopy{
  max-width:760px;
  margin:0 auto 34px;
  color:#E3F2EF;
  font-size:19px;
  line-height:1.8;
}

.hero-ctas{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  font-weight:700;
  font-size:15px;
  letter-spacing:.04em;
  padding:15px 32px;
  border-radius:6px;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}

.btn:hover{transform:translateY(-2px)}

.btn-primary{
  background-color:#F0F7F5;
  color:#17948F;
}

.btn-primary:hover{background-color:#FFFFFF;color:#0C1516}

.btn-outline{
  background-color:transparent;
  color:#F0F7F5;
  border:2px solid #F0F7F5;
}

.btn-outline:hover{background-color:#F0F7F5;color:#17948F}

.btn-solid{
  background-color:#17948F;
  color:#F0F7F5;
  border:2px solid #17948F;
}

.btn-solid:hover{background-color:#0C1516;border-color:#0C1516;color:#F0F7F5}

/* Decorative layer stack at the hero bottom edge */
.hero-stack{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:460px;
  height:52px;
  pointer-events:none;
}

.hero-stack i{
  position:absolute;
  left:0;
  height:16px;
  border-radius:2px 2px 0 0;
}

.hero-stack i:nth-child(1){bottom:0;width:460px;background-color:#F0F7F5}
.hero-stack i:nth-child(2){bottom:16px;left:34px;width:392px;background-color:#0C1516}
.hero-stack i:nth-child(3){bottom:32px;left:68px;width:324px;background-color:#F0F7F5}

/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
.site-section{
  padding:88px 64px;
  position:relative;
}

.section-head{
  max-width:820px;
  margin-bottom:56px;
}

.section-head.center{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

.section-head h2{
  font-size:38px;
  margin:0 0 20px;
  position:relative;
  display:inline-block;
}

.section-head h2 .h2-underline{
  display:block;
  width:64px;
  height:4px;
  background-color:#17948F;
  border-radius:2px;
  margin-top:14px;
}

.section-head.center h2 .h2-underline{margin-left:auto;margin-right:auto}

.section-lead{
  color:#93ABA5;
  font-size:18px;
  line-height:1.75;
}

/* ============================================================
   SERVICE ROWS (01 / 02 / 03)
   ============================================================ */
.service-rows{
  background-color:#0C1516;
}

.service-row{
  display:flex;
  align-items:flex-start;
  gap:48px;
  padding:52px 0;
  border-bottom:1px solid #203533;
}

.service-row:first-of-type{border-top:1px solid #203533}

.service-row-marker{
  display:flex;
  align-items:center;
  gap:16px;
  width:200px;
  flex:0 0 auto;
}

.service-number{
  font-size:40px;
  font-weight:800;
  color:#17948F;
  line-height:1;
  letter-spacing:.02em;
}

.service-row-body{flex:1}

.service-row-body h3{
  font-size:26px;
  margin:0 0 12px;
  color:#F0F7F5;
}

.service-row-body p{
  color:#D6E2DF;
  font-size:17px;
  margin:0;
  max-width:720px;
}

.service-tags{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
  flex:0 0 auto;
  min-width:170px;
}

.tag-chip{
  display:inline-block;
  background-color:#132223;
  border:1px solid #203533;
  color:#D6E2DF;
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  padding:7px 16px;
  border-radius:999px;
  text-transform:uppercase;
}

/* ============================================================
   LAYER CARD GRID
   ============================================================ */
.layer-grid{
  background-color:#0C1516;
}

.layer-grid-wrap{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.layer-card{
  background-color:#132223;
  border:1px solid #203533;
  border-radius:10px;
  padding:34px 30px;
  transition:transform .2s ease,border-color .2s ease;
}

.layer-card:hover{
  transform:translateY(-6px);
  border-color:#17948F;
}

.layer-card .layer-stack{width:30px;height:24px;margin-bottom:22px}
.layer-card .layer-stack i{height:7px}
.layer-card .layer-stack i:nth-child(1){width:30px}
.layer-card .layer-stack i:nth-child(2){left:6px;width:24px}
.layer-card .layer-stack i:nth-child(3){left:12px;width:18px}

.layer-card h3{
  font-size:22px;
  margin:0 0 12px;
  color:#F0F7F5;
}

.layer-card p{
  color:#D6E2DF;
  font-size:16px;
  margin:0 0 18px;
}

.layer-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
}

.layer-list li{
  color:#93ABA5;
  font-size:14px;
  font-weight:600;
  letter-spacing:.04em;
  display:flex;
  align-items:center;
  gap:8px;
}

.layer-list li::before{
  content:"";
  width:8px;
  height:8px;
  background-color:#17948F;
  flex:0 0 auto;
}

/* ============================================================
   QUOTE ROWS
   ============================================================ */
.quote-rows{
  background-color:#0C1516;
}

.quote-card{
  background-color:#132223;
  border:1px solid #203533;
  border-left:4px solid #17948F;
  padding:34px 40px;
  margin-bottom:20px;
  border-radius:8px;
}

.quote-card:last-child{margin-bottom:0}

.quote-card p{
  color:#D6E2DF;
  font-size:19px;
  font-style:italic;
  line-height:1.75;
  margin:0 0 14px;
}

.quote-name{
  color:#17948F;
  font-size:13px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.quote-role{
  color:#93ABA5;
  font-size:14px;
  margin-top:4px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band{
  background-color:#182B29;
  text-align:center;
  padding:96px 64px;
}

.cta-band h2{
  font-size:40px;
  color:#F0F7F5;
  margin:0 0 18px;
}

.cta-band p{
  color:#93ABA5;
  font-size:18px;
  max-width:640px;
  margin:0 auto 36px;
}

/* ============================================================
   STACK FOOTER
   ============================================================ */
.stack-footer{
  background-color:#0C1516;
  border-top:1px solid #203533;
  padding:60px 40px 48px;
  text-align:center;
}

.stack-footer .layer-stack{width:30px;height:24px;margin-bottom:14px}
.stack-footer .layer-stack i{height:7px}
.stack-footer .layer-stack i:nth-child(1){width:30px}
.stack-footer .layer-stack i:nth-child(2){left:6px;width:24px}
.stack-footer .layer-stack i:nth-child(3){left:12px;width:18px}

.footer-wordmark{
  font-size:24px;
  font-weight:800;
  letter-spacing:.3em;
  color:#F0F7F5;
  margin-bottom:22px;
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 30px;
  margin-bottom:26px;
}

.footer-links a{
  color:#D6E2DF;
  font-size:15px;
  font-weight:600;
  letter-spacing:.04em;
}

.footer-links a:hover{color:#17948F}

.footer-legal{
  color:#93ABA5;
  font-size:14px;
  line-height:1.8;
  margin:0 auto;
  max-width:820px;
}

.footer-legal a{
  color:#93ABA5;
}

.footer-legal a:hover{color:#17948F}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-hero{
  background-color:#17948F;
  padding:80px 64px;
}

.page-hero h1{
  color:#F0F7F5;
  font-size:46px;
  margin:0 0 16px;
}

.page-hero p{
  color:#E3F2EF;
  font-size:18px;
  max-width:640px;
  margin:0;
}

.contact-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:start;
}

.contact-form{
  background-color:#132223;
  border:1px solid #203533;
  border-radius:10px;
  padding:38px 36px;
}

.form-field{margin-bottom:20px}

.form-field label{
  display:block;
  color:#F0F7F5;
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  margin-bottom:8px;
}

.form-field input,
.form-field textarea{
  width:100%;
  background-color:#182B29;
  border:1px solid #203533;
  border-radius:6px;
  color:#D6E2DF;
  font-family:inherit;
  font-size:16px;
  padding:13px 15px;
  transition:border-color .18s ease;
}

.form-field input:focus,
.form-field textarea:focus{
  outline:none;
  border-color:#17948F;
}

.form-field textarea{min-height:150px;resize:vertical}

.form-note{
  color:#93ABA5;
  font-size:14px;
  margin-top:6px;
}

.form-success,
.form-error{
  display:none;
  font-weight:700;
  font-size:15px;
  padding:13px 16px;
  border-radius:6px;
  margin-bottom:18px;
}

.form-success{color:#F0F7F5;background-color:#17948F}
.form-error{color:#F0F7F5;background-color:#B23A3A}

.info-block{
  background-color:#132223;
  border:1px solid #203533;
  border-left:4px solid #17948F;
  border-radius:8px;
  padding:26px 28px;
  margin-bottom:20px;
}

.info-block h3{
  font-size:18px;
  color:#F0F7F5;
  margin:0 0 10px;
}

.info-block p{
  color:#D6E2DF;
  margin:0;
  font-size:16px;
}

.info-block .info-label{
  display:block;
  color:#93ABA5;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.faq-item{
  background-color:#132223;
  border:1px solid #203533;
  border-radius:8px;
  margin-bottom:14px;
  overflow:hidden;
}

.faq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  background:none;
  border:none;
  color:#F0F7F5;
  font-family:inherit;
  font-size:17px;
  font-weight:700;
  text-align:left;
  padding:20px 24px;
  cursor:pointer;
}

.faq-icon{
  color:#17948F;
  font-size:22px;
  transition:transform .2s ease;
}

.faq-item.open .faq-icon{transform:rotate(45deg)}

.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}

.faq-a p{
  color:#D6E2DF;
  padding:0 24px 22px;
  margin:0;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail{
  display:flex;
  gap:36px;
  align-items:flex-start;
  padding:48px 0;
  border-bottom:1px solid #203533;
}

.service-detail:last-of-type{border-bottom:none}

.service-detail-icon{
  flex:0 0 auto;
  width:64px;
  height:64px;
  background-color:#132223;
  border:1px solid #203533;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.service-detail-body{flex:1}

.service-detail-body h2{
  font-size:26px;
  margin:0 0 14px;
  color:#F0F7F5;
}

.service-detail-body h2 .sec-num{
  color:#17948F;
  margin-right:10px;
}

.service-detail-body p{
  color:#D6E2DF;
  font-size:16px;
  max-width:760px;
}

.service-detail-body h3{
  font-size:16px;
  color:#93ABA5;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin:20px 0 8px;
}

.service-detail-body ul{
  margin:0;
  padding-left:0;
  list-style:none;
}

.service-detail-body ul li{
  color:#D6E2DF;
  font-size:15px;
  padding:5px 0 5px 20px;
  position:relative;
}

.service-detail-body ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  width:8px;
  height:8px;
  background-color:#17948F;
}

.process-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:20px;
}

.process-step{
  background-color:#132223;
  border:1px solid #203533;
  border-radius:10px;
  padding:26px 24px;
}

.process-step .step-num{
  color:#17948F;
  font-size:14px;
  font-weight:800;
  letter-spacing:.2em;
}

.process-step h3{
  font-size:18px;
  color:#F0F7F5;
  margin:10px 0 8px;
}

.process-step p{
  color:#D6E2DF;
  font-size:15px;
  margin:0;
}

/* ============================================================
   SCROLL REVEAL (safe without JS)
   ============================================================ */
.fade-up{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease,transform .6s ease;
}

.fade-up.visible{
  opacity:1;
  transform:translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px){
  .service-row{flex-wrap:wrap;gap:20px}
  .service-row-marker{width:auto}
  .service-tags{flex-direction:row;flex-wrap:wrap;align-items:flex-start}
  .process-steps{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  /* Rail collapses to a slim top bar */
  .rail-nav{
    position:static;
    width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    padding:0 16px;
    border-left:none;
    border-bottom:1px solid #203533;
    overflow:visible;
  }

  .rail-brand{
    padding:14px 0;
    border-bottom:none;
  }

  .rail-menu-btn{
    display:block;
  }

  .rail-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background-color:#0C1516;
    border-bottom:1px solid #203533;
    flex-direction:column;
    padding:10px 0;
    z-index:70;
  }

  .rail-links.open{
    display:flex;
  }

  .rail-status{
    display:none;
  }

  .site-frame{
    margin-right:0;
  }

  .block-hero{
    padding:70px 24px 120px;
  }

  .block-hero h1{
    font-size:38px;
  }

  .site-section{
    padding:64px 24px;
  }

  .section-head h2{
    font-size:30px;
  }

  .layer-grid-wrap{
    grid-template-columns:1fr;
  }

  .contact-layout{
    grid-template-columns:1fr;
    gap:36px;
  }

  .page-hero{
    padding:56px 24px;
  }

  .page-hero h1{
    font-size:34px;
  }

  .cta-band{
    padding:64px 24px;
  }

  .cta-band h2{
    font-size:32px;
  }

  .process-steps{
    grid-template-columns:1fr;
  }

  .hero-stack{
    width:300px;
    height:40px;
  }

  .hero-stack i:nth-child(1){width:300px}
  .hero-stack i:nth-child(2){left:22px;width:256px}
  .hero-stack i:nth-child(3){left:44px;width:212px}
}

@media (max-width:520px){
  .block-hero h1{
    font-size:30px;
  }

  .hero-subcopy{
    font-size:17px;
  }

  .service-number{
    font-size:32px;
  }

  .stack-footer{
    padding:48px 24px 36px;
  }

  .footer-links{
    flex-direction:column;
    gap:12px;
  }
}
