/* ================================================
   DIASPORA ADVISORY V2 - FORENSIC PRECISION
   Brutalist/Technical Aesthetic
   ================================================ */

:root {
  /* Colors - Stark */
  --black: #000000;
  --white: #ffffff;
  --grey-100: #f5f5f5;
  --grey-200: #e5e5e5;
  --grey-300: #d4d4d4;
  --grey-800: #262626;
  --grey-900: #171717;
  --emerald: #047857;
  --emerald-dark: #065f46;

  /* Typography - Monospace only */
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --unit: 8px;
  --gap-xs: calc(var(--unit) * 1);
  --gap-sm: calc(var(--unit) * 2);
  --gap-md: calc(var(--unit) * 4);
  --gap-lg: calc(var(--unit) * 8);
  --gap-xl: calc(var(--unit) * 12);

  /* Grid */
  --grid-columns: 12;
  --grid-gap: 24px;
  --max-width: 1400px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET
   ================================================ */

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

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

body {
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ================================================
   GRID OVERLAY (decorative)
   ================================================ */

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 99px, rgba(0, 0, 0, 0.03) 99px, rgba(0, 0, 0, 0.03) 100px),
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(0, 0, 0, 0.03) 99px, rgba(0, 0, 0, 0.03) 100px);
  opacity: 0.5;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }

p {
  font-size: 0.875rem;
  line-height: 1.8;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

/* ================================================
   LAYOUT
   ================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.section {
  padding: var(--gap-xl) 0;
  border-top: 2px solid var(--black);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.section-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ================================================
   NAVIGATION
   ================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 2px solid var(--black);
  z-index: 1000;
  font-size: 0.75rem;
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
}

.logo-brackets {
  color: var(--emerald);
}

.nav-links {
  display: flex;
  gap: var(--gap-md);
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: var(--gap-xs) var(--gap-sm);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.nav-link::before {
  content: attr(data-index) " ";
  color: var(--emerald);
  font-size: 0.7rem;
}

.nav-link:hover {
  border-color: var(--black);
  background-color: var(--grey-100);
}

.nav-link-primary {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.nav-link-primary::before {
  color: var(--white);
}

.nav-link-primary:hover {
  background-color: var(--emerald);
  border-color: var(--emerald);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background-color: var(--black);
  transition: var(--transition-base);
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  position: relative;
  background-color: var(--white);
  overflow: hidden;
}

.hero-coords {
  position: absolute;
  top: 200px;
  right: var(--gap-md);
  font-size: 0.7rem;
  color: var(--grey-800);
  opacity: 0.7;
  letter-spacing: 0.1em;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: var(--gap-xs) var(--gap-sm);
  background-color: var(--emerald);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap-md);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--gap-md);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: var(--gap-lg);
  letter-spacing: 0.05em;
}

.hero-cta {
  margin-top: var(--gap-lg);
}

.hero-map {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 50%;
  height: 80%;
  transform: translateY(-50%);
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 10px, var(--black) 10px, var(--black) 11px),
    repeating-linear-gradient(90deg, transparent, transparent 10px, var(--black) 10px, var(--black) 11px),
    radial-gradient(ellipse 200px 300px at center, transparent 40%, var(--black) 41%, var(--black) 42%, transparent 43%);
  z-index: 1;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-md) var(--gap-lg);
  background-color: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--emerald);
  border-color: var(--emerald);
  transform: translateX(4px);
}

.btn-arrow {
  font-size: 1.25rem;
  transition: var(--transition-base);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ================================================
   ABOUT SECTION
   ================================================ */

.section-about {
  text-align: center;
}

.about-intro {
  max-width: 900px;
  margin: 0 auto var(--gap-xl);
  padding: var(--gap-md);
  border-left: 4px solid var(--emerald);
  background-color: var(--grey-100);
  text-align: left;
}

.about-intro p {
  font-size: 1rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.about-card {
  border: 2px solid var(--black);
  padding: var(--gap-lg);
  background-color: var(--white);
  transition: var(--transition-base);
  text-align: left;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--black);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 2px solid var(--grey-200);
}

.card-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-list {
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: var(--gap-md);
  margin-bottom: var(--gap-sm);
  font-size: 0.875rem;
  line-height: 1.7;
}

.card-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ================================================
   ENGAGEMENT SECTION
   ================================================ */

.section-engagement {
  background-color: var(--grey-100);
  text-align: center;
}

.engagement-card {
  border: 3px solid var(--black);
  padding: var(--gap-xl);
  background-color: var(--white);
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.engagement-header {
  padding-bottom: var(--gap-md);
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: var(--gap-md);
}

.engagement-title {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: var(--gap-md);
  letter-spacing: 0.02em;
}

.engagement-meta {
  display: flex;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.meta-label {
  font-size: 0.7rem;
  color: var(--grey-800);
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.meta-value-price {
  color: var(--emerald);
  font-size: 2rem;
}

.engagement-description {
  margin-bottom: var(--gap-lg);
  font-size: 1rem;
}

.purpose-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--gap-md);
  letter-spacing: 0.1em;
  color: var(--grey-800);
}

.purpose-list {
  list-style: none;
}

.purpose-list li {
  position: relative;
  padding-left: var(--gap-md);
  margin-bottom: var(--gap-sm);
  font-size: 0.875rem;
  line-height: 1.7;
}

.purpose-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ================================================
   PROCESS SECTION
   ================================================ */

.section-process {
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
}

.process-step {
  border: 2px solid var(--black);
  padding: var(--gap-lg);
  background-color: var(--white);
  position: relative;
  transition: var(--transition-base);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-step:hover {
  transform: translateY(-2px);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--gap-sm);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.step-description {
  font-size: 0.8rem;
  color: var(--grey-800);
  line-height: 1.6;
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.section-contact {
  background-color: var(--black);
  color: var(--white);
  border-top: none;
  text-align: center;
}

.section-contact .section-number {
  color: var(--emerald);
}

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

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--gap-xl) 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: var(--gap-sm);
}

.contact-email {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--gap-lg);
  border-bottom: 2px solid transparent;
  transition: var(--transition-base);
  display: inline-block;
}

.contact-email:hover {
  border-bottom-color: var(--emerald);
  color: var(--emerald);
}

.contact-note {
  font-size: 0.8rem;
  color: var(--grey-300);
  font-style: italic;
  opacity: 0.7;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--gap-md) 0;
  border-top: 1px solid var(--grey-800);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-divider {
  color: var(--emerald);
  opacity: 0.5;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Laptop/Tablet Landscape (768px - 1600px) */
@media (min-width: 769px) and (max-width: 1600px) {
  /* Navigation */
  .logo-img {
    height: 70px;
  }

  .nav-content {
    padding: calc(var(--gap-md) * 0.85);
  }

  .nav-link {
    font-size: 0.7rem;
    padding: calc(var(--gap-xs) * 0.9) calc(var(--gap-sm) * 0.9);
  }

  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding-top: 200px;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: calc(var(--gap-lg) * 1.5);
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: calc(var(--gap-lg) * 1.5);
  }

  .hero-tag {
    font-size: 0.65rem;
    padding: 8px 16px;
    margin-bottom: calc(var(--gap-md) * 1.5);
  }

  .hero-cta {
    margin-top: calc(var(--gap-lg) * 1.5);
  }

  .hero-coords {
    top: 180px;
    font-size: 0.65rem;
  }

  .btn-primary {
    padding: calc(var(--gap-md) * 0.85) calc(var(--gap-lg) * 0.85);
    font-size: 0.8rem;
  }

  /* General Layout */
  .container {
    max-width: 1200px;
    padding: 0 var(--gap-lg);
  }

  .section {
    padding: calc(var(--gap-xl) * 0.85) 0;
  }

  /* Section Headers */
  .section-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
  }

  /* About Section */
  .about-intro {
    max-width: 800px;
    padding: calc(var(--gap-md) * 0.9);
    margin-bottom: calc(var(--gap-xl) * 0.85);
  }

  .about-intro p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .about-grid {
    gap: calc(var(--gap-md) * 0.9);
  }

  .about-card {
    padding: calc(var(--gap-lg) * 0.85);
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-list li {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* Engagement Section */
  .engagement-card {
    padding: calc(var(--gap-xl) * 0.85);
    max-width: 900px;
  }

  .engagement-title {
    font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  }

  .engagement-description p {
    font-size: 0.9rem;
  }

  .meta-label {
    font-size: 0.65rem;
  }

  .meta-value {
    font-size: 1.125rem;
  }

  .purpose-list li {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* Process Section */
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--gap-md) * 0.9);
  }

  .process-step {
    padding: calc(var(--gap-lg) * 0.85);
  }

  .step-number {
    font-size: 2.5rem;
  }

  .step-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .step-description {
    font-size: 0.75rem;
  }

  /* Contact Section */
  .contact-content {
    max-width: 700px;
    padding: calc(var(--gap-xl) * 0.85) 0;
  }

  .contact-label {
    font-size: 0.75rem;
  }

  .contact-email {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  }

  .contact-note {
    font-size: 0.75rem;
  }

  /* Footer */
  .footer-content {
    font-size: 0.7rem;
    gap: calc(var(--gap-md) * 0.85);
  }
}

/* Mobile and Small Tablets (max 768px) */
@media (max-width: 768px) {
  .logo-img {
    height: 60px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), border-bottom var(--transition-base);
    z-index: 999;
  }

  .nav-links.active {
    max-height: 400px;
    border-bottom: 2px solid var(--black);
  }

  .nav-link {
    font-size: 0.875rem;
    padding: var(--gap-md);
    border: none;
    border-bottom: 1px solid var(--grey-200);
    width: 100%;
    text-align: center;
  }

  .nav-link::before {
    display: inline;
  }

  .nav-link:hover {
    background-color: var(--grey-100);
    border-color: transparent;
  }

  .nav-link-primary {
    background-color: var(--emerald);
    border-color: transparent;
  }

  .nav-link-primary:hover {
    background-color: var(--emerald-dark);
  }

  .hero {
    min-height: 70vh;
    padding-top: 200px;
    padding-bottom: var(--gap-lg);
  }

  .hero-tag {
    font-size: 0.65rem;
    padding: 6px 12px;
    margin-bottom: var(--gap-md);
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: var(--gap-md);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--gap-lg);
  }

  .hero-cta {
    margin-top: var(--gap-md);
  }

  .btn-primary {
    padding: var(--gap-sm) var(--gap-md);
    font-size: 0.75rem;
  }

  .hero-coords {
    font-size: 0.6rem;
    right: var(--gap-sm);
    top: 140px;
  }

  .hero-map {
    right: -30%;
    width: 80%;
  }

  .section {
    padding: var(--gap-lg) 0;
  }

  .section-header {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
  }

  .section-number {
    font-size: 2rem;
  }

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

  .card-header {
    gap: var(--gap-xs);
    flex-wrap: nowrap;
  }

  .card-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .card-title {
    font-size: 0.875rem;
  }

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

  .engagement-card {
    padding: var(--gap-md);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--gap-xs);
    text-align: center;
  }

  .footer-divider {
    display: none;
  }
}

/* Extra small screens (phones < 480px) */
@media (max-width: 480px) {
  .card-header {
    gap: 6px;
  }

  .card-icon {
    font-size: 1rem;
  }

  .card-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag,
.hero-title,
.hero-subtitle,
.hero-cta {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hero-tag { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-cta { animation-delay: 0.6s; }

/* ================================================
   ACCESSIBILITY
   ================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus,
button:focus {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
}

::selection {
  background-color: var(--emerald);
  color: var(--white);
}
