/* ============================================
   DELTAWORKS CAPITAL — Global Styles
   ============================================ */

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

:root {
  --navy: #0a1628;
  --navy-light: #132038;
  --charcoal: #1a2332;
  --slate: #2a3a4e;
  --steel: #5a6a7e;
  --silver: #8a96a6;
  --fog: #c4cdd8;
  --cloud: #e8ecf1;
  --white: #f5f7fa;
  --pure-white: #ffffff;
  --accent: #c8a55a;
  --accent-light: #dfc07a;
  --accent-dark: #a8853a;
  --red-accent: #c44a3f;
  --font-heading: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --section-pad: 120px;
  --section-pad-mobile: 64px;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--fog);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-light);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--pure-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.lead {
  font-size: 1.2rem;
  color: var(--silver);
  line-height: 1.8;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

.section--mid {
  background: var(--navy-light);
}

.section--accent {
  background: var(--charcoal);
}

.grid {
  display: grid;
  gap: 3rem;
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(200, 165, 90, 0.1);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  position: relative;
}

.nav__logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--pure-white);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fog);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s;
    border-left: 1px solid var(--slate);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.1rem;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 165, 90, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 165, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 165, 90, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--accent);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* --- Stat Bar --- */
.stat-bar {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--slate);
}

.stat-bar__item {
  text-align: left;
}

.stat-bar__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pure-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-bar__label {
  font-size: 0.8rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .stat-bar {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .stat-bar__item {
    flex: 1 1 40%;
  }
}

/* --- Cards --- */
.card {
  background: var(--navy-light);
  border: 1px solid rgba(200, 165, 90, 0.08);
  border-radius: 2px;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.2s;
}

.card:hover {
  border-color: rgba(200, 165, 90, 0.2);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* --- CTA / Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--accent);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--accent-light);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--navy);
}

.btn--arrow::after {
  content: '\2192';
  transition: transform 0.2s;
}

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

/* --- Markets List --- */
.market-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(200, 165, 90, 0.08);
}

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

.market-item__country {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 120px;
  padding-top: 0.25rem;
}

.market-item__detail h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.market-item__detail p {
  color: var(--silver);
  font-size: 0.95rem;
}

/* --- Team / Bio --- */
.bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.bio__photo {
  aspect-ratio: 3/4;
  background: var(--charcoal);
  border: 1px solid var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 0.85rem;
}

.bio__credentials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate);
  flex-wrap: wrap;
}

.bio__credential {
  font-size: 0.85rem;
}

.bio__credential strong {
  color: var(--pure-white);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .bio {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Contact --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info__text {
  font-size: 1rem;
  color: var(--fog);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--slate);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--steel);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--steel);
}

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

/* --- Geometric Accent Elements --- */
.geo-line {
  position: absolute;
  background: linear-gradient(to bottom, var(--accent), transparent);
  width: 1px;
  height: 200px;
  opacity: 0.15;
}

.geo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.3;
  position: absolute;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header p {
  color: var(--silver);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(200, 165, 90, 0.04) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

.page-header .lead {
  max-width: 560px;
}

/* --- Principles / Values list --- */
.principles {
  counter-reset: principle;
}

.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(200, 165, 90, 0.08);
  align-items: start;
}

.principle:last-child {
  border-bottom: none;
}

.principle__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1;
}

.principle__content h3 {
  margin-bottom: 0.5rem;
}

.principle__content p {
  color: var(--silver);
  font-size: 0.95rem;
}

/* --- Approach Pillars --- */
.pillar {
  padding: 2rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.pillar h3 {
  color: var(--pure-white);
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--silver);
  font-size: 0.95rem;
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in--delay-1 { animation-delay: 0.15s; }
.fade-in--delay-2 { animation-delay: 0.3s; }
.fade-in--delay-3 { animation-delay: 0.45s; }
.fade-in--delay-4 { animation-delay: 0.6s; }

/* --- Utility --- */
.text-accent { color: var(--accent); }
.text-white { color: var(--pure-white); }
.text-silver { color: var(--silver); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--steel);
}
