/* ============================================================
   MACRINA TRADING — Global Stylesheet
   Theme: Navy / Beige / White / Charcoal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@300;400;600&display=swap');

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

:root {
  --navy:      #0B1F3A;
  --navy-mid:  #132E52;
  --navy-light:#1C4070;
  --beige:     #C8A96A;
  --beige-lt:  #E4D4B0;
  --beige-pale:#F5EFE0;
  --white:     #FFFFFF;
  --charcoal:  #2E3B4E;
  --grey:      #6B7A8D;
  --grey-lt:   #EAEEF3;
  --text:      #1A2436;
  --radius:    4px;
  --shadow:    0 4px 24px rgba(11,31,58,.12);
  --transition:0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.serif { font-family: 'Source Serif 4', serif; }

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--charcoal); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.8;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide { max-width: 1400px; }
.container--narrow { max-width: 800px; }

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 120px 0; }

.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy h4,
.section--navy .label { color: var(--white); }
.section--navy p { color: var(--beige-lt); }

.section--charcoal { background: var(--charcoal); }
.section--charcoal h2, .section--charcoal h3 { color: var(--white); }
.section--charcoal p { color: #b0bec8; }

.section--beige-pale { background: var(--beige-pale); }
.section--grey-lt { background: var(--grey-lt); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

/* ── Section Label ──────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 16px;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--beige);
  margin: 20px 0 32px;
}
.divider--center { margin: 20px auto 32px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--beige);
  color: var(--navy);
  border-color: var(--beige);
}
.btn--primary:hover {
  background: transparent;
  color: var(--beige);
}

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

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,169,106,.15);
}

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

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav__logo span { color: var(--beige); }

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

.nav__links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: var(--transition);
  border-radius: var(--radius);
}
.nav__links a:hover,
.nav__links a.active { color: var(--beige); }

.nav__cta {
  background: var(--beige) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
}
.nav__cta:hover { background: transparent !important; color: var(--beige) !important; border: none; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,31,58,.95) 0%, rgba(19,46,82,.85) 50%, rgba(28,64,112,.7) 100%),
    url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1800&q=80') center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__tagline::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--beige);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--beige);
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  max-width: 680px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(200,169,106,.2);
}

.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--beige);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200,169,106,.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── Card Grid ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  border-top-color: var(--beige);
  box-shadow: 0 12px 40px rgba(11,31,58,.16);
}

.card--dark {
  background: var(--navy-mid);
  border-top-color: var(--beige);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,.65); }

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(200,169,106,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--beige);
  font-size: 1.4rem;
}

.card--dark .card__icon { background: rgba(200,169,106,.15); }

/* ── Feature Row ────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-row__img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.feature-row__img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.feature-row__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(200,169,106,.3);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ── Stat Bar ───────────────────────────────────────────────── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  padding: 0;
}

.stat-bar__item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-bar__item:last-child { border-right: none; }
.stat-bar__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--beige);
  line-height: 1;
}
.stat-bar__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ── Process Steps ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--beige), transparent);
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--beige);
  color: var(--beige);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

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

.step h4 { color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--grey); }
.section--navy .step h4 { color: var(--white); }
.section--navy .step p { color: rgba(255,255,255,.55); }

/* ── Table ──────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--navy);
  color: var(--beige);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-lt);
  color: var(--charcoal);
}
.data-table tr:hover td { background: var(--beige-pale); }
.data-table tr:last-child td { border-bottom: none; }

/* ── List with beige bullets ────────────────────────────────── */
.list-mark {
  list-style: none;
  padding: 0;
}
.list-mark li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--charcoal);
  font-size: 0.95rem;
}
.list-mark li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--beige);
  font-weight: 700;
}

/* ── Blockquote / Callout ───────────────────────────────────── */
.callout {
  border-left: 4px solid var(--beige);
  padding: 24px 32px;
  background: var(--beige-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(200,169,106,.15);
  color: var(--beige);
  border: 1px solid rgba(200,169,106,.3);
}

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A96A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band h2 { color: var(--white); position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.7); position: relative; z-index: 1; max-width: 600px; margin: 16px auto 0; }
.cta-band .btn-group { justify-content: center; position: relative; z-index: 1; }

/* ── Contact Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #D0D9E4;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,58,.08);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #07152A;
  color: rgba(255,255,255,.55);
  padding: 72px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand { color: var(--white); font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.footer__brand span { color: var(--beige); }

.footer__desc { font-size: 0.85rem; line-height: 1.8; }

.footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 20px;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--beige); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.78rem;
}

.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: rgba(255,255,255,.4); transition: var(--transition); }
.footer__legal a:hover { color: var(--beige); }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero h1 { color: var(--white); }
.page-hero .label { margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 640px; }

/* ── Icon SVG helpers ───────────────────────────────────────── */
.icon { display: inline-block; vertical-align: middle; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar__item:nth-child(2) { border-right: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }

  .grid-2, .grid-3, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse { direction: ltr; }
  .feature-row__img img { height: 300px; }

  .hero__stats { flex-direction: column; gap: 24px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Mobile menu */
  .nav__mobile {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(11,31,58,.98);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(200,169,106,.15);
  }
  .nav__mobile.open { display: flex; }
  .nav__mobile a {
    display: block;
    padding: 12px 16px;
    color: rgba(255,255,255,.75);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
  }
  .nav__mobile a:hover { color: var(--beige); background: rgba(200,169,106,.06); }

  .stat-bar { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }

  .steps::before { display: none; }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .stat-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .grid-4 { grid-template-columns: 1fr; }
}
