/*
Theme Name: Stormhold Security
Theme URI: https://www.stormholdsecurity.com/
Author: Stormhold Security
Description: A local-first cybersecurity and private AI systems theme for Stormhold Security.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: stormhold-security
*/

:root {
  --bg: #070707;
  --bg-soft: #111111;
  --panel: rgba(20, 20, 20, 0.88);
  --panel-strong: #171717;
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #c9c9c9;
  --steel: #8d8d8d;
  --gold: #d71920;
  --gold-soft: #ff6268;
  --blue: #ffffff;
  --cyan: #f03a42;
  --green: #f4f4f4;
  --danger: #a50f16;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(135deg, #050505 0%, #111111 48%, #020202 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.screen-reader-text,
.skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  background: var(--gold);
  clip: auto;
  clip-path: none;
  color: #080808;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 999;
}

.site-shell {
  overflow: hidden;
  position: relative;
}

.site-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black 0%, transparent 62%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.wrap {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 1.25rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  min-width: 210px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #050505, var(--gold) 52%, #ffffff);
  border-radius: 15px;
  box-shadow: 0 16px 44px rgba(215, 25, 32, 0.28);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 46px;
}

.brand-text strong {
  color: #080808;
  display: block;
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-text span {
  color: #3a3a3a;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-top: 0.18rem;
  text-transform: uppercase;
}

.custom-logo-link img,
.brand .custom-logo {
  max-height: 58px;
  width: auto;
}

.primary-navigation {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.primary-navigation ul {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #111111;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.58rem 0.84rem;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  border-color: rgba(215, 25, 32, 0.38);
  color: var(--gold);
}

.menu-toggle {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  color: #080808;
  display: none;
  font: inherit;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  background: linear-gradient(135deg, var(--gold), #ff4c55);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(215, 25, 32, 0.3);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  padding: 0.92rem 1.25rem;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  color: var(--cyan);
}

.hero {
  padding: 6.5rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.eyebrow {
  align-items: center;
  color: var(--gold-soft);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.55rem;
  letter-spacing: 0.14em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 0.52rem;
  width: 0.52rem;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(3.15rem, 7.4vw, 6.9rem);
  letter-spacing: -0.07em;
  max-width: 980px;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  letter-spacing: -0.06em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  margin: 0;
}

.lead {
  color: #e4e4e4;
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  margin-top: 1.4rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #eeeeee;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.58rem 0.82rem;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(12, 12, 12, 0.92);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
}

.hero-panel::before {
  background: radial-gradient(circle, rgba(215, 25, 32, 0.28), transparent 58%);
  content: "";
  height: 280px;
  position: absolute;
  right: -100px;
  top: -110px;
  width: 280px;
}

.console {
  background: rgba(5, 5, 5, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.console-top {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
}

.dot {
  background: var(--danger);
  border-radius: 50%;
  height: 0.68rem;
  width: 0.68rem;
}

.dot:nth-child(2) {
  background: var(--gold);
}

.dot:nth-child(3) {
  background: var(--green);
}

.console-body {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.signal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1rem;
}

.signal-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.meter {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 0.55rem;
  margin-top: 0.8rem;
  overflow: hidden;
}

.meter span {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  margin-bottom: 2rem;
}

.section-heading p {
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 1.45rem;
}

.card.highlight {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.2), rgba(255, 255, 255, 0.06)), var(--panel);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p + .tag-list,
.card p + ul {
  margin-top: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: rgba(215, 25, 32, 0.13);
  border: 1px solid rgba(215, 25, 32, 0.24);
  border-radius: 999px;
  color: #fff0f0;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 0.42rem 0.64rem;
}

.check-list {
  color: var(--muted);
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.check-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.72rem 0 0.72rem 1.6rem;
  position: relative;
}

.check-list li::before {
  color: var(--green);
  content: ">";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.feature-wall {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 1rem;
}

.feature-row {
  align-items: center;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-bottom: 0.75rem;
  padding: 1rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.number {
  align-items: center;
  background: rgba(215, 25, 32, 0.14);
  border: 1px solid rgba(215, 25, 32, 0.28);
  border-radius: 18px;
  color: var(--gold-soft);
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.industry-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.industry-tile {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #f5f5f5;
  font-weight: 900;
  min-height: 120px;
  padding: 1rem;
}

.industry-tile span {
  color: var(--gold-soft);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.cta-band {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(215, 25, 32, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 4rem);
}

.cta-band .lead {
  max-width: 780px;
}

.page-hero {
  padding: 5rem 0 3rem;
}

.page-content {
  padding-bottom: 5rem;
}

.entry-content {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.entry-content > * + * {
  margin-top: 1rem;
}

.contact-card a {
  color: var(--gold-soft);
  font-weight: 900;
}

.posts-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.post-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.site-footer {
  background: rgba(5, 5, 5, 0.9);
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.6fr) minmax(220px, 0.6fr);
}

.footer-grid h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.42rem;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--gold-soft);
}

.site-credit {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--steel);
  font-size: 0.88rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    display: none;
    left: 0;
    padding: 1rem 1.25rem;
    position: absolute;
    right: 0;
    top: 84px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    align-items: stretch;
    display: grid;
    gap: 0.4rem;
  }

  .primary-navigation a {
    justify-content: center;
  }

  .hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-text span {
    display: none;
  }

  .grid.two,
  .grid.three,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .industry-tile {
    min-height: auto;
  }

  .hero-actions .button {
    width: 100%;
  }
}
