/*
Theme Name: Nexfortress
Description: Custom theme for Nexfortress Consulting — virtual CISO, security & IT consulting.
Author: Nexfortress
Version: 1.1
Text Domain: nexfortress
*/

:root {
  --bg: oklch(0.98 0.004 260);
  --bg-panel: oklch(0.94 0.006 260);
  --border: oklch(0.82 0.01 260);
  --border-soft: oklch(0.82 0.01 260 / 0.7);
  --text: oklch(0.20 0.015 260);
  --text-dim: oklch(0.42 0.015 260);
  --text-faint: oklch(0.55 0.015 260);
  --accent: oklch(0.50 0.1 230);
  --accent-hover: oklch(0.42 0.1 230);
  --btn-outline-border: oklch(0.75 0.01 260);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::placeholder { color: var(--text-faint); }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: oklch(0.98 0.004 260 / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.site-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}
.site-logo-mark .crenel {
  display: flex;
  gap: 3px;
  height: 9px;
}
.site-logo-mark .crenel span {
  flex: 1;
  background: var(--accent);
}
.site-logo-mark .body {
  height: 17px;
  background: var(--accent);
  position: relative;
}
.site-logo-mark .body::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 0;
  width: 4px;
  background: var(--bg);
  transform: translateX(-50%);
}

.site-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a.current,
.site-nav a[aria-current="page"] {
  color: var(--text);
}
.site-nav a.btn-contact {
  color: var(--bg);
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
}
.site-nav a.btn-contact:hover { color: var(--bg); background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-outline { border: 1px solid var(--btn-outline-border); color: var(--text); background: transparent; }
.btn-outline:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 100px 64px 110px;
  align-items: center;
}
.hero h1 {
  font-size: 58px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 16px; }
.hero-image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-faint);
  background: repeating-linear-gradient(135deg, var(--bg-panel), var(--bg-panel) 10px, var(--bg) 10px, var(--bg) 20px);
}

/* Stats bar */
.stats-bar {
  padding: 0 64px 60px;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat {
  padding: 32px 20px;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--text-dim); }

/* Section headers */
.section { padding: 60px 64px 100px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 38px; font-weight: 700; }

/* Service category + cards (Home summary) */
.service-category { margin-bottom: 48px; }
.service-category-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.service-category-head h3 { font-size: 21px; font-weight: 600; }
.service-category-head span { font-size: 14px; color: var(--text-dim); }

.card-grid {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card .underline { width: 32px; height: 3px; background: var(--accent); }
.service-card h3 { font-size: 20px; font-weight: 600; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; flex: 1; }
.service-card .learn-more { font-size: 14px; font-weight: 600; }

/* Industries */
.industry-card {
  background: var(--bg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.industry-card h3 { font-size: 18px; font-weight: 600; }
.industry-icon { width: 30px; height: 26px; position: relative; }
.icon-house { width: 30px; height: 22px; }
.icon-house .roof {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-bottom: 11px solid var(--accent);
}
.icon-house .base { position: absolute; left: 4px; right: 4px; bottom: 0; top: 11px; background: var(--accent); }
.icon-cross { width: 26px; height: 26px; }
.icon-cross .v { position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; background: var(--accent); transform: translateX(-50%); }
.icon-cross .h { position: absolute; top: 50%; left: 0; right: 0; height: 8px; background: var(--accent); transform: translateY(-50%); }
.icon-bars { width: 30px; height: 24px; display: flex; align-items: flex-end; gap: 4px; }
.icon-bars span { width: 7px; background: var(--accent); }
.icon-circles { width: 28px; height: 24px; position: relative; }
.icon-circles span { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); top: 0; }
.icon-circles span.left { left: 0; opacity: 0.85; }
.icon-circles span.right { right: 0; opacity: 0.55; }

/* Approach */
.approach-section {
  padding: 90px 64px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.approach-grid h2 { font-size: 34px; font-weight: 700; margin: 0 0 20px; }
.approach-grid > div:first-child p { font-size: 16px; line-height: 1.65; color: var(--text-dim); margin: 0; }
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.approach-step {
  background: var(--bg-panel);
  padding: 26px 30px;
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.approach-step .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.approach-step .title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.approach-step .desc { font-size: 15px; color: var(--text-dim); line-height: 1.55; }

/* CTA band */
.cta-band { padding: 100px 64px; text-align: center; }
.cta-band h2 { font-size: 36px; font-weight: 700; margin: 0 0 18px; }
.cta-band p { font-size: 17px; color: var(--text-dim); margin: 0 0 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  padding: 48px 64px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.footer-brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
}
.footer-nav { display: flex; gap: 32px; font-size: 14px; }
.footer-nav a { color: var(--text-dim); }
.footer-copyright { font-size: 13px; color: var(--text-faint); }

/* Page hero (Services / About / Contact) */
.page-hero { padding: 90px 64px 60px; max-width: 1000px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 46px; font-weight: 700; margin: 0 0 20px; }
.page-hero p { font-size: 17px; line-height: 1.65; color: var(--text-dim); margin: 0 auto; max-width: 620px; }

/* Services page detail rows */
.services-category-block { padding: 20px 64px 60px; max-width: 1200px; margin: 0 auto; }
.services-category-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.services-category-head h2 { font-size: 26px; font-weight: 700; }
.services-category-head span { font-size: 15px; color: var(--text-dim); }

.service-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.service-row {
  background: var(--bg);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}
.service-row .underline { width: 32px; height: 3px; background: var(--accent); margin-bottom: 20px; }
.service-row h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.service-row p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; }
.service-row .included-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.service-row .included-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.service-row .included-list li {
  display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.5;
}
.service-row .included-list li::before {
  content: '';
  width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; transform: translateY(-2px);
  display: inline-block;
}

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  padding: 100px 64px;
  align-items: center;
}
.about-intro h1 { font-size: 44px; font-weight: 700; margin: 0 0 22px; }
.about-intro p { font-size: 17px; line-height: 1.65; color: var(--text-dim); margin: 0; }
.about-photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  overflow: hidden;
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.principle-card { background: var(--bg); padding: 36px 32px; }
.principle-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 12px; }
.principle-card p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; }

.why-fractional {
  padding: 90px 64px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.why-fractional .inner { max-width: 900px; margin: 0 auto; text-align: center; }
.why-fractional h2 { font-size: 32px; font-weight: 700; margin: 0 0 20px; }
.why-fractional p { font-size: 16px; line-height: 1.65; color: var(--text-dim); margin: 0; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 100px 64px;
  max-width: 1300px;
  margin: 0 auto;
}
.contact-layout h1 { font-size: 40px; font-weight: 700; margin: 0 0 22px; }
.contact-layout > div:first-child > p { font-size: 16px; line-height: 1.65; color: var(--text-dim); margin: 0 0 40px; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.contact-details .label {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 6px;
}
.contact-details .value { font-size: 16px; }

.contact-form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  padding: 44px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  background: var(--accent); color: var(--bg); border: none; padding: 16px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.contact-form button:hover { background: var(--accent-hover); }
.contact-form .hp-field { position: absolute; left: -9999px; }

.confirmation-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 40px 0; }
.confirmation-icon {
  width: 40px; height: 40px; border: 2px solid var(--accent); transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
}
.confirmation-icon span { width: 12px; height: 12px; background: var(--accent); transform: rotate(-45deg); display: block; }
.confirmation-panel h3 { font-size: 22px; font-weight: 700; margin: 0; }
.confirmation-panel p { font-size: 15px; color: var(--text-dim); margin: 0; }
.form-error {
  background: oklch(0.90 0.05 25); border: 1px solid oklch(0.60 0.15 25); color: oklch(0.30 0.1 25);
  padding: 12px 16px; font-size: 14px;
}

/* Responsive */
.hero-ctas { flex-wrap: wrap; }

@media (max-width: 900px) {
  .site-header { padding: 18px 24px; position: relative; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
  }
  .site-nav a.btn-contact { text-align: center; }
  .hero, .about-intro, .approach-grid, .contact-layout { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .section, .stats-bar, .approach-section, .why-fractional, .cta-band, .services-category-block, .page-hero { padding-left: 24px; padding-right: 24px; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; padding: 32px 24px; }
  .contact-form .row-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .site-footer { padding: 32px 24px; }
}
