/* ============================================================
   EJMJunkin — Computer Systems Design and Integration
   Light sunflower theme
   ============================================================ */

:root{
  --cream:#FAF7F0;
  --ink:#2A2418;
  --sunflower:#E9B44C;
  --mist:#F2EADA;
  --slate:#6E6553;
  --line:#E4DAC4;
  --white:#FFFFFF;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-size:16px;
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif;
  line-height:1.7;
  background-color:#FAF7F0;
  color:#2A2418;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block;}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 48px;
}

/* ---------------- Right vertical rail navigation ---------------- */

.rail-nav{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:92px;
  background-color:#FAF7F0;
  border-left:1px solid #E4DAC4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding:28px 0 24px;
  z-index:200;
}

.rail-nav.rail-scrolled{
  box-shadow:-8px 0 0 #F2EADA;
}

.rail-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
}

.rail-word{
  writing-mode:vertical-rl;
  text-orientation:upright;
  font-size:13px;
  font-weight:700;
  letter-spacing:6px;
  color:#E9B44C;
  text-transform:uppercase;
}

.rail-links{
  display:flex;
  flex-direction:column;
  gap:22px;
  align-items:center;
}

.rail-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  text-decoration:none;
  font-size:12px;
  color:#6E6553;
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:600;
}

.rail-dot{
  width:8px;
  height:8px;
  background-color:#E4DAC4;
  display:block;
}

.rail-link.active{
  color:#E9B44C;
  font-weight:800;
}

.rail-link.active .rail-dot{
  background-color:#E9B44C;
}

.rail-cta{
  width:48px;
  height:48px;
  background-color:#E9B44C;
  color:#2A2418;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:2px;
}

.rail-toggle{
  display:none;
  border:none;
  background:transparent;
  cursor:pointer;
}

/* Content sits to the left of the fixed rail */
.main-content{
  margin-right:92px;
}

/* ---------------- Buttons ---------------- */

.btn{
  display:inline-block;
  padding:15px 32px;
  border-radius:6px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  border:none;
  cursor:pointer;
  line-height:1.3;
}

.btn-primary{
  background-color:#E9B44C;
  color:#2A2418;
}

.btn-primary:hover{
  background-color:#E2A93B;
}

.btn-outline{
  background-color:#FFFFFF;
  color:#2A2418;
  border:1px solid #E9B44C;
}

.btn-outline:hover{
  background-color:#F2EADA;
}

.btn-ink{
  background-color:#2A2418;
  color:#F2EADA;
}

.btn-ink:hover{
  background-color:#3B3326;
}

/* ---------------- Three-column hero ---------------- */

.trio-hero{
  padding:84px 0 76px;
}

.trio-grid{
  display:grid;
  grid-template-columns:1fr 1.55fr 1fr;
  gap:44px;
  align-items:center;
}

.stack-graphic{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding-top:18px;
}

.stack-box{
  display:block;
  border-radius:2px;
}

.stack-box.sunflower{
  width:48px;
  height:48px;
  background-color:#E9B44C;
}

.stack-box.mist{
  width:40px;
  height:40px;
  background-color:#F2EADA;
  border:1px solid #E4DAC4;
  margin-right:22px;
}

.stack-box.ink{
  width:32px;
  height:32px;
  background-color:#2A2418;
  margin-left:22px;
}

.eyebrow{
  display:inline-block;
  background-color:#E9B44C;
  color:#2A2418;
  font-size:12px;
  font-weight:800;
  letter-spacing:1.5px;
  text-transform:uppercase;
  padding:7px 16px;
  border-radius:22px;
  margin-bottom:22px;
}

.hero-title{
  font-size:46px;
  line-height:1.12;
  color:#2A2418;
  font-weight:800;
  margin:0 0 18px;
  letter-spacing:-0.5px;
}

.hero-sub{
  font-size:18px;
  line-height:1.75;
  color:#6E6553;
  max-width:540px;
  margin-bottom:28px;
}

.hero-ctas{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:26px;
}

.hero-trust{
  font-size:13px;
  color:#6E6553;
  letter-spacing:0.5px;
}

.check-graphic{
  display:flex;
  flex-direction:column;
  gap:26px;
  align-items:center;
  padding-top:18px;
}

.check-item{
  display:flex;
  align-items:center;
}

.check-square{
  width:16px;
  height:16px;
  background-color:#E9B44C;
  flex:0 0 16px;
}

.check-bar{
  width:90px;
  height:14px;
  background-color:#F2EADA;
  border:1px solid #E4DAC4;
  border-radius:3px;
}

/* ---------------- Generic sections ---------------- */

.section{
  padding:74px 0;
}

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

.section-kicker{
  display:block;
  font-size:13px;
  font-weight:800;
  letter-spacing:2px;
  color:#E9B44C;
  text-transform:uppercase;
  margin-bottom:12px;
}

.section-title{
  font-size:34px;
  line-height:1.22;
  color:#2A2418;
  font-weight:800;
  margin-bottom:16px;
  letter-spacing:-0.3px;
}

.section-intro{
  font-size:17px;
  color:#6E6553;
  margin-bottom:14px;
  max-width:760px;
}

/* ---------------- Card grid ---------------- */

.card-grid{
  padding:74px 0;
}

.grid-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.card{
  background-color:#FFFFFF;
  border:1px solid #E4DAC4;
  padding:30px;
  border-radius:4px;
  transition:border-color .25s ease, transform .25s ease;
}

.card:hover{
  border-color:#E9B44C;
  transform:translateY(-4px);
}

.card-icon{
  width:24px;
  height:24px;
  background-color:#E9B44C;
  margin-bottom:20px;
  border-radius:2px;
}

.card-title{
  font-size:19px;
  font-weight:800;
  color:#2A2418;
  margin-bottom:10px;
}

.card p{
  font-size:15px;
  line-height:1.75;
  color:#6E6553;
}

/* ---------------- Metric band ---------------- */

.metric-band{
  background-color:#E9B44C;
  padding:54px 0;
}

.metrics{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
}

.metric-item{
  flex:1;
  text-align:center;
  padding:10px 18px;
  border-right:1px solid #FAF7F0;
}

.metric-item:last-child{
  border-right:none;
}

.metric-num{
  font-size:40px;
  font-weight:800;
  color:#2A2418;
  display:inline-block;
  letter-spacing:-0.5px;
}

.metric-suffix{
  font-size:40px;
  font-weight:800;
  color:#2A2418;
}

.metric-label{
  display:block;
  margin-top:6px;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  color:#2A2418;
  text-transform:uppercase;
}

/* ---------------- Statement band ---------------- */

.statement-band{
  background-color:#F2EADA;
  padding:78px 0;
}

.statement-text{
  font-size:30px;
  line-height:1.32;
  font-weight:800;
  color:#2A2418;
  max-width:840px;
  margin-bottom:20px;
  letter-spacing:-0.3px;
}

.statement-sub{
  font-size:16px;
  color:#6E6553;
  max-width:680px;
  margin-bottom:16px;
}

/* ---------------- CTA band ---------------- */

.cta-band{
  background-color:#E9B44C;
  padding:68px 0;
}

.cta-title{
  font-size:34px;
  font-weight:800;
  color:#2A2418;
  max-width:760px;
  margin-bottom:16px;
  letter-spacing:-0.3px;
}

.cta-text{
  font-size:17px;
  color:#2A2418;
  max-width:680px;
  margin-bottom:28px;
}

/* ---------------- Two-column wide footer ---------------- */

.two-col-footer{
  background-color:#FAF7F0;
  border-top:1px solid #E4DAC4;
  padding:60px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:3fr 2fr;
  gap:44px;
}

.footer-left{
  border-right:1px solid #E4DAC4;
  padding-right:44px;
}

.footer-brand{
  font-size:24px;
  font-weight:800;
  color:#2A2418;
  letter-spacing:1px;
  margin-bottom:14px;
}

.footer-blurb{
  font-size:15px;
  color:#6E6553;
  max-width:540px;
  margin-bottom:18px;
}

.footer-copy{
  font-size:13px;
  color:#6E6553;
}

.footer-right{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding-top:4px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 26px;
}

.footer-links a{
  font-size:15px;
  font-weight:700;
  color:#2A2418;
  text-decoration:none;
}

.footer-links a:hover{
  color:#6E6553;
}

.footer-contact{
  font-size:14px;
  color:#6E6553;
  word-break:break-word;
}

.footer-legal{
  margin-top:40px;
  padding-top:22px;
  border-top:1px solid #E4DAC4;
  text-align:center;
  font-size:13px;
  color:#6E6553;
}

.footer-legal a{
  color:#6E6553;
  text-decoration:underline;
}

/* ---------------- Secondary page hero ---------------- */

.page-title-hero{
  background-color:#F2EADA;
  padding:80px 0 60px;
}

.page-breadcrumb{
  font-size:13px;
  font-weight:800;
  letter-spacing:2px;
  color:#E9B44C;
  text-transform:uppercase;
  margin-bottom:14px;
}

.page-title{
  font-size:42px;
  line-height:1.15;
  color:#2A2418;
  font-weight:800;
  max-width:820px;
  margin-bottom:18px;
  letter-spacing:-0.4px;
}

.page-lede{
  font-size:18px;
  line-height:1.75;
  color:#6E6553;
  max-width:720px;
}

/* ---------------- Services page ---------------- */

.service-block{
  padding:58px 0;
  border-bottom:1px solid #E4DAC4;
}

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

.service-num{
  display:block;
  font-size:14px;
  font-weight:800;
  letter-spacing:1px;
  color:#E9B44C;
  margin-bottom:8px;
}

.service-block-title{
  font-size:28px;
  font-weight:800;
  color:#2A2418;
  margin-bottom:16px;
}

.service-block p{
  font-size:16px;
  color:#6E6553;
  max-width:840px;
  margin-bottom:14px;
}

.process-head{
  margin-bottom:36px;
}

.process-list{
  list-style:none;
}

.process-list li{
  display:flex;
  gap:20px;
  padding:20px 0;
  border-top:1px solid #E4DAC4;
}

.process-list li:last-child{
  border-bottom:1px solid #E4DAC4;
}

.process-num{
  flex:0 0 38px;
  height:38px;
  background-color:#E9B44C;
  color:#2A2418;
  font-weight:800;
  font-size:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
}

.process-body strong{
  color:#2A2418;
  display:block;
  margin-bottom:4px;
  font-size:17px;
}

.process-body p{
  font-size:15px;
  color:#6E6553;
  max-width:760px;
}

/* ---------------- Contact page ---------------- */

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

.contact-form-panel{
  background-color:#FFFFFF;
  border:1px solid #E4DAC4;
  padding:34px;
  border-radius:4px;
}

.form-title{
  font-size:22px;
  font-weight:800;
  color:#2A2418;
  margin-bottom:22px;
}

.form-row{
  display:flex;
  flex-direction:column;
  margin-bottom:18px;
}

.form-row label{
  font-size:14px;
  font-weight:700;
  color:#2A2418;
  margin-bottom:7px;
}

.form-row input,
.form-row textarea{
  font-size:16px;
  padding:12px 14px;
  border:1px solid #E4DAC4;
  background-color:#FAF7F0;
  color:#2A2418;
  border-radius:4px;
  font-family:inherit;
}

.form-row input:focus,
.form-row textarea:focus{
  outline:none;
  border-color:#E9B44C;
}

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

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

.contact-side{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.contact-card{
  background-color:#FFFFFF;
  border:1px solid #E4DAC4;
  padding:24px;
  border-radius:4px;
}

.contact-card h3{
  font-size:16px;
  font-weight:800;
  color:#2A2418;
  margin-bottom:8px;
}

.contact-card p{
  font-size:15px;
  color:#6E6553;
  word-break:break-word;
}

.contact-card a{
  color:#2A2418;
  font-weight:700;
}

/* FAQ accordion */
.faq-list{
  margin-top:16px;
}

.faq-item{
  background-color:#FFFFFF;
  border:1px solid #E4DAC4;
  border-radius:4px;
  margin-bottom:12px;
}

.faq-item.open{
  border-color:#E9B44C;
}

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

.faq-icon{
  color:#E9B44C;
  font-size:22px;
  font-weight:800;
  line-height:1;
}

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

.faq-a p{
  font-size:15px;
  color:#6E6553;
  padding:0 20px 20px;
  max-width:760px;
}

.faq-item.open .faq-a{
  max-height:400px;
}

/* ---------------- Scroll reveal ---------------- */

.fade-up{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .6s ease, transform .6s ease;
}

.fade-up.visible{
  opacity:1;
  transform:none;
}

/* ---------------- Responsive ---------------- */

@media(max-width:1000px){
  .grid-cards{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:900px){
  .container{
    padding:0 22px;
  }

  .main-content{
    margin-right:0;
  }

  .rail-nav{
    position:relative;
    width:100%;
    height:auto;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    border-left:none;
    border-bottom:1px solid #E4DAC4;
    padding:14px 18px;
  }

  .rail-nav.rail-scrolled{
    box-shadow:0 6px 0 #F2EADA;
  }

  .rail-word{
    writing-mode:horizontal-tb;
    letter-spacing:2px;
  }

  .rail-cta{
    width:42px;
    height:42px;
    font-size:10px;
  }

  .rail-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:8px;
  }

  .rail-toggle span{
    width:22px;
    height:2px;
    background-color:#2A2418;
  }

  .rail-links{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background-color:#FAF7F0;
    border-bottom:1px solid #E4DAC4;
    flex-direction:column;
    gap:0;
    display:none;
    z-index:210;
  }

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

  .rail-link{
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:15px 22px;
    border-top:1px solid #E4DAC4;
    width:100%;
  }

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

  .hero-left,
  .hero-right{
    display:none;
  }

  .hero-title{
    font-size:34px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .footer-left{
    border-right:none;
    padding-right:0;
    border-bottom:1px solid #E4DAC4;
    padding-bottom:26px;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:640px){
  .grid-cards{
    grid-template-columns:1fr;
  }

  .metrics{
    flex-direction:column;
    gap:30px;
  }

  .metric-item{
    border-right:none;
    border-bottom:1px solid #FAF7F0;
    padding-bottom:24px;
  }

  .metric-item:last-child{
    border-bottom:none;
  }

  .statement-text{
    font-size:24px;
  }

  .hero-ctas .btn{
    width:100%;
    text-align:center;
  }
}
