/* ═══════════════════════════════════════════
   Warrior Group Ltd. — Stylesheet
   ═══════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Questrial&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #0F0F0F;
  --bg-tertiary: #141414;
  --accent: #6B7B3A;
  --accent-light: #8B9A5B;
  --accent-dim: rgba(107, 123, 58, 0.15);
  --text-primary: #E8E8E8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border: #1E1E1E;
  --border-accent: rgba(107, 123, 58, 0.3);

  --font-heading: 'Share Tech Mono', 'Courier New', monospace;
  --font-body: 'Questrial', 'Century Gothic', 'Futura', sans-serif;

  --max-width: 1100px;
  --section-pad: clamp(48px, 7vh, 80px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand img {
  height: 36px;
  width: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav.scrolled .nav-brand img {
  opacity: 1;
}

.nav-brand span {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind text */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -55%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 123, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 15vh, 160px) clamp(40px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
  animation: fadeInUp 1.2s ease-out both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.8vw, 68px);
  font-weight: 400;
  letter-spacing: clamp(2px, 0.5vw, 7px);
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 1.2s ease-out 0.2s both;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-secondary);
  letter-spacing: 2px;
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-accent);
  padding: 14px 28px;
  margin-top: 36px;
  align-self: flex-start;
  transition: all 0.3s ease;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-cta:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-image {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

/* Gradient fade blending image into background */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Logo inline with the h1 title — flex child, sized relative to font */
.hero-title-logo {
  height: 0.85em;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(107, 123, 58, 0.25));
}

/* Logo above the section label, centered with the header block */
.section-corner-logo {
  display: block;
  margin: 0 auto 16px;
  height: 66px;
  width: auto;
  opacity: 0.45;
  filter: drop-shadow(0 0 6px rgba(107, 123, 58, 0.3));
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1.2s ease-out 0.8s both;
}

.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator .arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Section Base ── */
.section {
  padding: var(--section-pad) 15px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto 0;
}

/* ── About Section ── */
.about-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-text strong {
  color: var(--accent-light);
  font-weight: 400;
}

.about-stats {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent-light);
  display: block;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Team Card ── */
.team-row {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: none;
  border: 1px solid var(--border-accent);
  padding: 20px 28px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
  width: 100%;
  max-width: 460px;
}

.team-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.team-card-photo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-accent);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  display: block;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.team-card-role {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.team-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  transition: color 0.3s ease;
}

.team-card:hover .team-card-cta {
  color: var(--accent-light);
}

.team-card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-cta svg {
  transform: translateX(4px);
}

/* ── Bio Modal ── */
.bio-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.bio-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.bio-modal {
  position: relative;
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.bio-overlay.active .bio-modal {
  transform: translateY(0);
}

.bio-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.bio-close:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.bio-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
}

.bio-photo {
  width: 260px;
  flex-shrink: 0;
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

.bio-body {
  padding: 48px 40px;
  overflow-y: auto;
  flex: 1;
}

.bio-label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.bio-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0;
}

.bio-external-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.bio-external-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.bio-external-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.bio-role {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
}

.bio-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 24px 0;
}

.bio-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.bio-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .bio-modal {
    flex-direction: column;
    max-height: 88vh;
  }

  .bio-photo {
    width: 100%;
    height: 220px;
  }

  .bio-body {
    padding: 32px 24px;
  }

  .team-card {
    padding: 16px 20px;
  }
}

/* ── Services / Edge Section ── */
.edge-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.edge-card {
  background: var(--bg-secondary);
  padding: 48px 36px;
  text-align: center;
  transition: background 0.4s ease;
}

.edge-card:hover {
  background: var(--bg-tertiary);
}

.edge-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.edge-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-primary);
  overflow: visible;
}

.edge-card h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.edge-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.edge-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edge-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.edge-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 1px;
  background: var(--accent);
}

/* ── Capabilities Section ── */
.capabilities-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.capability-card {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: background 0.4s ease;
}

.capability-card:hover {
  background: var(--bg-tertiary);
}

.capability-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Dark overlay so the photo reads as background */
.capability-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.capability-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.capability-img-placeholder:not([src]),
.capability-img-placeholder[src=""] {
  visibility: hidden;
}

/* Icon centered and large — 60% of the container */
.capability-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.capability-icon svg {
  width: 65%;
  height: 65%;
  stroke: var(--accent-light);
  stroke-width: 1;
  overflow: visible;
}

.capability-body {
  padding: 28px 28px 32px;
  flex-grow: 1;
  border-top: 1px solid var(--border);
}

.capability-body h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 12px;
}

.capability-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.capability-image::after {
  content: 'Image coming soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Contact Section ── */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-item:hover .icon {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.contact-item .icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item a,
.contact-item span {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-light);
}

/* Dallas Alexander link */
.partner-link {
  margin-top: 48px;
  padding-top: 48px;
  /* border-top: 1px solid var(--border); */
}

.partner-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--border-accent);
  transition: all 0.3s ease;
}

.partner-link a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.partner-link a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.partner-link a:hover svg {
  transform: translateX(4px);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
}

.footer-logo {
  width: 60px;
  height: auto;
  opacity: 0.4;
  margin-bottom: 24px;
  filter: grayscale(20%);
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Fade-in on Scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .hero {
    flex-direction: column;
  }

  .hero-content {
    padding: 120px 24px 48px;
    order: 2;
  }

  .hero-title {
    font-size: clamp(26px, 8.5vw, 46px);
    letter-spacing: clamp(2px, 0.8vw, 6px);
  }

  .hero-image {
    width: 100%;
    height: 50vh;
    order: 1;
  }

  .hero-image::before {
    background: linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
  }

  .hero-cta {
    align-self: center;
  }

  .edge-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capability-image {
    height: 240px;
  }

  .about-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-brand span {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .edge-card {
    padding: 36px 24px;
  }

  .contact-item {
    flex-direction: column;
    gap: 8px;
  }
}
