/* ==========================================================================
   CJMCM Properties LLC — main stylesheet
   Computer Systems Design and Related Services
   Dark aubergine-violet theme: #0E0A12 base, #F0EAF4 text, #6E4A8A accent,
   #1A1322 panels, #B9A9C6 muted, #2A1E33 hairlines.
   ========================================================================== */

:root{
  --bg: #0E0A12;
  --panel: #1A1322;
  --panel-deep: #100B16;
  --text: #F0EAF4;
  --muted: #B9A9C6;
  --accent: #6E4A8A;
  --accent-soft: #7D56A0;
  --hairline: #2A1E33;
  --radius: 10px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a{
  color: var(--accent);
}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4{
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}

.section-head{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-head .eyebrow{
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-head h2{
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 14px;
}

.section-head p{
  color: var(--muted);
  font-size: 17px;
  max-width: 840px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Hero-embedded navigation (.hero-nav)
   NOTE: styled with class selectors only; the nav is never sticky or fixed.
   -------------------------------------------------------------------------- */

.hero-nav{
  border-bottom: 1px solid var(--hairline);
}

.hero-nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.6px;
  color: var(--accent);
  text-decoration: none;
}

.brand:hover{
  color: var(--text);
}

.nav-links{
  display: flex;
  align-items: center;
}

.nav-links a{
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  position: relative;
}

.nav-links a:hover{
  color: var(--text);
}

.nav-links a.active{
  color: var(--text);
}

.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.hero-nav .hairline{
  width: 1px;
  height: 14px;
  background: var(--hairline);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Text-only stat hero (.stat-hero)
   -------------------------------------------------------------------------- */

.stat-hero{
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 66%);
}

.hero-content{
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 28px 48px;
}

.eyebrow-chip{
  display: inline-block;
  background: var(--accent);
  color: #F0EAF4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}

.hero-content h1{
  font-size: clamp(46px, 6vw, 66px);
  line-height: 1.06;
  max-width: 920px;
  margin-top: 28px;
  color: var(--text);
}

.hero-sub{
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 780px;
  margin-top: 26px;
}

.hero-note{
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
  margin-top: 18px;
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: var(--radius);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-primary{
  background: var(--accent);
  color: #F0EAF4;
}

.btn-primary:hover{
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-outline{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover{
  background: var(--accent);
  color: #F0EAF4;
}

.btn-dark{
  background: #0E0A12;
  color: #F0EAF4;
  border: 1px solid #0E0A12;
}

.btn-dark:hover{
  background: var(--panel);
  border-color: var(--panel);
  transform: translateY(-2px);
}

/* Stat strip inside the hero */

.stat-strip{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell{
  padding: 28px 30px;
}

.stat-cell + .stat-cell{
  border-left: 1px solid var(--hairline);
}

.stat-num{
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
}

.stat-label{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Ledger table (.ledger-table)
   -------------------------------------------------------------------------- */

.ledger-section{
  background: var(--panel-deep);
  padding: 96px 0;
}

.ledger-section .section-head p{
  max-width: 860px;
}

.ledger-note{
  color: var(--muted);
  font-size: 16px;
  max-width: 860px;
  margin-top: 22px;
  padding: 0 28px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.ledger-table{
  max-width: 1180px;
  margin: 52px auto 0;
  padding: 0 28px;
  border-top: 1px solid var(--hairline);
}

.ledger-row{
  display: grid;
  grid-template-columns: 72px 280px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 8px;
  border-bottom: 1px solid var(--hairline);
}

.ledger-index{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.ledger-name{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}

.ledger-desc{
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.ledger-chip{
  background: var(--accent);
  color: #F0EAF4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Metric band (.metric-band)
   -------------------------------------------------------------------------- */

.metric-band{
  background: var(--accent);
  padding: 72px 0;
}

.metric-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell{
  padding: 10px 30px;
}

.metric-cell + .metric-cell{
  border-left: 1px solid #0E0A12;
}

.metric-num{
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  color: #F0EAF4;
}

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

/* --------------------------------------------------------------------------
   Statement band (.statement-band)
   -------------------------------------------------------------------------- */

.statement-band{
  background: var(--panel);
  padding: 96px 0;
}

.statement-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.statement-line{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text);
  max-width: 860px;
}

.statement-support{
  color: var(--muted);
  font-size: 17px;
  max-width: 840px;
  margin-top: 24px;
}

.statement-support + .statement-support{
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   CTA band (.cta-band)
   -------------------------------------------------------------------------- */

.cta-band{
  background: var(--accent);
  padding: 92px 0;
  text-align: center;
}

.cta-inner{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

.cta-band h2{
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  color: #F0EAF4;
}

.cta-support{
  color: #F0EAF4;
  font-size: 17px;
  max-width: 720px;
  margin: 18px auto 0;
}

.cta-band .btn-dark{
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   Centered stack footer (.stack-footer)
   -------------------------------------------------------------------------- */

.stack-footer{
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 72px 28px 60px;
  text-align: center;
}

.footer-brand{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.6px;
  color: var(--accent);
  text-decoration: none;
}

.footer-blurb{
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 16px auto 0;
}

.footer-links{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.footer-links a{
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover{
  color: var(--accent);
}

.footer-dot{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hairline);
}

.footer-legal{
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal a{
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover{
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Secondary page hero (.page-hero)
   -------------------------------------------------------------------------- */

.page-hero{
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 70%);
}

.page-hero-content{
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 28px 88px;
}

.page-hero-content h1{
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.1;
  max-width: 840px;
  margin-top: 26px;
  color: var(--text);
}

.page-hero-sub{
  color: var(--muted);
  font-size: 18px;
  max-width: 780px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Services page blocks (.services-section / .service-block)
   -------------------------------------------------------------------------- */

.services-section{
  background: var(--panel-deep);
  padding: 96px 0;
}

.service-block{
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
}

.service-block + .service-block{
  border-top: 1px solid var(--hairline);
}

.service-num{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.service-body h2{
  font-size: 25px;
  color: var(--text);
}

.service-body p{
  color: var(--muted);
  font-size: 16px;
  max-width: 840px;
  margin-top: 14px;
}

.service-body ul{
  margin-top: 14px;
  padding-left: 20px;
}

.service-body li{
  color: var(--muted);
  font-size: 15.5px;
  margin: 6px 0;
}

.service-body li strong{
  color: var(--text);
}

/* Process overview (.process-section) */

.process-section{
  background: var(--panel);
  padding: 96px 0;
}

.process-steps{
  max-width: 1180px;
  margin: 52px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step{
  background: var(--panel-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.process-step-num{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent);
}

.process-step h3{
  font-size: 18px;
  color: var(--text);
  margin-top: 12px;
}

.process-step p{
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Contact page (.contact-section)
   -------------------------------------------------------------------------- */

.contact-section{
  background: var(--panel-deep);
  padding: 96px 0;
}

.contact-grid{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
}

.contact-info .eyebrow{
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.contact-info h2{
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 14px;
}

.contact-info .contact-intro{
  color: var(--muted);
  font-size: 16px;
  margin-top: 16px;
}

.info-block{
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.info-block h3{
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}

.info-block p,
.info-block a{
  color: var(--muted);
  font-size: 15.5px;
  text-decoration: none;
  display: block;
  margin-top: 8px;
}

.info-block a:hover{
  color: var(--text);
}

.contact-form{
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 42px 40px;
}

.contact-form h3{
  font-size: 22px;
  color: var(--text);
}

.form-group{
  margin-top: 22px;
}

.form-group label{
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus{
  outline: none;
  border-color: var(--accent);
}

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

.form-status{
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
}

/* FAQ accordion (.faq-section) */

.faq-section{
  background: var(--panel);
  padding: 96px 0;
}

.faq-list{
  max-width: 860px;
  margin: 48px auto 0;
  padding: 0 28px;
}

.faq-item{
  border-top: 1px solid var(--hairline);
}

.faq-item:last-child{
  border-bottom: 1px solid var(--hairline);
}

.faq-question{
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 24px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover{
  color: var(--accent);
}

.faq-icon{
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  flex: 0 0 auto;
}

.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p{
  color: var(--muted);
  font-size: 16px;
  padding: 0 4px 26px;
  max-width: 780px;
}

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

/* --------------------------------------------------------------------------
   Scroll reveal (fade-up) — safe without JavaScript
   -------------------------------------------------------------------------- */

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

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

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

@media (max-width: 980px){
  .stat-strip,
  .metric-inner{
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:nth-child(3),
  .metric-cell:nth-child(3){
    border-left: 0;
  }

  .stat-cell:nth-child(n + 3),
  .metric-cell:nth-child(n + 3){
    border-top: 1px solid var(--hairline);
  }

  .metric-cell:nth-child(n + 3){
    border-top: 1px solid #0E0A12;
  }

  .ledger-row{
    grid-template-columns: 48px 1fr;
    gap: 14px 20px;
  }

  .ledger-desc{
    grid-column: 2;
    grid-row: 2;
  }

  .ledger-chip{
    grid-column: 2;
    justify-self: start;
    grid-row: 3;
  }

  .process-steps{
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px){
  .nav-toggle{
    display: flex;
  }

  .nav-links{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border-top: 1px solid var(--hairline);
    padding: 10px 28px 18px;
    z-index: 50;
  }

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

  .nav-links a{
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links a:last-child{
    border-bottom: 0;
  }

  .nav-links a.active::after{
    display: none;
  }

  .nav-links a.active{
    color: var(--accent);
  }

  .hero-nav .hairline{
    display: none;
  }

  .stat-strip,
  .metric-inner{
    grid-template-columns: 1fr;
  }

  .stat-cell + .stat-cell,
  .metric-cell + .metric-cell{
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .metric-cell + .metric-cell{
    border-top: 1px solid #0E0A12;
  }

  .hero-content{
    padding-top: 64px;
  }

  .hero-content h1{
    font-size: clamp(40px, 11vw, 52px);
  }

  .ledger-row{
    grid-template-columns: 1fr;
    padding: 28px 4px;
  }

  .ledger-index,
  .ledger-desc,
  .ledger-chip{
    grid-column: 1;
  }

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

  .service-block{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form{
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  .fade-up{
    opacity: 1;
    transform: none;
    transition: none;
  }

  html{
    scroll-behavior: auto;
  }
}
