/* ============================================
   ONYXA AI — Main Stylesheet
   Mobile-first responsive design
   Brand: Black, Charcoal, Gold (#C6A85C), White
   ============================================ */

/* ---------- Reset & Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.gold {
  color: var(--color-gold);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-xl) 0;
}

.section--light {
  background-color: var(--color-section-bg);
}

.section--dark {
  background-color: var(--color-black);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-light-grey);
}

.section--white {
  background-color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.section__lead {
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-charcoal);
}

.section--dark .section__lead {
  color: var(--color-light-grey);
}

.section__cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
  background-color: transparent;
}

.nav--scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(198, 168, 92, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-white);
  letter-spacing: 3px;
}

.nav__links {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.97);
  z-index: 999;
}

.nav__links.active {
  display: flex;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__cta {
  margin-top: var(--space-sm);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  z-index: 1001;
  padding: var(--space-xs);
}

.nav__icon--close {
  display: none;
}

.nav__toggle.active .nav__icon--menu {
  display: none;
}

.nav__toggle.active .nav__icon--close {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  overflow: hidden;
}

/* Background image with slow zoom */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/Hero Header 3.PNG');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0.92) 100%
  );
  z-index: 1;
}

/* Subtle gold glow pulse on network lines */
.hero__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 55%, rgba(198, 168, 92, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 45%, rgba(198, 168, 92, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 70%, rgba(198, 168, 92, 0.04) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--container-padding) var(--space-2xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--color-light-grey);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* Hero entrance animations */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero stat banner */
.hero__stats {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(198, 168, 92, 0.2);
  backdrop-filter: blur(12px);
  padding: var(--space-md) 0;
}

.hero__stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-stat {
  text-align: center;
}

.hero-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-light-grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-stat__divider {
  display: none;
}

/* ---------- Problem Section (horizontal strips) ---------- */

.problem-strip {
  max-width: 720px;
  margin: 0 auto;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(198, 168, 92, 0.1);
}

.problem-item:last-child {
  border-bottom: none;
}

.problem-item__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.35;
  min-width: 56px;
}

.problem-item__right h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.problem-item__right p {
  font-size: 0.9375rem;
  color: var(--color-light-grey);
  line-height: 1.7;
}

/* ---------- Approach (vertical timeline) ---------- */

.approach-timeline {
  max-width: 680px;
  margin: 0 auto;
}

.approach-step {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
}

.approach-step:last-child {
  padding-bottom: 0;
}

.approach-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.approach-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.approach-step__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  margin-top: var(--space-xs);
}

.approach-step__content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.approach-step__content p {
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.approach-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.approach-step__tags span {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gold);
  background: var(--color-gold-dim);
  padding: 4px 10px;
}

/* ---------- Difference (side-by-side cards) ---------- */

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.diff-card {
  padding: var(--space-lg);
}

.diff-card--them {
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
}

.diff-card--us {
  background: var(--color-black);
}

.diff-card__heading {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-light-grey);
}

.diff-card--us .diff-card__heading {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
}

.diff-card__list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.diff-card__list li:last-child {
  border-bottom: none;
}

.diff-card__list--them li {
  color: var(--color-mid-grey);
}

.diff-card__list--them li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--color-light-grey);
  transform: rotate(45deg);
}

.diff-card__list--them li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--color-light-grey);
  transform: rotate(-45deg);
}

.diff-card__list--us li {
  color: var(--color-light-grey);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.diff-card__list--us li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: translateY(-70%) rotate(-45deg);
}

/* ---------- Audit Section ---------- */

.audit-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.audit-block h3 {
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

.audit-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-light-grey);
}

.audit-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.audit-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-steps li:last-child {
  border-bottom: none;
}

.audit-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
}

.audit-steps strong {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
}

.audit-steps p {
  font-size: 0.875rem;
  margin-top: 2px;
  color: var(--color-light-grey);
}

/* Guarantee */

.audit-guarantee {
  max-width: 640px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-md);
  border: 1px solid rgba(198, 168, 92, 0.2);
  border-left: 3px solid var(--color-gold);
  text-align: center;
}

.audit-guarantee p {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-light-grey);
}

/* ---------- Industries (inline row) ---------- */

.industry-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.industry-item {
  border: 1px solid var(--color-light-grey);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.industry-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.industry-item__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.industry-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.industry-item:hover .industry-item__img img {
  transform: scale(1.06);
}

.industry-item__text {
  padding: var(--space-md);
  text-align: center;
}

.industry-item__text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.industry-item__text p {
  font-size: 0.875rem;
  color: var(--color-charcoal);
}

/* ---------- About / Founder ---------- */

.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.founder__photo {
  flex-shrink: 0;
}

.founder__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-gold);
}

.founder__text h2 {
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

.founder__text p {
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.founder__quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-black) !important;
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-sm);
  margin-top: var(--space-md) !important;
  text-align: left;
  max-width: 460px;
}

/* ---------- Contact / CTA ---------- */

.contact {
  text-align: center;
  padding: var(--space-lg) 0;
}

.contact h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.contact__sub {
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  color: var(--color-light-grey);
}

.contact__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.contact__email {
  font-size: 0.9375rem;
  color: var(--color-light-grey);
}

.contact__email a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__email a:hover {
  color: var(--color-white);
}

/* ---------- Footer ---------- */

.footer {
  background-color: var(--color-black);
  border-top: 1px solid rgba(198, 168, 92, 0.1);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-white);
  letter-spacing: 3px;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--color-mid-grey);
  font-style: italic;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-mid-grey);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__copy p {
  font-size: 0.75rem;
  color: var(--color-charcoal);
}

/* ---------- Scroll Reveal Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Stagger */
.problem-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.problem-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.problem-item.reveal:nth-child(4) { transition-delay: 0.3s; }

.approach-step.reveal:nth-child(2) { transition-delay: 0.15s; }
.approach-step.reveal:nth-child(3) { transition-delay: 0.3s; }

.industry-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.industry-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.industry-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive: 640px+ ---------- */

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero__headline {
    font-size: 2.75rem;
  }

  .hero__stats-inner {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2xl);
  }

  .hero-stat__divider {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(198, 168, 92, 0.25);
  }

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

  .industry-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsive: 768px+ ---------- */

@media (min-width: 768px) {
  h2 {
    font-size: 2.25rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Desktop nav */
  .nav__links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    gap: var(--space-lg);
    align-items: center;
  }

  .nav__link {
    font-size: 0.875rem;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-fast);
  }

  .nav__link:hover::after {
    width: 100%;
  }

  .nav__cta {
    margin-top: 0;
    margin-left: var(--space-xs);
  }

  .nav__toggle {
    display: none;
  }

  /* Audit */
  .audit-split {
    grid-template-columns: 1fr 1fr;
  }

  /* Industries */
  .industry-row {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  /* Founder */
  .founder {
    flex-direction: row;
    text-align: left;
    gap: var(--space-2xl);
  }

  .founder__img {
    width: 220px;
    height: 220px;
  }

  .founder__text p {
    margin-left: 0;
    margin-right: 0;
  }

  .founder__quote {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .founder__text .section__eyebrow {
    text-align: left;
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Responsive: 1024px+ ---------- */

@media (min-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .hero__headline {
    font-size: 3.5rem;
  }

  .hero__sub {
    font-size: 1.1875rem;
  }

  .hero__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 4px;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-stat__number {
    font-size: 3rem;
  }

  .founder__img {
    width: 240px;
    height: 240px;
  }

  .nav__link {
    font-size: 0.9375rem;
  }

  .problem-item__num {
    font-size: 3rem;
  }

  .approach-step__number {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
  }

  .approach-step__marker {
    width: 56px;
  }
}

/* ---------- Responsive: 1280px+ ---------- */

@media (min-width: 1280px) {
  .hero__headline {
    font-size: 4rem;
  }
}
