/* =========================================================
   J&M Consulting — Managed IT & Cybersecurity
   Shared design system
   ========================================================= */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:#081120;
  color:#ffffff;
  line-height:1.6;
  overflow-x:hidden;
}

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

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:90%;
  max-width:1280px;
  margin:auto;
}

/* ---------- HEADER / NAV ---------- */

header{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
  background:#ffffff;
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(8,17,32,.08);
}

nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
}

.logo-wrapper{
  display:flex;
  align-items:center;
}

.logo-link{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-icon{
  height:72px;
  width:auto;
}

.logo-text{
  height:30px;
  width:auto;
}

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

.nav-links a{
  color:#081120;
  font-weight:500;
  transition:.3s;
}

.nav-links a:hover,
.nav-links a.active{
  color:#1ec8ff;
}

/* ---------- MOBILE NAV TOGGLE ---------- */

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:46px;
  height:46px;
  padding:10px;
  background:transparent;
  border:none;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  height:3px;
  width:100%;
  background:#081120;
  border-radius:3px;
  transition:transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2){
  opacity:0;
}

.nav-toggle.open span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

/* ---------- BUTTONS ---------- */

.primary-btn{
  background:#1ec8ff;
  color:#081120 !important;
  padding:14px 24px;
  border-radius:14px;
  font-weight:700;
  display:inline-block;
  transition:.3s;
  border:none;
  cursor:pointer;
  font-size:1rem;
}

.primary-btn:hover{
  transform:translateY(-2px);
  background:#55d7ff;
}

.secondary-btn{
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  padding:14px 24px;
  border-radius:14px;
  font-weight:600;
  display:inline-block;
  transition:.3s;
}

.secondary-btn:hover{
  border-color:#1ec8ff;
  color:#1ec8ff;
}

/* ---------- HERO ---------- */

.hero{
  min-height:92vh;
  display:flex;
  align-items:center;
  padding:150px 0 110px;
  background:
    linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2000&auto=format&fit=crop') center/cover;
}

/* Smaller hero for interior pages */
.hero.hero-page{
  min-height:auto;
  padding:200px 0 110px;
}

.hero-content{
  max-width:780px;
}

.hero-badge{
  display:inline-block;
  padding:10px 18px;
  background:rgba(30,200,255,.12);
  border:1px solid rgba(30,200,255,.25);
  border-radius:999px;
  color:#7edfff;
  margin-bottom:28px;
  font-size:.95rem;
}

.hero h1{
  font-size:4.2rem;
  line-height:1.05;
  margin-bottom:24px;
  font-weight:800;
}

.hero p{
  font-size:1.18rem;
  color:#c6d5ef;
  max-width:700px;
  margin-bottom:38px;
}

.hero-buttons{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.hero-stats{
  display:flex;
  gap:48px;
  margin-top:58px;
  flex-wrap:wrap;
}

.hero-stat h3{
  color:#1ec8ff;
  font-size:2rem;
}

.hero-stat p{
  margin:0;
  font-size:.95rem;
  color:#c6d5ef;
}

/* Per-page hero background images */
.hero-services{background:linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2000&auto=format&fit=crop') center/cover;}
.hero-security{background:linear-gradient(rgba(8,17,32,.9),rgba(8,17,32,.97)),url('https://images.unsplash.com/photo-1510511459019-5dda7724fd87?q=80&w=2000&auto=format&fit=crop') center/cover;}
.hero-industries{background:linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2000&auto=format&fit=crop') center/cover;}
.hero-voip{background:linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=2000&auto=format&fit=crop') center/cover;}
.hero-infrastructure{background:linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2000&auto=format&fit=crop') center/cover;}
.hero-contact{background:linear-gradient(rgba(8,17,32,.86),rgba(8,17,32,.95)),url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?q=80&w=2000&auto=format&fit=crop') center/cover;}

/* ---------- SECTIONS ---------- */

.section{
  padding:110px 0;
}

.section.tight{
  padding:80px 0;
}

.section.alt{
  background:#0d1729;
}

.section-title{
  text-align:center;
  margin-bottom:64px;
}

.section-title h2{
  font-size:2.9rem;
  margin-bottom:18px;
}

.section-title p{
  color:#9fb0cc;
  max-width:760px;
  margin:auto;
  font-size:1.08rem;
}

/* ---------- GRID + CARDS ---------- */

.grid{
  display:grid;
  gap:30px;
}

.services-grid{
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
}

.card{
  background:#101b31;
  padding:38px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.06);
  transition:.35s;
}

.card:hover{
  transform:translateY(-8px);
  border-color:#1ec8ff;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.icon{
  width:68px;
  height:68px;
  border-radius:20px;
  background:rgba(30,200,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  margin-bottom:22px;
}

.card h3{
  font-size:1.45rem;
  margin-bottom:14px;
}

.card p{
  color:#b8c8e2;
}

/* ---------- SPLIT SECTION ---------- */

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:66px;
  align-items:center;
}

.split img{
  border-radius:28px;
  width:100%;
  object-fit:cover;
}

.split h2{
  font-size:2.8rem;
  margin-bottom:24px;
}

.split p{
  color:#b8c8e2;
  font-size:1.05rem;
  margin-bottom:18px;
}

.features{
  margin-top:34px;
  display:grid;
  gap:22px;
}

.feature{
  display:flex;
  gap:18px;
  align-items:flex-start;
}

.check{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#1ec8ff;
  color:#081120;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  flex-shrink:0;
}

.feature h4{
  margin-bottom:6px;
  font-size:1.1rem;
}

.feature p{
  color:#b8c8e2;
  margin:0;
}

/* ---------- SECURITY CARDS (with lists) ---------- */

.security-grid{
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}

.security-card ul{
  list-style:none;
  margin-top:20px;
}

.security-card li{
  margin-bottom:12px;
  color:#d6e2f7;
  padding-left:24px;
  position:relative;
}

.security-card li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:#1ec8ff;
  font-weight:700;
}

/* ---------- INDUSTRIES ---------- */

.industry-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.industry{
  background:#101b31;
  border-radius:24px;
  padding:36px;
  text-align:center;
  border:1px solid rgba(255,255,255,.06);
  transition:.35s;
}

.industry:hover{
  transform:translateY(-6px);
  border-color:#1ec8ff;
}

.industry .icon{
  margin:0 auto 18px;
}

.industry h3{
  margin-bottom:12px;
}

.industry p{
  color:#b8c8e2;
}

/* ---------- INDUSTRY IMAGE CARDS ---------- */

.industry-cards{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.industry-image-card{
  border-radius:24px;
  overflow:hidden;
  background:#101b31;
  border:1px solid rgba(255,255,255,.06);
  transition:.35s;
}

.industry-image-card:hover{
  transform:translateY(-6px);
  border-color:#1ec8ff;
}

.industry-image-card img{
  height:200px;
  width:100%;
  object-fit:cover;
}

.industry-image-card .body{
  padding:28px;
}

.industry-image-card h3{
  margin-bottom:10px;
  font-size:1.3rem;
}

.industry-image-card p{
  color:#b8c8e2;
}

/* ---------- PROCESS / STEPS ---------- */

.process-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.step{
  background:#101b31;
  border-radius:24px;
  padding:36px;
  border:1px solid rgba(255,255,255,.06);
}

.step-num{
  width:52px;
  height:52px;
  border-radius:16px;
  background:#1ec8ff;
  color:#081120;
  font-weight:800;
  font-size:1.3rem;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:22px;
}

.step h3{
  margin-bottom:12px;
  font-size:1.3rem;
}

.step p{
  color:#b8c8e2;
}

/* ---------- STATS ---------- */

.stats{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.stat{
  background:#101b31;
  border-radius:24px;
  padding:40px;
  text-align:center;
}

.stat h3{
  font-size:3rem;
  color:#1ec8ff;
  margin-bottom:10px;
}

.stat p{
  color:#b8c8e2;
}

/* ---------- THREATS ---------- */

.threat-grid{
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

.threat-card{
  background:#101b31;
  border-radius:24px;
  padding:38px;
  text-align:center;
  border:1px solid rgba(255,255,255,.06);
}

.threat-card .icon{
  margin:0 auto 18px;
}

.threat-card h3{
  margin-bottom:12px;
}

.threat-card p{
  color:#b8c8e2;
}

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

.cta{
  background:linear-gradient(135deg,#009dff,#1ec8ff);
  border-radius:36px;
  padding:80px 60px;
  text-align:center;
}

.cta h2{
  font-size:3rem;
  margin-bottom:20px;
}

.cta p{
  max-width:740px;
  margin:0 auto 36px;
  font-size:1.12rem;
}

.cta .primary-btn{
  background:#fff;
}

.cta .primary-btn:hover{
  background:#eaf7ff;
}

/* ---------- CONTACT ---------- */

.contact-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:40px;
  align-items:start;
}

.contact-card{
  background:#101b31;
  border-radius:28px;
  padding:42px;
  border:1px solid rgba(255,255,255,.06);
}

.contact-card h2{
  font-size:1.8rem;
  margin-bottom:26px;
}

.contact-card form{
  display:grid;
  gap:18px;
}

.contact-card input,
.contact-card textarea{
  width:100%;
  background:#0b1525;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  padding:15px 16px;
  color:#fff;
  font-family:inherit;
  font-size:1rem;
  transition:.25s;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder{
  color:#6f80a0;
}

.contact-card input:focus,
.contact-card textarea:focus{
  outline:none;
  border-color:#1ec8ff;
}

.contact-card textarea{
  min-height:150px;
  resize:vertical;
}

.contact-info p{
  margin-bottom:18px;
  color:#c6d5ef;
}

.contact-info strong{
  color:#fff;
  display:block;
  margin-bottom:2px;
}

/* ---------- FOOTER ---------- */

footer{
  padding:80px 0 40px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#0a1422;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

footer h4{
  margin-bottom:20px;
  font-size:1.15rem;
}

footer ul{
  list-style:none;
}

footer li{
  margin-bottom:12px;
  color:#b8c8e2;
}

footer a:hover{
  color:#1ec8ff;
}

.footer-about{
  color:#b8c8e2;
}

.copyright{
  text-align:center;
  margin-top:56px;
  color:#8091b0;
}

/* ---------- RESPONSIVE ---------- */

@media(max-width:960px){

  .hero{
    min-height:auto;
    padding:140px 0 80px;
  }

  .hero h1{
    font-size:2.8rem;
  }

  .section-title h2,
  .split h2,
  .cta h2{
    font-size:2.2rem;
  }

  .split{
    grid-template-columns:1fr;
    gap:40px;
  }

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

  .nav-toggle{
    display:flex;
  }

  nav{
    flex-wrap:wrap;
  }

  /* Nav links collapse into a tap-to-open dropdown panel */
  .nav-links{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    width:100%;
    order:3;
    padding:12px 0 6px;
    margin-top:8px;
    border-top:1px solid rgba(8,17,32,.08);
  }

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

  .nav-links a{
    padding:14px 8px;
    border-radius:10px;
  }

  .nav-links a:hover,
  .nav-links a.active{
    background:rgba(30,200,255,.10);
  }

  .nav-links .primary-btn{
    text-align:center;
    margin-top:6px;
  }

  .logo-icon{
    height:58px;
  }

  .logo-text{
    height:24px;
  }

  .cta{
    padding:60px 28px;
  }

}

/* ---------- PHONES ---------- */

@media(max-width:600px){

  .hero{
    padding:120px 0 70px;
  }

  .hero.hero-page{
    padding:140px 0 70px;
  }

  .hero h1{
    font-size:2.1rem;
  }

  .hero p{
    font-size:1.05rem;
  }

  .hero-buttons{
    gap:12px;
  }

  .hero-buttons .primary-btn,
  .hero-buttons .secondary-btn{
    width:100%;
    text-align:center;
  }

  .hero-stats{
    gap:28px;
    margin-top:42px;
  }

  .section{
    padding:70px 0;
  }

  .section.tight{
    padding:54px 0;
  }

  .section-title{
    margin-bottom:44px;
  }

  .section-title h2,
  .split h2,
  .cta h2{
    font-size:1.85rem;
  }

  .card,
  .industry,
  .step,
  .threat-card,
  .contact-card{
    padding:28px;
  }

  .cta{
    padding:48px 22px;
    border-radius:26px;
  }

}
