/*
Theme Name: Bagen Cyber
Theme URI: https://www.bagencyber.com/
Author: Bagen Cyber Consulting
Description: A high-contrast, editorial WordPress theme for Bagen Cyber Consulting focused on cybersecurity, AI strategy, IT transformation, and executive advisory.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: bagen-cyber
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, blog, accessibility-ready
*/

:root {
  --bc-ink: #0b0e0f;
  --bc-ink-2: #14191b;
  --bc-paper: #f3f0e9;
  --bc-paper-2: #e8e4dc;
  --bc-line: rgba(11,14,15,.16);
  --bc-line-dark: rgba(255,255,255,.14);
  --bc-red: #c92730;
  --bc-red-dark: #8e171d;
  --bc-muted: #666b6d;
  --bc-white: #ffffff;
  --bc-max: 1440px;
  --bc-radius: 0px;
  --bc-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bc-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bc-paper);
  color: var(--bc-ink);
  font-family: var(--bc-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bc-red); }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 48px), var(--bc-max));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #000; display: block;
  height: auto; left: 5px; padding: 12px 16px; top: 5px; width: auto; z-index: 100000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,14,15,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bc-line-dark);
  color: var(--bc-white);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; min-width: max-content; }
.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-name .accent { color: var(--bc-red); }
.brand-tagline {
  font-size: 8px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.custom-logo-link { display: block; max-width: 220px; }
.custom-logo { max-height: 52px; width: auto; }

.primary-nav { justify-self: center; }
.primary-nav ul { list-style: none; display: flex; gap: 34px; padding: 0; margin: 0; }
.primary-nav a { color: rgba(255,255,255,.9); font-size: 14px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--bc-white); }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-motto {
  max-width: 120px;
  border-left: 1px solid rgba(255,255,255,.32);
  padding-left: 24px;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--bc-line-dark);
  background: transparent;
  color: #fff;
  padding: 9px 11px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 5px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.btn::after { content: "→"; }
.btn-primary { background: var(--bc-red); color: #fff; border-color: var(--bc-red); }
.btn-primary:hover { background: #fff; color: var(--bc-ink); border-color: #fff; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.58); }
.btn-outline:hover { background: #fff; color: var(--bc-ink); }
.btn-dark { color: var(--bc-ink); border-color: rgba(11,14,15,.45); }
.btn-dark:hover { background: var(--bc-ink); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11,14,15,.98) 0%, rgba(11,14,15,.96) 46%, rgba(11,14,15,.72) 100%),
    linear-gradient(135deg, #202729, #080a0b);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 560px;
}
.hero-copy { align-self: center; padding: 76px 0 82px; position: relative; z-index: 2; }
.eyebrow {
  display: flex; align-items: center; gap: 15px;
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .27em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--bc-red); }
.hero .eyebrow::before { display: none; }
.hero-title {
  max-width: 800px;
  margin: 0;
  font-family: var(--bc-serif);
  font-size: clamp(52px, 5.8vw, 90px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.hero-title .accent { color: var(--bc-red); }
.hero-lede {
  max-width: 680px;
  margin: 24px 0 28px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
  color: rgba(255,255,255,.78);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { position: relative; overflow: hidden; min-height: 100%; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 92%; height: 140%;
  left: 20%; top: -18%;
  transform: rotate(35deg);
  background: linear-gradient(90deg, #d9d9d5 0 18%, #767a7b 18% 22%, #14191b 22% 43%, var(--bc-red) 43% 58%, #111516 58% 100%);
  opacity: .82;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.hero-visual::after {
  content: "";
  position: absolute;
  right: -4%; bottom: -8%;
  width: 86%; height: 52%;
  clip-path: polygon(0 78%, 15% 59%, 31% 68%, 49% 35%, 65% 53%, 79% 18%, 100% 56%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #606668, #161a1c 70%);
  filter: grayscale(1);
  opacity: .86;
}
.hero-visual-label {
  position: absolute;
  z-index: 3;
  right: 2%; top: 31%;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.58);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.hero-visual-motto {
  position: absolute;
  z-index: 3;
  bottom: 42px; right: 0;
  max-width: 185px;
  padding-top: 15px;
  border-top: 2px solid var(--bc-red);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.capability-strip { background: var(--bc-paper); border-bottom: 1px solid var(--bc-line); }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.capability-item {
  min-height: 98px;
  display: flex; align-items: center; gap: 17px;
  padding: 22px 26px;
  border-right: 1px solid var(--bc-line);
}
.capability-item:first-child { border-left: 1px solid var(--bc-line); }
.capability-number { font-family: var(--bc-serif); font-size: 29px; color: var(--bc-red); }
.capability-title { font-family: var(--bc-serif); font-weight: 700; font-size: 18px; line-height: 1.1; }
.capability-kicker { margin-top: 4px; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--bc-muted); }

.section { padding: 72px 0; }
.section-heading-grid { display: grid; grid-template-columns: .78fr 2.22fr; gap: 48px; }
.section-intro h2,
.market-intro h2,
.cta h2,
.article-header h1 {
  margin: 0;
  font-family: var(--bc-serif);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}
.section-intro p { color: var(--bc-muted); max-width: 370px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--bc-red); font-weight: 700; font-size: 13px; }
.text-link::after { content: "→"; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--bc-line); }
.service-card {
  min-height: 230px;
  padding: 34px 36px;
  border-right: 1px solid var(--bc-line);
  background: rgba(255,255,255,.18);
}
.service-card:last-child { border-right: 0; }
.service-card.is-dark { background: var(--bc-ink); color: #fff; }
.service-card .card-index { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--bc-red); }
.service-card h3 { margin: 33px 0 12px; font-family: var(--bc-serif); font-size: 26px; line-height: 1.1; }
.service-card p { margin: 0 0 18px; color: var(--bc-muted); font-size: 14px; }
.service-card.is-dark p { color: rgba(255,255,255,.7); }

.process-section { border-top: 1px solid var(--bc-line); border-bottom: 1px solid var(--bc-line); }
.process-grid { display: grid; grid-template-columns: .9fr repeat(4,1fr); gap: 0; }
.process-intro { padding-right: 50px; }
.process-intro h2 { margin: 0; font-family: var(--bc-serif); font-weight: 400; font-size: 42px; line-height: 1; }
.process-step { padding: 0 28px; border-left: 1px solid var(--bc-line); }
.process-step .num { display: flex; gap: 18px; align-items: center; font-family: var(--bc-serif); font-size: 31px; }
.process-step .num::after { content:""; height:1px; flex:1; background: var(--bc-line); }
.process-step h3 { margin: 9px 0 4px; font-family: var(--bc-serif); font-size: 20px; }
.process-step p { margin: 0; color: var(--bc-muted); font-size: 13px; }

.market-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(105deg, #0b0e0f 0 67%, #252b2d 67% 100%);
}
.market-section::after {
  content:"";
  position:absolute; right:-2%; bottom:-1px;
  width: 40%; height: 100%;
  background: linear-gradient(145deg, transparent 0 44%, rgba(201,39,48,.65) 44% 52%, transparent 52% 100%);
  opacity:.65;
}
.market-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; gap: 0; }
.market-intro { padding-right: 56px; }
.market-intro h2 { font-size: clamp(36px, 3.5vw, 55px); }
.market-card { border-left: 1px solid var(--bc-line-dark); padding: 18px 44px; }
.market-card h3 { font-family: var(--bc-serif); font-size: 21px; margin: 0 0 10px; }
.market-card p { color: rgba(255,255,255,.68); margin: 0 0 16px; font-size: 13px; }

.insights-grid { display: grid; grid-template-columns: .78fr 2.22fr; gap: 48px; }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card { background: rgba(255,255,255,.48); border: 1px solid var(--bc-line); }
.post-card-image { aspect-ratio: 16/7; background: var(--bc-ink); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .3s ease, filter .3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); filter: grayscale(.45); }
.post-card-placeholder {
  width:100%;height:100%;
  background:
    linear-gradient(130deg, transparent 0 34%, rgba(255,255,255,.32) 34% 36%, transparent 36% 47%, var(--bc-red) 47% 52%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.07) 40px 41px),
    #111516;
}
.post-card-body { padding: 22px; }
.post-card-meta { font-size: 9px; font-weight: 800; letter-spacing: .2em; color: var(--bc-red); text-transform: uppercase; }
.post-card h3 { margin: 9px 0 13px; font-family: var(--bc-serif); font-size: 22px; line-height: 1.08; }
.post-card time { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); }

.proof-band { background: var(--bc-ink); color: #fff; border-top: 1px solid var(--bc-line-dark); }
.proof-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.proof-message, .proof-point { padding: 42px 36px; border-right: 1px solid var(--bc-line-dark); }
.proof-message:first-child { padding-left: 0; }
.proof-message h2 { margin: 0; font-family: var(--bc-serif); font-size: 37px; font-weight: 400; line-height: 1.05; }
.proof-point strong { display: block; font-family: var(--bc-serif); font-size: 29px; font-weight: 400; margin-bottom: 8px; }
.proof-point span { color: rgba(255,255,255,.62); font-size: 12px; }

.cta { background: linear-gradient(90deg, var(--bc-red-dark), var(--bc-red)); color: #fff; }
.cta-inner { min-height: 128px; display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: center; gap: 52px; }
.cta h2 { font-size: clamp(37px, 3.5vw, 54px); }
.cta p { margin:0; color: rgba(255,255,255,.78); }
.cta .btn { background: #fff; color: var(--bc-ink); border-color:#fff; }
.cta .btn:hover { background: transparent; color:#fff; }

.site-footer { background: #0a0d0e; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 42px; padding: 54px 0; }
.footer-brand p { max-width: 310px; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-title { margin: 0 0 14px; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-nav ul { margin:0; padding:0; list-style:none; }
.footer-nav li { margin: 8px 0; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.74); font-size: 13px; }
.footer-contact p { margin: 7px 0; color: rgba(255,255,255,.74); font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--bc-line-dark); padding: 20px 0 26px; display:flex; justify-content:space-between; gap:20px; color: rgba(255,255,255,.43); font-size: 11px; }

.content-shell { background: var(--bc-paper); min-height: 60vh; padding: 72px 0; }
.article-header { max-width: 920px; margin-bottom: 34px; }
.article-header .entry-meta { color: var(--bc-muted); margin-top: 12px; font-size: 13px; }
.entry-content { max-width: 900px; font-family: var(--bc-serif); font-size: 20px; line-height: 1.72; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height:1.15; margin-top: 1.8em; }
.entry-content a { color: var(--bc-red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content pre { overflow:auto; background:#111; color:#f7f7f7; padding:20px; font-size:14px; }
.entry-content blockquote { border-left: 3px solid var(--bc-red); margin-left:0; padding-left:24px; color:#3f4445; }
.pagination, .nav-links { margin-top: 40px; display:flex; gap:12px; flex-wrap:wrap; }
.page-numbers, .post-page-numbers { border:1px solid var(--bc-line); padding:8px 12px; }
.page-numbers.current { background:var(--bc-ink); color:#fff; }

.archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.archive-card { border:1px solid var(--bc-line); background:#fff9; }
.archive-card .post-card-body { min-height:190px; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns:auto auto 1fr; }
  .primary-nav { display:none; position:absolute; top:82px; left:0; right:0; background:#0b0e0f; border-top:1px solid var(--bc-line-dark); }
  .primary-nav.is-open { display:block; }
  .primary-nav ul { flex-direction:column; gap:0; padding:16px 24px 24px; }
  .primary-nav a { display:block; padding:12px 0; }
  .menu-toggle { display:block; justify-self:start; }
  .header-actions { justify-self:end; }
  .header-motto { display:none; }
  .hero-inner { grid-template-columns:1fr .72fr; }
  .section-heading-grid, .insights-grid { grid-template-columns:1fr; }
  .service-grid { grid-template-columns:1fr 1fr; }
  .service-card:nth-child(2) { border-right:0; }
  .service-card:nth-child(-n+2) { border-bottom:1px solid var(--bc-line); }
  .process-grid { grid-template-columns:1fr 1fr; gap:34px 0; }
  .process-intro { grid-column:1/-1; padding:0; }
  .market-grid { grid-template-columns:1fr 1fr; row-gap:32px; }
  .market-intro { grid-column:1/-1; }
  .posts-grid { grid-template-columns:1fr 1fr; }
  .proof-grid { grid-template-columns:1fr 1fr; }
  .proof-message { grid-column:1/-1; border-bottom:1px solid var(--bc-line-dark); }
  .cta-inner { grid-template-columns:1fr auto; padding:28px 0; }
  .cta p { grid-column:1/-1; grid-row:2; }
  .footer-main { grid-template-columns:1.3fr 1fr 1fr; }
  .footer-contact { grid-column:1/-1; border-top:1px solid var(--bc-line-dark); padding-top:28px; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top:46px; }
  .container { width:min(calc(100% - 32px), var(--bc-max)); }
  .header-inner { min-height:72px; gap:14px; }
  .brand-name { font-size:17px; }
  .brand-tagline { display:none; }
  .header-actions .btn { display:none; }
  .primary-nav { top:72px; }
  .hero-inner { grid-template-columns:1fr; }
  .hero-copy { padding:64px 0 54px; }
  .hero-title { font-size:clamp(48px,14vw,68px); }
  .hero-visual { min-height:260px; border-top:1px solid var(--bc-line-dark); }
  .hero-visual::before { left: 6%; }
  .hero-visual-motto { right:16px; }
  .capability-grid { grid-template-columns:1fr 1fr; }
  .capability-item:nth-child(odd) { border-left:1px solid var(--bc-line); }
  .capability-item { border-bottom:1px solid var(--bc-line); }
  .section { padding:54px 0; }
  .service-grid, .posts-grid, .archive-grid { grid-template-columns:1fr; }
  .service-card { border-right:0; border-bottom:1px solid var(--bc-line); }
  .service-card:last-child { border-bottom:0; }
  .process-grid { grid-template-columns:1fr; }
  .process-step { padding:24px 0; border-left:0; border-top:1px solid var(--bc-line); }
  .market-grid { grid-template-columns:1fr; }
  .market-intro { grid-column:auto; padding-right:0; }
  .market-card { border-left:0; border-top:1px solid var(--bc-line-dark); padding:28px 0 0; }
  .proof-grid { grid-template-columns:1fr; }
  .proof-message, .proof-point { grid-column:auto; border-right:0; border-bottom:1px solid var(--bc-line-dark); padding:28px 0; }
  .cta-inner { grid-template-columns:1fr; gap:18px; padding:34px 0; }
  .cta p { grid-column:auto; grid-row:auto; }
  .cta .btn { justify-self:start; }
  .footer-main { grid-template-columns:1fr 1fr; }
  .footer-brand, .footer-contact { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
}
