/*
Theme Name: ITSecOps.cloud
Theme URI: https://itsecops.cloud/
Author: ITSecOps.cloud
Author URI: https://itsecops.cloud/
Description: Lean, fast classic WordPress theme for ITSecOps.cloud — Seamless Security. Unwavering Support. Hand-tuned dark-teal aesthetic, modular sections, child-page support for guides under /compliance.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://itsecops.cloud/
Text Domain: itsecops
Tags: cybersecurity, classic, dark, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ========================================================================
   Tokens / global reset.
   Page-specific styles live in assets/css/sections.css (loaded only on
   pages that need them) so the homepage stays light.
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Background system */
  --bg-main: #07110F;
  --bg-soft: #050f0d;
  --bg-elev: #0C1A18;
  --bg-hover: #14302B;
  --bg-deep: #040a09;

  /* Panel / card */
  --panel: #0F211E;
  --panel-soft: #14302B;
  --panel-2: #14302B;
  --panel-3: #0F211E;
  --panel-glass: rgba(125, 205, 201, 0.06);

  /* Accent */
  --accent-light: #8FE6E0;
  --accent-soft: #74DAD3;
  --accent-mid: #67D3CC;
  --accent-strong: #4FC2BB;
  --accent-dark: #3FA8A1;
  --accent-deep: #2E807B;
  --accent-darker: #256B66;

  /* Text */
  --text-main: #EAEAEA;
  --text-soft: #CFCFCF;
  --text-muted: #9A9A9A;
  --text-dim: #7A7A7A;
  --text-invert: #121212;

  /* Borders */
  --border-subtle: rgba(103, 211, 204, 0.18);
  --border-strong: #3FA8A1;

  /* Status */
  --success: #3FA8A1;
  --warning: #FFB84D;
  --error: #FF6B6B;
  --info: #4DA3FF;

  /* Glow */
  --glow-soft: rgba(103, 211, 204, 0.15);
  --glow-mid: rgba(103, 211, 204, 0.25);
  --glow-strong: rgba(103, 211, 204, 0.45);

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #67D3CC, #3FA8A1);
  --gradient-2: linear-gradient(135deg, #67D3CC, #4DA3FF);
  --gradient-3: linear-gradient(135deg, #2E807B, #67D3CC);

  /* Aliases */
  --bg: var(--bg-main);
  --bg-2: var(--bg-elev);
  --accent: var(--accent-mid);
  --accent-glow: var(--glow-strong);
  --brand: var(--accent-mid);
  --brand-2: var(--accent-dark);
  --brand-deep: var(--accent-deep);
  --brand-glow: var(--glow-strong);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --border: var(--border-subtle);
  --ok: var(--success);

  /* Typography */
  --font: "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

/* Container — used everywhere */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== Background canvas + grid (loaded once, site-wide) ===== */
#bg-canvas {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(103, 211, 204, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(168, 224, 221, .14), transparent 60%),
    linear-gradient(180deg, #050f0d 0%, #07110F 60%, #040a09 100%);
}

.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 211, 204, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 211, 204, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
}

/* ===== Header (every page) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(10, 13, 24, .55);
  border-bottom: 1px solid var(--border-subtle);
  transition: all .3s ease;
}
.site-header.scrolled { background: rgba(7, 10, 20, .85); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: 1320px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--panel);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative; overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.brand-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.brand b { background: linear-gradient(90deg, #fff, var(--accent-mid)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { color: var(--accent-dark); }

.primary-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.primary-nav a {
  padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--text-muted);
  font-weight: 500; transition: all .25s ease; position: relative; display: inline-block;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_ancestor > a { color: #fff; background: rgba(103, 211, 204, .08); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--gradient-1);
  color: var(--text-invert);
  box-shadow: 0 8px 24px var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: none; cursor: pointer;
}
.cta-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-dark));
  box-shadow: 0 12px 36px var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: rgba(103, 211, 204, .08); color: #fff; border: 1px solid var(--border-subtle);
  transition: all .25s ease; cursor: pointer;
}
.cta-ghost:hover { background: rgba(103, 211, 204, .15); border-color: var(--border-strong); }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* Section heads — used everywhere */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; color: var(--accent-mid);
  padding: 5px 12px; border: 1px solid rgba(103, 211, 204, .3); border-radius: 100px;
  background: rgba(103, 211, 204, .06); margin-bottom: 16px;
}
.section-head h1, .section-head h2 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-head h2 .grad,
.section-head h1 .grad,
.grad {
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { color: var(--text-soft); font-size: 17px; line-height: 1.6; }

section { padding: 100px 0; position: relative; }

/* Reveal-on-scroll baseline */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Footer (every page) ===== */
.site-footer {
  padding: 60px 0 30px; border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 20, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot h5 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-main); margin-bottom: 16px; font-family: var(--mono); }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.foot a:hover { color: var(--accent-mid); }
.foot-office { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(103, 211, 204, .08); }
.foot-office:first-of-type { margin-top: 6px; }
.foot-office-flag { font-size: 18px; line-height: 1; margin-top: 1px; flex-shrink: 0; }
.foot-office strong { color: var(--text-soft); font-weight: 600; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.foot-office a { font-size: 13px; }
.foot-brand p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(103, 211, 204, .06); border: 1px solid var(--border-subtle);
  display: grid; place-items: center; color: var(--text-muted); transition: all .25s ease;
}
.socials a:hover { background: rgba(103, 211, 204, .15); color: var(--accent-mid); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; border-top: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 13px;
}

/* Responsive — global */
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { padding: 14px 20px; gap: 12px; }
  .cta-btn { padding: 9px 16px; font-size: 13px; }
  .brand { font-size: 16px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .foot { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav { padding: 12px 14px; gap: 8px; }
  .nav .cta-btn { padding: 7px 11px; font-size: 11px; gap: 4px; white-space: nowrap; }
  .brand-logo { width: 40px; height: 40px; }
  .brand b { font-size: 15px; }
}

/* WordPress core helper classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 12px 18px; background: var(--accent-mid); color: var(--text-invert);
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }


/* === Reveal fallback for guide template (theme.js IntersectionObserver doesn't add .in to .guide-body/.guide-siblings/.guide-bottom-cta) === */
.guide-body.reveal:not(.in),
.guide-siblings.reveal:not(.in),
.guide-bottom-cta.reveal:not(.in) {
	animation: revealFallback 0.7s ease-out 0.6s forwards;
}
@keyframes revealFallback {
	to { opacity: 1; transform: none; }
}
