/*
Theme Name: Gray Man Cyber
Theme URI: https://graymancyber.com
Author: Gray Man Cyber
Description: Custom theme for Gray Man Cyber, an industrial cybersecurity education and consulting firm. Built as a lightweight, dependency-free classic theme editable with the core WordPress block editor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicensed (private use)
Text Domain: graymancyber
*/

/* -------------------------------------------------
   Design tokens
------------------------------------------------- */
:root {
  --bg: #12151a;
  --bg-alt: #1a1f27;
  --bg-panel: #1e242d;
  --border: #2a323d;
  --text: #eef1f5;
  --text-muted: #9aa5b3;
  --accent-red: #c0392b;
  --accent-red-bright: #e0503f;
  --accent-blue: #2f93b5;
  --accent-blue-bright: #3fb0d6;
  --max-width: 1180px;
  --radius: 10px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

/* -------------------------------------------------
   Reset / base
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue-bright); text-decoration: none; }
a:hover { color: var(--accent-red-bright); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue-bright);
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-bright));
  color: #06141a;
}
.btn-primary:hover { color: #06141a; background: var(--accent-blue-bright); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-red-bright); color: var(--text); }

/* -------------------------------------------------
   Header / nav
------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
}
.brand:hover { color: var(--text); }
.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-menu > li {
  position: relative;
}
.primary-menu > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
}
.primary-menu > li > a:hover { background: var(--bg-panel); color: var(--text); }
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li.menu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.primary-menu .sub-menu a:hover { background: var(--bg-alt); color: var(--text); }
.primary-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background: linear-gradient(180deg, rgba(12,14,18,0.55), rgba(12,14,18,0.92)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero .container { position: relative; z-index: 2; max-width: 820px; }
.hero-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* smaller hero used on interior pages */
.page-hero {
  position: relative;
  padding: 120px 0 64px;
  background: linear-gradient(180deg, rgba(12,14,18,0.7), rgba(12,14,18,0.96)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.page-hero .lede { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 17px; }

/* -------------------------------------------------
   Sections / generic layout
------------------------------------------------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.alt-bg { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); }
.feature-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(47,147,181,0.15);
  color: var(--accent-blue-bright);
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* services teaser cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,21,26,0.15), rgba(12,14,18,0.96));
}
.service-card-body { position: relative; z-index: 2; padding: 32px; }
.service-card .eyebrow { margin-bottom: 8px; }
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.service-card .link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 14.5px; }
.service-card .link-arrow::after { content: " \2192"; }

/* about teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-teaser blockquote {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--accent-red);
  padding-left: 20px;
}
.about-teaser .quote-attr { color: var(--text-muted); font-size: 14.5px; }
.about-teaser .quote-attr strong { color: var(--text); display: block; font-size: 15px; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; }

/* -------------------------------------------------
   Page content (About / Education / Consulting / etc.)
------------------------------------------------- */
.page-content-wrap { padding: 80px 0; }
.page-content {
  max-width: 760px;
  margin: 0 auto;
}
.page-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.page-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.page-content p, .page-content li { color: var(--text-muted); font-size: 17px; }
.page-content strong { color: var(--text); }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.1em; list-style: disc; }
.page-content blockquote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent-red);
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text);
}
.page-content img { border-radius: var(--radius); margin: 1.5em 0; }
.page-content .wp-block-buttons { margin-top: 1.5em; }
.page-content a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 14.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* -------------------------------------------------
   Responsive
------------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .about-teaser { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-menu {
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  .primary-menu.is-open { transform: translateX(0); }
  .primary-menu > li > a { padding: 14px 12px; font-size: 17px; }
  .primary-menu .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    display: none;
    margin: 4px 0 8px 12px;
  }
  .primary-menu li.menu-open .sub-menu { display: block; }
  .primary-menu .menu-item-has-children > a::after { float: right; margin-top: 6px; }
  .hero { padding: 120px 0 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
