/* ============================================================
   NET POSITIVE OPS — Design System & Component Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TYPE SCALE ─────────────────────────────────────────────── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.8rem,   1rem    + 5.5vw,  6.5rem);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* ── SPACING ──────────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── RADIUS / SHADOW ──────────────────────────────────────── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── CONTENT WIDTHS ───────────────────────────────────────── */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --content-max:     1400px;
}

/* ── LIGHT MODE ─────────────────────────────────────────────── */
:root, [data-theme='light'] {
  --color-bg:           #F6F4EF;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F0EDE7;
  --color-border:       #DDD9D1;
  --color-text:         #1A1A16;
  --color-text-muted:   #6B6B62;
  --color-text-faint:   #A8A89F;
  --color-text-inverse: #F6F4EF;

  --color-forest:       #1B3A2F;
  --color-forest-deep:  #0F1F19;
  --color-forest-mid:   #254D3F;
  --color-primary:      #1B3A2F;
  --color-accent:       #D4870A;
  --color-accent-hover: #B8720A;
  --color-accent-light: #FDF3E3;

  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.12);
}

/* ── DARK MODE ──────────────────────────────────────────────── */
[data-theme='dark'] {
  --color-bg:           #0C1810;
  --color-surface:      #132318;
  --color-surface-2:    #1A2E20;
  --color-border:       #2A3D30;
  --color-text:         #E8E6DF;
  --color-text-muted:   #8A9E8F;
  --color-text-faint:   #4A5E4F;
  --color-text-inverse: #0C1810;

  --color-forest:       #2A5540;
  --color-forest-deep:  #071009;
  --color-forest-mid:   #1E3D2C;
  --color-primary:      #4A9B6F;
  --color-accent:       #F0A030;
  --color-accent-hover: #D4870A;
  --color-accent-light: #2A1F0A;

  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:           #0C1810;
    --color-surface:      #132318;
    --color-surface-2:    #1A2E20;
    --color-border:       #2A3D30;
    --color-text:         #E8E6DF;
    --color-text-muted:   #8A9E8F;
    --color-text-faint:   #4A5E4F;
    --color-text-inverse: #0C1810;
    --color-forest:       #2A5540;
    --color-forest-deep:  #071009;
    --color-forest-mid:   #1E3D2C;
    --color-primary:      #4A9B6F;
    --color-accent:       #F0A030;
    --color-accent-hover: #D4870A;
    --color-accent-light: #2A1F0A;
    --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.5);
  }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow { max-width: var(--content-default); }
.container--max    { max-width: var(--content-max); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  max-width: var(--content-max);
  margin-inline: auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta {
  display: none;
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.nav__cta:hover { background: var(--color-accent-hover); color: #fff; }
.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__theme-toggle, .nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}
.nav__theme-toggle:hover, .nav__hamburger:hover { color: var(--color-text); background: var(--color-surface-2); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  text-decoration: none;
  font-style: italic;
}
.nav__mobile a:hover { color: var(--color-accent); }
.nav__mobile-close {
  position: absolute;
  top: var(--space-6); right: var(--space-6);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta   { display: block; }
  .nav__hamburger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: #0F1F19;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero__accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  padding-block: clamp(var(--space-24), 12vw, var(--space-32));
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--color-accent);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: #E8E6DF;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: var(--space-8);
}
.hero__headline em {
  font-style: italic;
  color: var(--color-accent);
}
.hero__sub {
  font-size: var(--text-lg);
  color: #8A9E8F;
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: var(--space-10);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  min-height: 52px;
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgb(212 135 10 / 0.3); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  color: #8A9E8F;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  min-height: 52px;
}
.btn-ghost:hover { color: #E8E6DF; border-color: rgba(255,255,255,0.25); }
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section__label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--color-accent);
}
.section__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}
.section__heading em { font-style: italic; color: var(--color-accent); }
.section__intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: var(--space-12);
  font-weight: 300;
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what { background: var(--color-bg); }
.what__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}
.card__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.callout {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
}
.callout__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.callout__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
  max-width: 80ch;
}

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

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: #0F1F19;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}
.how .section__heading { color: #E8E6DF; }
.how .section__intro   { color: #8A9E8F; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  z-index: 1;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.step__num {
  width: 64px; height: 64px;
  border: 1px solid rgba(212,135,10,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  font-style: italic;
  flex-shrink: 0;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #E8E6DF;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.step__body {
  font-size: var(--text-base);
  color: #8A9E8F;
  line-height: 1.65;
  font-weight: 300;
}
.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(212,135,10,0.1);
  border: 1px solid rgba(212,135,10,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(33.33% - 10px);
    right: calc(33.33% - 10px);
    height: 1px;
    background: linear-gradient(90deg, rgba(212,135,10,0.4), rgba(212,135,10,0.4));
    z-index: 0;
  }
  .step { grid-template-columns: 1fr; text-align: left; }
  .step__num { margin-bottom: var(--space-4); }
}

/* ============================================================
   THE OPPORTUNITY
   ============================================================ */
.opportunity { background: var(--color-surface-2); }
.opportunity__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}
.opportunity__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.point {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.point__dot {
  width: 10px; height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.point__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.point__text strong { color: var(--color-text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* IE Map SVG visual */
.ie-map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

@media (min-width: 1024px) {
  .opportunity__inner { grid-template-columns: 1fr 1fr; }
  .ie-map { justify-content: flex-end; }
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  background: #0F1F19;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
.contact .container { position: relative; z-index: 1; }
.contact .section__label { justify-content: center; }
.contact .section__heading { color: #E8E6DF; margin-inline: auto; }
.contact .section__intro { margin-inline: auto; color: #8A9E8F; }

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  text-decoration: none;
  font-style: italic;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-12);
  border-bottom: 1px solid rgba(212,135,10,0.3);
  padding-bottom: var(--space-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact__email:hover { color: #F0A030; border-color: rgba(240,160,48,0.6); }

.contact__divider {
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.1);
  margin: var(--space-10) auto;
}
.contact__meta {
  font-size: var(--text-sm);
  color: #4A5E4F;
  letter-spacing: 0.04em;
}
.contact__meta a { color: #4A5E4F; text-decoration: none; }
.contact__meta a:hover { color: #8A9E8F; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (min-width: 1440px) {
  .stats { gap: var(--space-10); }
  .card  { padding: var(--space-10); }
}

@media (min-width: 1920px) {
  .container { max-width: var(--content-max); }
  section { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }
}
