/* ===========================================================================
   I.E.D LLC — "We're the BOMB"
   Palette: black + electric blue + signal red. Dark, high-impact, explosive.
   =========================================================================== */

:root {
  --black:      #0a0b0e;
  --black-2:    #101218;
  --surface:    #14171f;
  --surface-2:  #1b1f29;
  --line:       #262b38;

  --blue:       #2f6fe6;
  --blue-bright:#4d8bff;
  --blue-glow:  rgba(47, 111, 230, 0.45);

  --red:        #e21f29;
  --red-bright: #ff3b44;
  --red-glow:   rgba(226, 31, 41, 0.45);

  --white:      #f6f8fc;
  --mute:       #aab3c5;
  --mute-2:     #6e7689;

  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1200px;

  --font-head: "Google Sans", "Google Sans Flex", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Google Sans Flex", "Google Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --shadow:     0 18px 50px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--mute); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }

/* Utility ----------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-bright);
  padding: 7px 15px; border-radius: 100px;
  background: rgba(47,111,230,0.10); border: 1px solid rgba(47,111,230,0.30);
}
.eyebrow.red { color: var(--red-bright); background: rgba(226,31,41,0.10); border-color: rgba(226,31,41,0.30); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.grad-text { background: linear-gradient(100deg, var(--blue-bright), var(--red-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-red { color: var(--red-bright); }
.text-blue { color: var(--blue-bright); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--mute); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--red));
  box-shadow: 0 10px 30px var(--blue-glow), 0 4px 14px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--blue-glow), 0 8px 22px var(--red-glow); }
.btn-ghost {
  color: var(--white); background: transparent;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }

/* Header / Nav ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: #ffffff; border-bottom-color: rgba(0,0,0,0.10); box-shadow: 0 6px 24px rgba(0,0,0,0.10); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.brand img { height: 76px; width: auto; }
.brand .brand-tag { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.brand .brand-name { font-size: 1.05rem; letter-spacing: .02em; line-height: 1; color: #0a0b0e; }
.brand .brand-name .text-blue { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  color: #0a0b0e; padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: rgba(47,111,230,0.10); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: .92rem; }
.nav-cta .btn-ghost { color: #0a0b0e; border-color: rgba(0,0,0,0.18); }
.nav-cta .btn-ghost:hover { color: var(--blue); border-color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #0a0b0e; border-radius: 4px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(47,111,230,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(226,31,41,0.22), transparent 55%),
    linear-gradient(180deg, rgba(10,11,14,0.55), rgba(10,11,14,0.92));
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.hero .lead { font-size: 1.25rem; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 46px; }
.hero-strip .stat { }
.hero-strip .stat b { font-family: var(--font-head); font-size: 1.7rem; color: var(--white); display: block; }
.hero-strip .stat span { font-size: .85rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .1em; }

/* Decorative hex grid backdrop */
.hex-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5;
}

/* Sections ---------------------------------------------------------------- */
.pad { padding: 96px 0; }
.pad-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 16px 0 14px; }

/* Cards / grids ----------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--black-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,111,230,0.5); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47,111,230,0.18), rgba(226,31,41,0.18));
  border: 1px solid var(--line);
}
.card .ic svg { width: 26px; height: 26px; color: var(--blue-bright); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue-bright); font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover::after { transform: scaleX(1); }

/* Service detail blocks --------------------------------------------------- */
.svc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 54px 0; border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-media { order: -1; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row h3 { font-size: 1.8rem; margin: 14px 0; }
.svc-num { font-family: var(--font-head); font-size: .85rem; letter-spacing: .2em; color: var(--red-bright); }

/* Gallery ----------------------------------------------------------------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); }
.gallery .g-item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(8,9,12,0.92));
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery .g-item:hover .g-cap { opacity: 1; transform: none; }
.gallery .g-cap small { display: block; color: var(--blue-bright); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center;
  background: linear-gradient(120deg, rgba(47,111,230,0.16), rgba(226,31,41,0.16)); border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, var(--blue-glow), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 56ch; margin: 0 auto 28px; }

/* Forms ------------------------------------------------------------------- */
.form-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.field { margin-bottom: 18px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 8px; color: var(--white); }
label .req { color: var(--red-bright); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--white);
  background: var(--black-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--mute-2); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,230,0.18); }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aab3c5' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }

.alert { padding: 15px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; }
.alert-ok { background: rgba(47,111,230,0.12); border: 1px solid rgba(47,111,230,0.4); color: var(--blue-bright); }
.alert-err { background: rgba(226,31,41,0.12); border: 1px solid rgba(226,31,41,0.4); color: var(--red-bright); }

.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--blue-bright); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list b { font-family: var(--font-head); display: block; color: var(--white); }
.info-list span { color: var(--mute); font-size: .95rem; }

/* Jobs -------------------------------------------------------------------- */
.job-list { display: grid; gap: 18px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; transition: border-color .25s; }
.job:hover { border-color: rgba(47,111,230,0.5); }
.job-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; margin-bottom: 12px; }
.job h3 { font-size: 1.35rem; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--mute-2); font-family: var(--font-head); }
.job-meta b { color: var(--blue-bright); font-weight: 500; }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state p { max-width: 46ch; margin: 10px auto 0; }

/* About ------------------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value b { font-family: var(--font-head); color: var(--white); font-size: 1.1rem; display: block; margin-bottom: 8px; }

/* Local / GEO ------------------------------------------------------------- */
.geo-band { background: var(--black-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { font-family: var(--font-head); font-size: .85rem; padding: 8px 14px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); color: var(--mute); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); margin-bottom: 18px; }
.footer-grid a { color: var(--mute); display: block; padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--blue-bright); }
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand .tag { color: var(--red-bright); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--mute); transition: .25s; }
.social a:hover { color: #fff; border-color: var(--blue); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute-2); font-size: .85rem; }

/* Admin ------------------------------------------------------------------- */
.admin-shell { max-width: 940px; margin: 0 auto; padding: 40px 22px 80px; }
.login-card { max-width: 400px; margin: 8vh auto; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { font-family: var(--font-head); color: var(--mute-2); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.badge { font-size: .72rem; padding: 4px 10px; border-radius: 100px; font-family: var(--font-head); }
.badge.open { background: rgba(47,111,230,.15); color: var(--blue-bright); }
.badge.closed { background: rgba(226,31,41,.15); color: var(--red-bright); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-danger { background: rgba(226,31,41,.14); color: var(--red-bright); border: 1px solid rgba(226,31,41,.4); }
.btn-danger:hover { background: var(--red); color: #fff; }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-wrap, .about-hero, .geo-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 24px; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; padding: 16px 22px 24px;
    background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.10); box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  }
  .nav-links.open a { padding: 14px; font-size: 1.05rem; }
  .pad { padding: 64px 0; }
  .grid-3, .grid-2, .values { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .field.row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { columns: 1; }
  .hero { min-height: 86vh; }
}
