/* CMC Trading & Investments — global stylesheet */

:root {
  --navy: #15117D;
  --navy-dark: #0E0A55;
  --navy-soft: #2A26A0;
  --ink: #0A0A1A;
  --slate: #4A4A5C;
  --muted: #7A7A8C;
  --line: #E4E4ED;
  --surface: #F4F4F7;
  --surface-warm: #F9F8F4;
  --white: #FFFFFF;
  --gold: #B8995A;
  --max: 1240px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 26, 0.06);
  --shadow-md: 0 8px 28px rgba(10, 10, 26, 0.08);
  --transition: 200ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-soft); }

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 720px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--surface); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--navy);
}
.nav-cta { padding: 10px 18px !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(21, 17, 125, 0.08), transparent 50%),
    linear-gradient(180deg, var(--surface-warm) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero p.lead { margin-bottom: 36px; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px);
}
.hero-visual::after {
  content: 'CMC';
  position: absolute;
  bottom: 24px;
  left: 32px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.04em;
}
.hero-stats {
  position: absolute;
  bottom: 32px;
  right: 32px;
  color: var(--white);
  text-align: right;
}
.hero-stats .stat { margin-bottom: 18px; }
.hero-stats .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-stats .lbl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

/* Sections */
section { padding: 96px 0; }
.section-header { max-width: 760px; margin-bottom: 56px; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark .eyebrow { color: var(--gold); }
.section-surface { background: var(--surface); }
.section-warm { background: var(--surface-warm); }

/* Pillar grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.pillar:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 24px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 0.95rem; }

/* Sectors */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}
.sector-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  color: var(--navy);
}
.sector h4 { margin-bottom: 6px; font-size: 1rem; }
.sector p { font-size: 0.85rem; margin: 0; color: var(--muted); }

/* Two-col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.two-col-narrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* List blocks */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullet-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
}
.bullet-list li:last-child { border-bottom: 1px solid var(--line); }
.bullet-list .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}
.bullet-list .body strong { display: block; color: var(--ink); margin-bottom: 4px; }
.bullet-list .body span { color: var(--slate); font-size: 0.95rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(21,17,125,0.06);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 20px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Page hero (interior) */
.page-hero {
  padding: 100px 0 64px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 800px; }
.page-hero .lead { margin-top: 16px; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
}
.stat-cell .num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-cell .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.team-info { padding: 24px 28px 28px; }
.team-info h4 { margin-bottom: 4px; }
.team-info .role { color: var(--navy); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.team-info p { font-size: 0.92rem; margin: 0; }

/* News list */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.news-item .date { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.news-item h3 { margin: 0 0 6px; font-size: 1.2rem; }
.news-item p { margin: 0; font-size: 0.95rem; }
.news-item .arrow {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 600;
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 8px; }
.contact-detail {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-detail .val { color: var(--ink); font-weight: 500; }

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA strip */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: center;
}
.cta-strip h2 { color: var(--white); margin: 0; }
.cta-strip p { color: rgba(255,255,255,0.78); margin: 8px 0 0; max-width: 580px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-col h5 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .pillars { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col-narrow { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-strip-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item .arrow { display: none; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .stats-strip { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
