/* D-one Trading Djibouti — shared styles */
:root {
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --steel: #1f3551;
  --amber: #f5a623;
  --amber-2: #ffc24b;
  --ink: #1a1a1a;
  --muted: #6b7689;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.10);
  --maxw: 1140px;
  /* Djibouti flag palette */
  --dj-blue: #6ab2e7;
  --dj-green: #12ad2b;
  --dj-red: #d7141a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  font-size: .95rem;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--steel); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,27,45,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), #d4861a);
  display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(245,166,35,.4);
}
.brand small { display:block; font-weight: 400; font-size:.62rem; letter-spacing:2px; color: var(--amber); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cdd6e4; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--amber);
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(15,27,45,.94) 0%, rgba(15,27,45,.78) 55%, rgba(15,27,45,.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(245,166,35,.25), transparent 45%),
    var(--navy);
}
.hero .container { padding-top: 96px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px; font-size: .72rem;
  font-weight: 600; color: var(--amber); margin-bottom: 1rem;
  border: 1px solid rgba(245,166,35,.4); padding: .4rem .9rem; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.hero p.lead { font-size: 1.15rem; color: #c6cfdc; max-width: 540px; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art {
  border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12); aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 45%, #2a3a52 0%, #16263d 60%, #0c1626 100%);
  display: grid; place-items: center; position: relative;
}
/* CSS tyre illustration */
.tyre {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background:
    repeating-conic-gradient(#1c1c1f 0deg 8deg, #111114 8deg 16deg);
  position: relative;
  box-shadow: inset 0 0 0 14px #0a0a0c, 0 0 40px rgba(0,0,0,.6);
  animation: spin 14s linear infinite;
}
.tyre::before {
  content: ""; position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #e9edf3, #aeb6c2 55%, #6c7585 100%);
  box-shadow: inset 0 0 0 6px #c7cdd8, 0 0 18px rgba(0,0,0,.5);
}
.tyre::after {
  content: ""; position: absolute; inset: 40%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff, var(--amber) 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .tyre { animation: none; } }

/* Stats bar */
.stats { background: var(--amber); color: var(--navy); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 24px; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Poppins", sans-serif; font-size: 1.9rem; font-weight: 700; }
.stat span { font-size: .85rem; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }

/* Sections */
section.block { padding: 88px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { color: #c98a12; border-color: rgba(201,138,18,.35); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s ease; box-shadow: 0 1px 0 rgba(15,27,45,.02);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(245,166,35,.4); }
.card-photo { position: relative; height: 190px; background: var(--bg-soft); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-photo img { transform: scale(1.05); }
.card-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(transparent, rgba(15,27,45,.35));
}
.card-body { padding: 24px 26px 28px; }
.card h3 { font-size: 1.2rem; color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Photo helpers for hero / panels */
.hero-art img, .split .panel > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split .panel { padding: 0; }
.info-photo { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; aspect-ratio: 16/10; }
.info-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .panel {
  border-radius: 20px; aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.split .panel .tyre { width: 55%; }
.split h2 { font-size: clamp(1.7rem,3vw,2.3rem); color: var(--navy); }
.split p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: #2c3a4f; font-weight: 500; }
.feature-list .check {
  flex: 0 0 24px; height: 24px; background: none; color: var(--dj-red);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1; margin-top: 0;
}

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band .container { padding: 72px 24px; }
.cta-band h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); }
.cta-band p { color: #c6cfdc; max-width: 560px; margin: .8rem auto 2rem; font-size: 1.08rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 18px; background: #fff; transition: .2s;
}
.info-card:hover { border-color: rgba(245,166,35,.5); box-shadow: var(--shadow); }
.info-card .ico {
  flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--steel)); color: var(--amber);
}
.info-card h4 { margin: 0 0 4px; color: var(--navy); font-family: "Poppins", sans-serif; font-size: 1.02rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); font-size: .96rem; }
.info-card a:hover { color: var(--amber); }

form.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.lead-form label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin: 0 0 6px; }
.lead-form .field { margin-bottom: 18px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); transition: .2s; background: var(--bg-soft);
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.form-note { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #e8f7ec; color: #1c6b34; font-weight: 600; font-size: .9rem; }
.form-note.show { display: block; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 12px 0; border-bottom: 1px solid var(--line); color: #2c3a4f; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table .closed { color: #c0392b; }

/* Page hero (about/contact) */
.page-hero { background: var(--navy); color: #fff; padding: 80px 0 64px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(245,166,35,.22), transparent 45%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); }
.page-hero p { color: #c6cfdc; max-width: 600px; margin: .6rem auto 0; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: var(--amber); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }

/* Footer */
.site-footer { background: #0b1524; color: #aeb8c7; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h5 { color: #fff; font-family: "Poppins", sans-serif; font-size: 1rem; margin: 0 0 16px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { font-size: .92rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { font-size: .92rem; }
.footer-links a:hover { color: var(--amber); }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--amber); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; text-align: center; font-size: .85rem; color: #7e8aa0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .split .panel { max-width: 460px; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; gap: 0; padding: 10px 0; display: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px){
  .stats .container { grid-template-columns: 1fr 1fr; gap: 18px; }
  section.block { padding: 60px 0; }
}

/* ===== Djibouti / Horn of Africa identity ===== */

/* Flag-colour stripe at the very top of every page */
.dj-stripe {
  height: 5px; width: 100%;
  background: linear-gradient(90deg,
    var(--dj-blue) 0%, var(--dj-blue) 33%,
    #ffffff 33%, #ffffff 50%,
    var(--dj-green) 50%, var(--dj-green) 83%,
    var(--dj-red) 83%, var(--dj-red) 100%);
}

/* Small Djibouti flag (SVG) sits inline; this just sizes/frames it */
.dj-flag {
  display: inline-block; width: 26px; height: 18px; border-radius: 3px;
  overflow: hidden; vertical-align: middle; margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); flex: 0 0 auto;
}
.dj-flag svg { display: block; width: 100%; height: 100%; }

/* Eyebrow variant that shows the flag alongside the text */
.eyebrow.dj { display: inline-flex; align-items: center; gap: 2px; }

/* African-inspired geometric band (original chevron/diamond weave) */
.african-band {
  height: 16px; width: 100%;
  background:
    repeating-linear-gradient(135deg, var(--dj-green) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(45deg, var(--dj-red) 0 10px, var(--amber) 10px 20px);
  background-blend-mode: overlay;
  opacity: .9;
}
/* subtler version for light sections */
.african-band.soft {
  height: 14px; opacity: .55;
  background:
    repeating-linear-gradient(45deg, var(--dj-blue) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(135deg, var(--amber) 0 8px, var(--dj-green) 8px 16px);
}

/* Red five-point star bullet (from the flag) */
.dj-star { color: var(--dj-red); }

/* Heritage strip */
.heritage {
  background:
    linear-gradient(120deg, rgba(11,21,36,.93) 0%, rgba(31,53,81,.80) 100%),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?q=80&w=1400&auto=format&fit=crop") center/cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
.heritage::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background:
    repeating-linear-gradient(60deg, var(--dj-blue) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(-60deg, var(--dj-green) 0 14px, transparent 14px 28px);
}
.heritage .container { position: relative; z-index: 1; padding: 56px 24px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.heritage .star-badge {
  width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
}
.heritage .star-badge svg { width: 46px; height: 46px; }
.heritage h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.heritage h2 .accent2 { color: var(--dj-blue); }
.heritage p { color: #c6cfdc; margin: 0; max-width: 640px; }
@media (max-width: 700px){
  .heritage .container { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Icon tiles on concept cards — Djibouti flag accent (blue→white→green w/ red icon) */
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--dj-red);
  background: linear-gradient(135deg, #e6f3fc 0%, #ffffff 48%, #e7f8ec 100%);
  border: 1px solid rgba(18,173,43,.18);
}
.card .ico svg { width: 27px; height: 27px; }

/* Flag-gradient underline beneath centred section headings */
.section-head h2 { position: relative; padding-bottom: 20px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 70px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--dj-blue) 0 40%, var(--dj-green) 40% 74%, var(--dj-red) 74% 100%);
}

/* Flag-coloured icon tiles on contact info cards */
.info-card .ico { background: linear-gradient(135deg, var(--dj-blue), var(--dj-green)); color: #fff; }
