/*
Theme Name: Darklayer
Theme URI: https://darklayer.co.uk/
Author: Darklayer
Author URI: https://darklayer.co.uk/
Description: Darklayer - UK-based IT & Cyber Security consultancy theme (dark, fast, lead-driven).
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: darklayer
Tags: dark, custom-background, custom-logo, custom-menu, responsive-layout
*/

/* ===== Tokens ===== */
:root{
  --bg-primary:#0B0F14;
  --bg-secondary:#111827;
  --accent:#38BDF8;
  --success:#22C55E;
  --text:#E5E7EB;
  --muted:#9CA3AF;
  --border:#1f2937;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg-primary);
  color:var(--text);
  line-height:1.6;
}
a{color:var(--text);text-decoration:none}
img{max-width:100%;height:auto}

.container{max-width:1120px;margin:0 auto;padding:0 18px}
.section{padding:72px 0}
.section-tight{padding:48px 0}
.muted{color:var(--muted)}
.small{font-size:13px;color:var(--muted)}
hr{border:0;border-top:1px solid var(--border);opacity:.9}

/* ===== Header / Nav ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,15,20,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.08em;
}
.brand-badge{
  width:34px;height:34px;
  border-radius:12px;
  background:var(--bg-secondary);
  display:grid;
  place-items:center;
  border:1px solid var(--border);
}
.brand-badge svg{width:20px;height:20px;fill:var(--accent)}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.nav-links a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}
.nav-links a:hover,
.nav-links a:focus{
  background:var(--bg-secondary);
  color:var(--text);
}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:700;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent);color:#081018}
.btn-primary:hover{box-shadow:0 0 0 6px rgba(56,189,248,.12)}
.btn-ghost{background:transparent;border-color:var(--border);color:var(--text)}
.btn-ghost:hover{background:var(--bg-secondary)}

/* ===== Hero ===== */
.hero{
  padding:84px 0 56px;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(900px 360px at 80% 10%, rgba(34,197,94,.08), transparent 55%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:22px;
  align-items:start;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
}
.h-eyebrow{display:inline-flex;gap:10px;align-items:center;color:var(--muted)}
.pill{
  border:1px solid var(--border);
  background:rgba(17,24,39,.6);
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
}
.hero h1{font-size:44px;line-height:1.1;margin:14px 0 14px}
@media (max-width:520px){.hero h1{font-size:34px}}
.hero p{margin:0 0 18px;color:var(--muted);max-width:54ch}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

.hero-panel{
  background:linear-gradient(180deg, rgba(17,24,39,.9), rgba(17,24,39,.7));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.kpi{display:grid;grid-template-columns:1fr;gap:12px}
.kpi .item{
  background:rgba(15,23,42,.6);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.kpi strong{display:block;font-size:18px}
.kpi span{color:var(--muted)}

/* ===== Grids / Cards ===== */
.grid{display:grid;gap:16px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:980px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}}

.card{
  background:rgba(17,24,39,.85);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 0 0 rgba(56,189,248,0);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform:translateY(-1px);
  border-color:rgba(56,189,248,.35);
  box-shadow:0 0 0 6px rgba(56,189,248,.08);
}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted)}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(15,23,42,.55);
  color:var(--muted);
  font-weight:600;
}

.tools-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(17,24,39,.6);
}

/* ===== Forms ===== */
.form{
  background:rgba(17,24,39,.85);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}
label{display:block;font-weight:700;margin-top:10px}
input,select,textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0a1220;
  color:var(--text);
  outline:none;
}
textarea{min-height:140px;resize:vertical}
.help{color:var(--muted);font-size:14px;margin-top:6px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){.form-row{grid-template-columns:1fr}}
.notice{
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.08);
  padding:12px 14px;
  border-radius:14px;
  color:var(--text);
}
.notice-error{
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.08);
}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--border);padding:28px 0;color:var(--muted)}
.footer-grid{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}

/* =========================================================
   Mobile Dropdown (Hamburger) Menu
   + Spacing + Better Contrast
   ========================================================= */
.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(17,24,39,.6);
  cursor:pointer;
  padding:10px;
}
.nav-toggle span{
  display:block;
  height:2px;
  margin:6px 0;
  background:var(--text);
  opacity:.95;
  border-radius:2px;
}

/* Desktop */
@media (min-width: 901px){
  .nav-links{display:flex !important;}
  .nav-cta{display:flex !important;}
  .nav-toggle{display:none !important;}
}

/* Mobile */
@media (max-width: 900px){

  /* More breathing room from screen edges */
  .site-header .container{
    padding-left: 22px;
    padding-right: 22px;
  }

  .header-inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
  }

  /* Slightly smaller badge looks cleaner on mobile */
  .brand-badge{
    width: 32px;
    height: 32px;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border: 1px solid rgba(56,189,248,.35);
    background: rgba(17,24,39,.65);
    box-shadow: 0 0 0 4px rgba(56,189,248,.08);
  }

  /* Better contrast for hamburger lines */
  .nav-toggle span{
    background: var(--accent);
  }

  /* Hide menus by default */
  .nav-links,
  .nav-cta{
    display:none;
    width:100%;
  }

  /* Open state */
  .site-header.is-open .header-inner{
    flex-wrap: wrap;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-cta{
    display:flex;
  }

  .site-header.is-open .nav-links{
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .site-header.is-open .nav-links a{
    display:block;
    width:100%;
    text-align:left;
    padding:12px 12px;
    border-radius:12px;
    background: rgba(17,24,39,.45);
    border: 1px solid var(--border);
    color: var(--muted);
  }

  .site-header.is-open .nav-links a:hover{
    color: var(--text);
    background: rgba(17,24,39,.8);
  }

  .site-header.is-open .nav-cta{
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .site-header.is-open .nav-cta .btn{
    width:100%;
    justify-content:center;
  }
}
