/* ============================================
   VIRTUS CYBERSECURITY — virtuscybersecurity.com
   Design: Professional cyber. Precision over flash.
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #0a0a0a;
  --bg-card: #151515;
  --green: #4ade80;
  --green-dark: #22c55e;
  --green-muted: rgba(74, 222, 128, 0.12);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: #1f2937;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

/* --- Utility --- */
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-outline:hover {
  background: var(--green-muted);
  color: var(--green);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--green);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo:hover { color: var(--green-dark); }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}
.nav-links a.coming-soon {
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
}

.nav-links .nav-cta {
  background: var(--green);
  color: #0a0a0a;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: var(--green-dark);
  color: #0a0a0a;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Responsive Nav (Desktop) --- */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
  }
}

/* --- Mobile Nav (Full-screen overlay) --- */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.25rem;
    z-index: 150;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.15rem;
  }
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 2rem 5rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--green);
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Credential Badges --- */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.credential-badge {
  background: var(--green-muted);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Section Layout --- */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--green);
  margin-top: 0.5rem;
}

.section-header .lead {
  max-width: 600px;
}

.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

/* --- Service Cards --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--green);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.service-link:hover {
  gap: 0.65rem;
  color: var(--green-dark);
}

/* --- Trust/Credential Cards --- */
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Disclaimer / Legal --- */
.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 2rem 0;
}

/* --- Footer --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-links h4 {
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--green);
}

.footer-contact h4 {
  margin-bottom: 1rem;
}

.footer-contact a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-contact a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-muted);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"],
input[type="submit"] {
  background: var(--green);
  color: #0a0a0a;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 7rem 2rem 3rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  max-width: 640px;
}

/* --- List styles (for service pages) --- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '▸';
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- Table styles --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

/* --- Responsive utilities --- */
@media (max-width: 767px) {
  .hide-mobile { display: none; }
  .section { padding: 3.5rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3.5rem; }
  .cta-section { padding: 3.5rem 1.5rem; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 2rem; }
}

/* --- Blog --- */

/* Blog index card layout */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.blog-card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.blog-card-meta span + span::before {
  content: '\00b7';
  margin: 0 0.5rem;
}

.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.blog-tag {
  background: var(--green-muted);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-excerpt {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.blog-read-more:hover {
  gap: 0.65rem;
  color: var(--green-dark);
}

/* Blog post article typography */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.blog-post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-header h1 {
  margin-bottom: 0.75rem;
}

.blog-post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-post-meta span + span::before {
  content: '\00b7';
  margin: 0 0.5rem;
}

.blog-post h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.blog-post h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-post p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.blog-post ul,
.blog-post ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.blog-post li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Code blocks */
.blog-post pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post pre code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  color: var(--text);
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* Inline code */
.blog-post code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
}

/* Blockquotes */
.blog-post blockquote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.blog-post blockquote p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Blog post back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.blog-back:hover {
  color: var(--green);
}

/* Responsive adjustments for blog */
@media (max-width: 767px) {
  .blog-post {
    padding: 2rem 1.5rem 3.5rem;
  }
  .blog-post pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
}
