/* MAT GLOBAL TRADERS — Premium Export Platform */

:root {
  --green-900: #0d2818;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --bg: #fafaf8;
  --bg-alt: #f0f0ec;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
  --nav-h: 100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

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

/* Typography */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.375rem; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.35);
}

.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-800);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--green-600); }

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

.btn-gold:hover { background: var(--gold-light); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-gmail {
  background: #ea4335;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.35);
}

.btn-gmail:hover {
  background: #d93025;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--green-800);
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green-800); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 { margin-bottom: 24px; }

.hero-content .lead { margin-bottom: 8px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green-800);
}

.hero-badge span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Stats strip */
.stats-strip {
  padding: 48px 0;
  background: var(--green-800);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Sections */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 { margin-bottom: 16px; }

/* Feature blocks */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-block:last-child { margin-bottom: 0; }

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  padding: 6px 14px;
  background: var(--bg-alt);
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green-800);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.card-icon.value-icon {
  background: none;
  border-radius: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
}

.card-icon.value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.product-card-body { padding: 24px; }

.product-card-body h3 { margin-bottom: 4px; }

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.leader-card .role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.leader-card h3 { margin-bottom: 16px; }

.leader-card blockquote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-card p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Programs (pricing replacement) */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.program-card.featured {
  border-color: var(--green-800);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.program-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 980px;
}

.program-card h3 { margin-bottom: 8px; }

.program-for {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.program-features {
  flex: 1;
  margin-bottom: 32px;
}

.program-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}

.program-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.insight-card:hover { transform: translateY(-4px); }

.insight-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.insight-card-body { padding: 24px; }

.insight-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.insight-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Connect */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.connect-card {
  background: var(--green-800);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.connect-card h3 { margin-bottom: 8px; }

.connect-card p {
  opacity: 0.85;
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* CTA band */
.cta-band {
  background: var(--green-900);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 16px; }

.cta-band p {
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.page-hero h1 { margin-bottom: 16px; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.product-specs {
  margin-top: 32px;
}

.spec-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row dt {
  font-weight: 600;
  width: 140px;
  flex-shrink: 0;
  color: var(--green-800);
}

.spec-row dd {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 8px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-600);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cert-item {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-2px);
  color: var(--green-800);
}

.cert-badge {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background-color: var(--white);
  overflow: hidden;
  padding: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cert-item:hover .cert-badge {
  border-color: var(--green-600);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.15);
}

.cert-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticky-cta .btn { box-shadow: var(--shadow-lg); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a:hover { color: var(--green-800); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .feature-block,
  .product-detail,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .feature-block.reverse { direction: ltr; }

  .cards-grid,
  .products-grid,
  .programs-grid,
  .insights-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links, .nav-cta .btn-secondary { display: none; }

  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .cards-grid,
  .products-grid,
  .programs-grid,
  .insights-grid,
  .leadership-grid,
  .testimonials-grid,
  .connect-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .sticky-cta { bottom: 16px; right: 16px; }
}

/* Hero Visual Floating Animation & Partner Badge */
.hero-visual img {
  animation: hero-visual-float 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes hero-visual-float {
  0%, 100% {
    transform: translateY(0) scale(1.02);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.hero-partner-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(27, 67, 50, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  animation: hero-badge-float 6s ease-in-out infinite alternate;
}

.hero-partner-badge:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.25);
}

.hero-partner-badge img {
  height: 32px !important;
  width: auto !important;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
}

.hero-partner-badge .partner-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes hero-badge-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Alliance Section */
.alliance-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-partner-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
  }
  .hero-partner-badge img {
    height: 24px !important;
  }
  .hero-partner-badge .partner-label {
    font-size: 0.65rem;
  }
  .alliance-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .alliance-logo img {
    max-height: 100px !important;
  }
  .alliance-points {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
}
