/* ============================================================
   Africa for Import and Export LLC-FZ — Main Stylesheet
   ============================================================ */

:root {
  --navy: #0d2240;
  --navy-mid: #163259;
  --navy-light: #1e4080;
  --orange: #e05a1c;
  --orange-light: #f06d2e;
  --gold: #c8962a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --light-gray: #eaecf0;
  --mid-gray: #9aa3b0;
  --text: #1a1f2e;
  --text-light: #4a5568;
  --border: #dde2ea;
  --shadow: 0 2px 12px rgba(13,34,64,0.10);
  --shadow-lg: 0 8px 32px rgba(13,34,64,0.16);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1180px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); }

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

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

/* ── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-logo-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.nav-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--mid-gray);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 8px 12px;
  color: #c8d4e8;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Products dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 580px;
  padding: 16px;
  z-index: 200;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13.5px;
  border-radius: 5px;
  transition: background 0.1s;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--orange);
}

/* Quote CTA button in nav */
.nav-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--orange-light) !important; color: #fff !important; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::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='%23ffffff' fill-opacity='0.03'%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");
}

.hero-inner {
  position: relative;
  max-width: 740px;
}

.hero-badge {
  display: inline-block;
  background: rgba(224,90,28,0.25);
  border: 1px solid rgba(224,90,28,0.5);
  color: #f8a070;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-light);
}

.hero p {
  font-size: 17px;
  color: #b0c4de;
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover { background: var(--orange-light); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--orange-light);
}

.hero-stat span {
  font-size: 13px;
  color: #8aa4c8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── SECTION HEADERS ──────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }

.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
}

.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── PRODUCT GRID (homepage) ──────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

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

.product-card-img {
  height: 188px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}

.product-card-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-card-link:hover { color: var(--navy); }

/* ── BRANDS BAR ───────────────────────────────────── */
.brands-bar {
  background: var(--navy);
  padding: 24px 0;
}

.brands-label {
  color: #7a90b0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 16px;
}

.brands-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.brands-list span {
  color: #c8d8ee;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
}

/* ── WHY US ───────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.why-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── COVERAGE MAP ─────────────────────────────────── */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.coverage-item {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
}

.coverage-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-light);
  margin-bottom: 6px;
}

.coverage-item p {
  font-size: 13px;
  color: #9ab0cc;
  line-height: 1.5;
}

/* ── CTA BAND ─────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, #c84c10 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 17px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.btn-white {
  background: #fff;
  color: var(--orange);
  font-weight: 700;
}

.btn-white:hover { background: var(--off-white); color: var(--orange); }

/* ── PAGE HERO (inner pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 52px 0 44px;
}

.page-hero-breadcrumb {
  font-size: 13px;
  color: #7a90b0;
  margin-bottom: 12px;
}

.page-hero-breadcrumb a { color: #8aa4c8; }
.page-hero-breadcrumb a:hover { color: #fff; }

.page-hero h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: #b0c4de;
  max-width: 640px;
  line-height: 1.65;
}

/* ── PRODUCT PAGE CONTENT ─────────────────────────── */
.product-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: 32px;
}

.content-section { margin-bottom: 40px; }

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.content-section p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.content-section ul li {
  padding: 5px 0 5px 22px;
  position: relative;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.55;
}

.content-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ── SPEC TABLE ───────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.spec-table tr:nth-child(even) td { background: var(--off-white); }

/* ── PRODUCT CARDS (detail pages) ────────────────── */
.product-cards { display: flex; flex-direction: column; gap: 28px; }

.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prod-card-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.prod-card-img {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 200px;
}

.prod-card-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

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

.prod-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-cert { background: #e8f4ee; color: #1a7a40; border: 1px solid #b0dfc0; }
.badge-type { background: #e8f0fc; color: #1a3fa0; border: 1px solid #b0c8f0; }
.badge-atex { background: #fff4e0; color: #8a5a00; border: 1px solid #f0d090; }

.prod-card-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.prod-card-subtitle {
  font-size: 13px;
  color: var(--mid-gray);
  margin-bottom: 14px;
  font-weight: 500;
}

.prod-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.prod-card-specs {
  margin-bottom: 18px;
}

.prod-card-specs table { font-size: 13px; }

.prod-card-specs table td { padding: 5px 12px 5px 0; color: var(--text-light); vertical-align: top; }
.prod-card-specs table td:first-child { font-weight: 600; color: var(--text); min-width: 120px; white-space: nowrap; }

.prod-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 6px;
}

.cert-tags {
  font-size: 12px;
  color: var(--mid-gray);
}

/* ── CONTACT / QUOTE PAGE ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

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

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30,64,128,0.1);
}

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

/* ── ABOUT PAGE ───────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.brand-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.brand-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.brand-item span {
  font-size: 12px;
  color: var(--mid-gray);
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: #8aa4c8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #8aa4c8;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 7px;
}

.footer-col ul li a {
  color: #8aa4c8;
  font-size: 13.5px;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-contact p {
  font-size: 13.5px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contact a { color: var(--orange-light); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #566a85;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .prod-card-inner { grid-template-columns: 1fr; }
  .prod-card-img { min-height: 180px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--navy); padding: 16px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); min-width: 0; display: none !important; }
  .has-dropdown.open .dropdown { display: block !important; }
  .has-dropdown > a::after { content: ' ▾'; }
  .dropdown-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .brand-list { grid-template-columns: 1fr 1fr; }
}
