/*
Theme Name: Warlabs
Theme URI: https://warlabs.io/
Author: Warlabs
Description: Warlabs Offensive Security. Black ground, logo red, structured service pages.
Version: 1.4.4
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: warlabs
*/

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-500.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --bg: #0b0b0b;
  --card: #141414;
  --text: #f4f4f4;
  --muted: #b7b7b7;
  --line: #2c2c2c;
  --red: #e31e26;
  --measure: 44rem;
  --wide: 76rem;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #000;
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(11, 11, 11, 0.94);
  border-bottom: 1px solid var(--line);
}

body.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  border-bottom: 0;
}

.banner {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(90, 8, 12, 0.28) 100%),
    url("assets/banner.jpg") center 42% / cover no-repeat;
}
.banner-copy {
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto 9vh;
}
.banner h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.banner .lede {
  color: #ececec;
  max-width: 34rem;
  font-size: 1.28rem;
}

.mark { display: flex; align-items: center; text-decoration: none; }
.mark img { height: 52px; width: auto; display: block; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0d0d0;
}
.nav-list a:hover,
.nav-list .current-menu-item a,
.nav-list .current_page_item a { color: #fff; }

.sheet {
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, .entry-content h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.accent { color: var(--red); }

.lede, .entry-content > .lede {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.entry-content h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.entry-content h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.entry-content p { margin: 0.7rem 0 0; }
.entry-content .service,
.entry-content .band { margin-top: 4.5rem; }

.button, a.button, .wp-block-button__link {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.15rem;
  border-radius: 4px;
  border: 0;
}
a.button:hover, .wp-block-button__link:hover { background: #c41920; }

.wp-block-columns {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.wp-block-columns.cards,
.cards .wp-block-columns,
.wp-block-columns.points,
.wp-block-columns.steps { grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.steps,
.wp-block-columns.regimes { grid-template-columns: repeat(4, 1fr); }
.wp-block-columns.quotes { grid-template-columns: 1fr 1fr; }
.entry-content .service:first-child { margin-top: 0.25rem; }
.wp-block-column { margin: 0; }

.cards .wp-block-column,
.points .wp-block-column,
.regimes .wp-block-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.45rem;
}
.quotes .wp-block-column {
  border-top: 2px solid var(--red);
  padding-top: 0.4rem;
}
.cards .wp-block-column p,
.points .wp-block-column p,
.steps .wp-block-column p { color: var(--muted); font-size: 0.98rem; }

.steps .wp-block-column {
  border-top: 2px solid var(--red);
  padding-top: 0.9rem;
}
.step-no {
  display: block;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.entry-content ul { max-width: 40rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.entry-content li { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.entry-content li strong { display: block; }

.entry-content .define {
  margin-top: 2.75rem;
  padding: 1.45rem 1.6rem 1.55rem 1.4rem;
  background:
    linear-gradient(90deg, rgba(227, 30, 38, 0.16), rgba(227, 30, 38, 0) 28%),
    var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px;
}
.entry-content .define p {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.6;
}

.placeholder {
  color: var(--muted);
  border-left: 2px solid var(--red);
  padding-left: 0.9rem;
}

.enquiry {
  max-width: 36rem;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.enquiry label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.enquiry input, .enquiry textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem 0;
}
.enquiry textarea { min-height: 8rem; resize: vertical; }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-bottom-color: var(--red); }
.enquiry button {
  justify-self: start;
  margin-top: 0.4rem;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; }
.notice { color: var(--muted); }

.posts { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 40rem; }
.posts li { padding: 1rem 0; border-top: 1px solid var(--line); }
.posts a { text-decoration: none; font-size: 1.45rem; font-weight: 600; }
.posts time { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

.site-footer {
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer p { margin: 0.2rem 0; }
.site-footer .who {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .mark img { height: 42px; }
  .nav-list { justify-content: flex-start; }
  .sheet { width: min(var(--wide), calc(100% - 2rem)); }
  .banner { align-items: flex-end; }
  .banner-copy { margin-bottom: 6vh; width: min(var(--wide), calc(100% - 2rem)); }
  .wp-block-columns.cards,
  .wp-block-columns.points,
  .wp-block-columns.steps,
  .wp-block-columns.regimes,
  .wp-block-columns.quotes { grid-template-columns: 1fr; }
  .site-footer { width: min(var(--wide), calc(100% - 2rem)); }
  h1, .entry-content h1 { max-width: 12ch; }
}
