/* ============================================================
   IMA TradHub — shared stylesheet
   Classical, international-standard corporate design
   ============================================================ */

:root {
  --navy: #0f2340;
  --navy-light: #16305a;
  --navy-dark: #0a1830;
  --gold: #c9a646;
  --gold-dark: #a8863a;
  --cream: #f7f5ef;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --border: #e2e2e2;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header / Navigation ─────────────────────────────────── */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .5px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  height: 40px;
  width: 40px;
  display: block;
}

.logo .tagline {
  display: block;
  font-size: 10.5px;
  font-weight: normal;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: .3px;
}

.main-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  color: #fff;
  padding: 72px 32px;
  text-align: center;
}

.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: normal;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 15px;
  color: #c9d3e0;
  max-width: 580px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s;
}

.btn:hover { opacity: .85; }

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

.btn-outline-light {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}

/* Page header banner (non-home pages) */
.page-banner {
  background: var(--navy-light);
  color: #fff;
  padding: 46px 32px;
  text-align: center;
}

.page-banner .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: normal;
  margin: 0 0 10px;
}

.page-banner p {
  font-size: 13.5px;
  color: #c9d3e0;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Two-column business split ──────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-panel {
  padding: 48px 40px;
}

.split-panel.divider { border-right: 1px solid var(--border); }
.split-panel.tint { background: var(--cream); }

.eyebrow-dark { font-size: 11px; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.eyebrow-navy { font-size: 11px; letter-spacing: 2px; color: var(--navy); margin-bottom: 8px; }

.split-panel h2 {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: normal;
}

.split-panel p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}

.split-panel ul {
  font-size: 13px;
  color: #333;
  line-height: 2;
  padding-left: 18px;
  margin: 0;
}

/* ── Feature grid ────────────────────────────────────────── */

.section {
  padding: 48px 32px;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title .eyebrow-dark { text-align: center; }

.section-title h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  font-weight: normal;
  margin: 0;
}

/* ── Special Sectors cards ───────────────────────────────── */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.sector-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.sector-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  transition: transform .5s ease;
}

.sector-card:hover .sector-bg {
  transform: scale(1.1);
}

.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,18,34,.92) 15%, rgba(8,18,34,.15) 65%, rgba(8,18,34,.05) 100%);
  z-index: 1;
  transition: background .3s ease;
}

.sector-card:hover::before {
  background: linear-gradient(0deg, rgba(8,18,34,.96) 30%, rgba(8,18,34,.35) 75%, rgba(8,18,34,.1) 100%);
}

.sector-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px;
  color: #fff;
}

.sector-content h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: normal;
  margin: 0 0 10px;
}

.sector-underline {
  width: 32px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 12px;
  transition: width .3s ease;
}

.sector-card:hover .sector-underline {
  width: 52px;
}

.sector-content p {
  font-size: 12.5px;
  color: #d7deea;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .sector-card { height: 260px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 0 8px;
}

.feature .icon {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--navy);
  margin: 0 0 6px;
}

.feature p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Content blocks (service / trading detail pages) ────── */

.content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px;
}

.content-block h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  font-weight: normal;
  margin: 40px 0 14px;
}

.content-block h2:first-child { margin-top: 0; }

.content-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.content-block ul {
  font-size: 14px;
  color: var(--text);
  line-height: 2;
  margin: 0 0 16px;
}

.placeholder-note {
  background: #fff8e6;
  border: 1px dashed var(--gold-dark);
  color: #6b5424;
  font-size: 12.5px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-style: italic;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 20px;
}

.compliance-card {
  background: var(--navy-light);
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
}

.compliance-card .icon {
  font-size: 26px;
  color: #4fc3e8;
  margin-bottom: 12px;
}

.compliance-card .label {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #4fc3e8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.compliance-card .status {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

/* ── Service cards ───────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--border);
  padding: 30px 26px;
}

.card .icon {
  font-size: 26px;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: normal;
  margin: 0 0 10px;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Careers tables ──────────────────────────────────────── */

.region-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.region-heading .icon { font-size: 18px; color: var(--gold-dark); }

.region-heading h2 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  font-weight: normal;
  margin: 0;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 36px;
}

.jobs-table thead tr {
  background: var(--cream);
  border-bottom: 2px solid var(--navy);
}

.jobs-table th {
  text-align: left;
  padding: 11px 14px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: .3px;
}

.jobs-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: #333;
}

.jobs-table tr:nth-child(even) td { background: #fafaf8; }

.job-title { font-weight: bold; color: #222; }

.apply-note {
  margin-top: 8px;
  padding: 22px 26px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 13.5px;
  color: var(--text);
  text-align: center;
  line-height: 1.7;
}

.apply-note a {
  color: var(--navy);
  font-weight: bold;
  border-bottom: 1px solid var(--gold);
}

/* ── Contact page ────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-item .icon { font-size: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

.contact-item h3 {
  font-size: 13.5px;
  color: var(--navy);
  margin: 0 0 4px;
}

.contact-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form label {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
  margin: 0 0 6px;
  font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-family: var(--sans);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #c9d3e0;
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .5px;
  margin: 0 0 14px;
}

.footer-col p,
.footer-col a {
  font-size: 12.5px;
  color: #a9b6c9;
  line-height: 2;
  display: block;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: #8494ac;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8494ac;
}

.powered-by a {
  color: #a9b6c9;
  border-bottom: 1px solid rgba(169,182,201,.4);
  transition: color .15s;
}

.powered-by a:hover { color: var(--gold); }

/* ── Flash news ticker ───────────────────────────────────── */

.flash-news-bar {
  background: var(--gold);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 38px;
}

.flash-news-label {
  background: var(--navy-dark);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .6px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
  z-index: 2;
}

.flash-news-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5252;
  flex-shrink: 0;
  animation: flash-pulse 1.4s infinite;
}

.flash-news-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.flash-news-track {
  display: flex;
  position: absolute;
  height: 100%;
  align-items: center;
  white-space: nowrap;
  animation: flash-scroll 24s linear infinite;
  will-change: transform;
}

.flash-news-track:hover { animation-play-state: paused; }

.flash-news-item {
  padding: 0 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
}

@keyframes flash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes flash-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .flash-news-track { animation: none; }
}

@media (max-width: 860px) {
  .flash-news-label span.label-text { display: none; }
  .flash-news-item { padding: 0 24px; font-size: 12.5px; }
}

/* ── Hero image slider (Home page) ──────────────────────── */

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 460px;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,24,48,.75), rgba(15,35,64,.85));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 680px;
  padding: 0 32px;
}

.hero-slide-content .eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-slide-content h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: normal;
  margin: 0 0 16px;
  line-height: 1.3;
}

.hero-slide-content p {
  font-size: 14.5px;
  color: #d7deea;
  margin: 0 0 26px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  background: rgba(201,166,70,.9);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.slider-arrow:hover { background: var(--gold); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.slider-dot.active { background: var(--gold); }

/* ── Single-image hero banner (inner pages) ─────────────── */

.page-banner-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  padding: 64px 32px;
  text-align: center;
}

.page-banner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,24,48,.72), rgba(15,35,64,.82));
}

.page-banner-image > * {
  position: relative;
  z-index: 1;
}

.page-banner-image .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-banner-image h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: normal;
  margin: 0 0 10px;
  color: #fff;
}

.page-banner-image p {
  font-size: 13.5px;
  color: #d7deea;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero-slider { height: 380px; }
  .hero-slide-content h1 { font-size: 25px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 15px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 10px 0;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }

  .main-nav.open li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav.open a { display: block; padding: 14px 0; border-bottom: none; }

  .split,
  .feature-grid,
  .card-grid,
  .contact-grid,
  .compliance-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .split-panel.divider { border-right: none; border-bottom: 1px solid var(--border); }
  .hero h1 { font-size: 27px; }
  .jobs-table { font-size: 12.5px; }
  .jobs-table th, .jobs-table td { padding: 9px 8px; }
}
