/* BitBadger static site — drop-in
   Background: #fafcff
*/

:root{
  /* HERO (header image section) */
  --hero-min-h: 760px;
  --hero-bg-pos: center right;

  /* TECHNOLOGY STRIP ABOVE FOOTER */
  --footer-tech-h: 260px;

  /* MAIN FOOTER IMAGE */
  --footer-h: 100px;


  --bg:#fafcff;
  --ink:#0b1220;
  --muted:#5a6b86;
  --line:rgba(15, 23, 42, 0.14);

  --brand:#2f80ed;           /* button blue */
  --brand-dark:#1f6fd7;
  --nav-bg:#0a0f1a;

  --radius:14px;
  --shadow:0 18px 50px rgba(2, 6, 23, 0.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--ink);
}

/* ===== Header / Nav ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--nav-bg);
  border-bottom: 3px solid rgba(47,128,237,0.9);
}

.nav-wrap{
  max-width: 1180px;
  margin:0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#fff;
  min-width: 200px;
}
.brand-logo{
  height: 70px;
  width:auto;
  display:block;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:40px;
  flex:1;
}

.nav-link{
  color: rgba(255,255,255,0.88);
  text-decoration:none;
  font-weight: 600;
  letter-spacing: 0.2px;
  position:relative;
  padding: 8px 0;
  font-size: 20px;
}
.nav-link:hover{ color:#fff; }
.nav-link.is-active{ color:#fff; }

.nav-cta{ display:flex; justify-content:flex-end; min-width:200px; }

.burger{
  display:none;
  background:transparent;
  border:0;
  padding:10px;
  cursor:pointer;
}
.burger span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:5px 0;
  border-radius:99px;
}

.mobile-drawer{
  max-width: 1180px;
  margin:0 auto;
  padding: 6px 18px 18px;
  display:grid;
  gap:12px;
}
.drawer-link{
  color: rgba(255,255,255,0.9);
  text-decoration:none;
  font-weight:600;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.drawer-link.is-active{ border-color: rgba(47,128,237,0.85); }
.drawer-cta{ width: 100%; justify-content:center; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--brand);
  color:#fff;
  box-shadow: 0 10px 24px rgba(47,128,237,0.28);
}
.btn-primary:hover{ background: var(--brand-dark); }
.btn-lg{ padding: 12px 22px; border-radius: 14px; }

/* ===== Layout Helpers ===== */
.container{
  max-width: 1180px;
  margin:0 auto;
  padding: 0 18px;
}



/* ===== Hero ===== */
.hero{
  position:relative;
  min-height: var(--hero-min-h);
  overflow:hidden;
  background:#050915;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(1200px 520px at 25% 45%, rgba(0,0,0,0.55), rgba(0,0,0,0.80)),
    linear-gradient(to right, rgba(0,0,0,0.86), rgba(0,0,0,0.25)),
    url("/assets/landing.png");
  background-size: cover;
  background-position: var(--hero-bg-pos);
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.hero-inner{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  padding: 72px 18px 84px;
  display:flex;
  align-items:flex-start;
}

.hero-left{
  max-width: 560px;
  color:#fff;
}

.hero-kicker{
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: rgba(47,128,237,0.95);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title{
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 18px;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.hero-sub{
  margin: 0 0 26px;
  color: rgba(255,255,255,0.88);
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 560px;
}

.hero-actions{ display:flex; gap:14px; align-items:center; }

/* ===== Section Head ===== */
.section-head{
  max-width: 920px;
  margin-bottom: 26px;
}
.section-kicker{
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}
.section-title{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
}
.section-sub{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Services ===== */
.services{ background: var(--bg); }
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.service-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.service-icon{
  width: 54px;
  height: 54px;
  object-fit: contain;
  display:block;
  margin-bottom: 10px;
  filter: grayscale(0.1);
}

.service-title{
  margin: 6px 0 8px;
  font-size: 18px;
  color: var(--brand);
}

.service-text{
  margin:0;
  color: var(--ink);
  opacity: 0.86;
  line-height: 1.55;
}

/* ===== Page hero ===== */
.page-hero{
  padding: 20px 0 10px;
}
.page-title{
  margin: 6px 0 10px;
  font-size: 40px;
  line-height: 1.08;
}
.page-sub{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items:start;
}

.contact-panel{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.contact-title{ margin: 0 0 6px; font-size: 22px; }
.contact-sub{ margin: 0 0 16px; color: var(--muted); }

.contact-form{ display:grid; gap: 14px; }
.field{ display:grid; gap:6px; font-weight: 700; color: #172554; }
.field span{ font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.field input, .field textarea{
  border: 1px solid rgba(15,23,42,0.18);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: #fbfdff;
}
.field input:focus, .field textarea:focus{
  border-color: rgba(47,128,237,0.75);
  box-shadow: 0 0 0 4px rgba(47,128,237,0.12);
}

.form-note{ margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.form-note a{ color: var(--brand); text-decoration:none; font-weight: 800; }

.aside-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
  margin-bottom: 16px;
}
.aside-card h3{ margin: 0 0 10px; font-size: 16px; }
.aside-card ul{ margin:0; padding-left: 18px; color: var(--ink); opacity:0.86; }
.aside-card li{ margin: 8px 0; }

/* Honeypot hidden */
.honeypot{ display:none; }

/* ===== Footer Images ===== */
.footer-tech{
  background: #0a0f1a;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-tech img{
  width:100%;
  display:block;
  height: var(--footer-tech-h);
  object-fit: cover;
  opacity: 0.95;
}

.site-footer{
  background: #0a0f1a;
  margin-top: 40px;
}
.site-footer img{
  width:100%;
  display:block;
  height: var(--footer-h);
  object-fit: contain;
}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:block; margin-left:auto; }
  .brand{ min-width:auto; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-inner{ padding: 54px 18px 64px; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 520px; }
  .hero-bg{ background-position: center; }
  .hero-sub{ font-size: 15.5px; }
  .page-title{ font-size: 34px; }
}


/* Footer image sizing on small screens */
@media (max-width: 620px){
  :root{
    --footer-tech-h: clamp(110px, 22vw, 170px);
    --footer-h: clamp(140px, 28vw, 210px);
    --hero-min-h: 520px;
    --hero-bg-pos: center;
  }
}


/* ===== Services Page (services.html) ===== */
.svc-hero{
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.svc-hero-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px 46px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.svc-hero-media{
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.35);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.10);
  background: #fff;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.svc-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.svc-hero-copy{ padding-top: 10px; }

.svc-kicker{
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 900;
  color: rgba(47,128,237,0.95);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.svc-title{
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  color: #0b1220;
}

.svc-sub{
  margin: 0;
  color: rgba(15, 23, 42, 0.78);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 560px;
}

/* .svc-block + .svc-block{ border-top removed per design } */
.svc-block-title{
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  color: #0b1220;
  padding-top: 25px;
}

.svc-group{ margin-top: 20px;}

.svc-group-title{
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  color: #0b1220;
}

.svc-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.svc-grid-2{ grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.svc-grid-3{ grid-template-columns: repeat(3, 1fr); }

.svc-card{
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.35);
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}

.svc-card h3{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  color: #0b1220;
}

.svc-card p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.80);
}

.svc-card ul{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.82);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 768px){
  .svc-hero-inner{ grid-template-columns: 1fr; }
  .svc-hero-media{ max-width: 520px; }
  .svc-grid{ grid-template-columns: repeat(2, 1fr); }
  .svc-grid-3{ grid-template-columns: repeat(2, 1fr); }
  .svc-grid-2{ max-width: none; }
}

@media (max-width: 620px){
  .svc-grid{ grid-template-columns: 1fr; }
  .svc-grid-3{ grid-template-columns: 1fr; }
  .svc-hero-inner{ padding: 34px 18px 36px; }
  .svc-title{ font-size: 42px; }
}


/* Ensure burger/menu never shows on desktop */
@media (min-width: 769px){
  .burger{ display:none !important; }
  .mobile-drawer{ display:none !important; }
  .nav-links, .nav-cta{ display:flex !important; }
}


/* Burger crispness */
.burger span{
  transform: translateZ(0);
}

/* ===== Contact form toast / status ===== */
.toast-wrap{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  background: rgba(10, 15, 26, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(2,6,23,0.35);
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.toast strong{ display:block; font-size: 14px; margin: 0 0 2px; }
.toast p{ margin:0; font-size: 13px; line-height: 1.45; opacity: 0.9; }
.toast .toast-close{
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}
.toast.is-success{ border-color: rgba(47,128,237,0.45); }
.toast.is-error{ border-color: rgba(255, 99, 99, 0.55); }
.btn[disabled]{ opacity: 0.65; cursor: not-allowed; }

.mobile-drawer{
  display:none;
}

.mobile-drawer:not([hidden]){
  display:grid;
}