/* ============================================================
   CaribTrade Design System
   Professional export trading — trustworthy, clear, trade-focused
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --navy:       #1B3A5C;
  --teal:       #0D7D8A;
  --sand:       #F5F0E8;
  --white:      #FFFFFF;
  --text:       #2C3E50;
  --text-muted: #6B7A8A;
  --border:     #D8DDD9;
  --gold:       #C9A84C;
  --error:      #C0392B;
  --success:    #1A7A4A;
  --shadow:     0 2px 12px rgba(27,58,92,0.08);
  --radius:     6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1 { font-size: 2.25rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
p  { color: var(--text-muted); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); font-weight: 600; }

/* --- Nav --- */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 1.5rem; height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; gap: 0.25rem; list-style: none; margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: var(--white); text-decoration: none; }
.nav-links a.active { background: rgba(255,255,255,0.18); color: var(--white); }
.nav-linkedin { padding: 0.4rem 0.6rem !important; display: flex; align-items: center; }
.nav-linkedin svg { display: block; }

/* --- Container --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0D3A5E 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 1rem; }
.hero p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s;
}
.hero-cta:hover { background: #0A6A77; text-decoration: none; color: var(--white); }
.hero-cta svg { width: 16px; height: 16px; }

/* --- Trust bar --- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-items {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(27,58,92,0.14); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; background: rgba(13,125,138,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--teal); }
.card h3 { margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; }

/* --- Product sections --- */
.product-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D3A5E 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
}
.product-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.product-hero p  { color: rgba(255,255,255,0.75); max-width: 560px; }

.product-showcase { padding: 4rem 0; }
.product-showcase.alt { background: var(--white); }

.product-block { margin-bottom: 4rem; }
.product-block h2 { margin-bottom: 0.5rem; }
.product-block > p { margin-bottom: 2rem; }

.product-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.product-item {
  background: var(--sand); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.product-item .product-img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 4px; margin-bottom: 1rem;
  background: var(--border);
}
.product-item h4 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--navy); }
.product-item p  { font-size: 0.85rem; }

.product-divider {
  border: none; border-top: 1px solid var(--border); margin: 3rem 0;
}

/* --- Inquiry form --- */
.inquiry-section { background: var(--navy); padding: 4rem 0; }
.inquiry-section h2 { color: var(--white); margin-bottom: 0.5rem; }
.inquiry-section p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.inquiry-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  background: rgba(255,255,255,0.08); color: var(--white);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  background: var(--teal); color: var(--white);
  padding: 0.8rem 2rem; border: none; border-radius: 4px;
  font-size: 0.95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; width: 100%; transition: background 0.15s;
}
.btn-primary:hover { background: #0A6A77; }
.form-success { background: rgba(26,122,74,0.2); border: 1px solid var(--success); color: #6fdfa8; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; display: none; }
.form-error   { background: rgba(192,57,43,0.2); border: 1px solid var(--error); color: #f5a59a; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; display: none; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: var(--radius);
  height: 360px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 1rem;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content p  { margin-bottom: 1.25rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Contact page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-item svg { width: 20px; height: 20px; color: var(--teal); margin-top: 0.2rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.contact-item p  { font-size: 0.875rem; }

/* --- Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 2.5rem 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer a { color: rgba(255,255,255,0.55); }
.footer a:hover { color: var(--white); }
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.li-follow-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); padding: 0.35rem 0.85rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: background 0.15s, border-color 0.15s; text-decoration: none;
}
.li-follow-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); color: var(--white); text-decoration: none; }
.li-follow-btn svg { flex-shrink: 0; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-inner { gap: 1rem; }
  .nav-links { gap: 0; }
  .hero h1 { font-size: 1.9rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}