/* =========================================================
   ARK GLOBAL — Premium commodities trading site
   ========================================================= */

:root {
  --navy:        #0A1B2E;
  --navy-800:    #0E2540;
  --navy-700:    #163458;
  --charcoal:    #1C1F26;
  --graphite:    #2B2F38;
  --gold:        #C6A15B;
  --gold-soft:   #D9BE86;
  --gold-deep:   #A9853F;
  --green:       #2E7D5B;

  --bg:          #F6F7F9;
  --bg-alt:      #EEF1F5;
  --white:       #FFFFFF;
  --ink:         #10161F;
  --muted:       #566073;
  --muted-light: #9AA6B6;
  --line:        #E4E8EE;
  --line-dark:   #24405f;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(16,22,31,.06), 0 4px 14px rgba(16,22,31,.05);
  --shadow-md:   0 10px 30px rgba(16,22,31,.10);
  --shadow-lg:   0 24px 60px rgba(10,27,46,.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --header-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy); box-shadow: 0 8px 22px rgba(198,161,91,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198,161,91,.45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,27,46,.0);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(10,27,46,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.25);
  height: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--sans); font-weight: 700; letter-spacing: .14em; font-size: 1.15rem; color: #fff; }
.brand-name-accent { color: var(--gold); margin-left: .18em; }
.brand-tag { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-cta { padding: 11px 22px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; width: 44px; height: 44px; justify-content: center; align-items: center;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(120% 100% at 50% 0%, var(--navy-700) 0%, var(--navy) 55%, #071322 100%);
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.hero-globe { width: 100%; height: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1.15); }
.hero-routes path { stroke-dasharray: 6 8; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,19,34,.2) 0%, rgba(7,19,34,0) 30%, rgba(7,19,34,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-eyebrow {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft);
  font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 26px;
}
.hero-title .accent { color: var(--gold-soft); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-strip {
  display: flex; flex-wrap: wrap; gap: 12px 30px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-strip li {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7);
  font-weight: 500; position: relative; padding-left: 20px;
}
.hero-strip li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; display: grid; place-items: start center; padding-top: 8px; }
.hero-scroll span { width: 4px; height: 8px; background: var(--gold-soft); border-radius: 2px; animation: scrolldot 1.8s ease infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translateY(0);} 40%{opacity:1;} 80%{opacity:0; transform: translateY(12px);} 100%{opacity:0;} }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); color: #fff; }

.eyebrow { font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 16px; }
.eyebrow-light { color: var(--gold-soft); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; color: var(--ink); }
.section-title-light { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }
.section-navy .section-intro { color: rgba(255,255,255,.75); }
.lead { font-size: 1.18rem; color: var(--ink); margin-bottom: 18px; }
.lead-light { color: rgba(255,255,255,.85); }
.section p { color: var(--muted); }
.section-navy p { color: rgba(255,255,255,.72); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-copy .lead { color: var(--ink); }
.about-points { display: grid; gap: 22px; }
.about-points li { display: flex; gap: 18px; background: var(--white); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ap-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fbf4e4, #f2e3c2); color: var(--gold-deep); }
.about-points h3 { font-size: 1.08rem; margin-bottom: 4px; }
.about-points p { margin: 0; font-size: .96rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 24px; }
.commodities-grid { grid-template-columns: repeat(4, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }

.commodity-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.commodity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #dcc9a0; }
.cc-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold-soft); margin-bottom: 20px; transition: background .22s ease; }
.commodity-card:hover .cc-icon { background: var(--navy-700); }
.commodity-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.commodity-card p { margin: 0; font-size: .95rem; }
.commodity-card--more { background: linear-gradient(160deg, #fbf6ea, #f4ead2); border-color: #e6d5ac; }
.commodity-card--more .cc-icon { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--navy); }

.commodities-note { text-align: center; margin-top: 40px; color: var(--muted); font-size: 1.02rem; }
.commodities-note a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .28s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }
.sc-num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); font-weight: 600; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.service-card p { margin: 0; }

/* ---------- Sourcing ---------- */
.sourcing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.sourcing-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
.step { display: flex; gap: 16px; }
.step-no { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-soft); font-family: var(--serif); font-weight: 600; }
.step h3 { font-size: 1.06rem; color: #fff; margin-bottom: 4px; }
.step p { margin: 0; font-size: .92rem; }
.stat-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 38px 34px; backdrop-filter: blur(6px); }
.stat-lead { font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; color: #fff; margin-bottom: 16px; }
.stat-desc { color: rgba(255,255,255,.72); margin-bottom: 26px; }

/* ---------- Markets ---------- */
.markets-map { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-sm); }
.worldmap { width: 100%; height: auto; }
.map-routes path { stroke-dasharray: 5 7; animation: dash 18s linear infinite; }
.map-hubs circle { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-hubs circle:nth-child(2){ animation-delay:.4s } .map-hubs circle:nth-child(3){ animation-delay:.8s }
.map-hubs circle:nth-child(4){ animation-delay:1.2s } .map-hubs circle:nth-child(5){ animation-delay:1.6s } .map-hubs circle:nth-child(6){ animation-delay:2s }
@keyframes pulse { 0%,100%{ opacity:.5; } 50%{ opacity:1; } }
.markets-caption { text-align: center; margin: 26px 0 0; font-size: .88rem; color: var(--muted-light); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); transition: transform .2s ease, box-shadow .2s ease; }
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { margin: 0; font-size: .96rem; }

/* ---------- Quality ---------- */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quality-list { display: grid; gap: 14px; }
.quality-list li { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.quality-list span { color: var(--gold-deep); font-weight: 700; margin-right: 10px; }

/* ---------- Quote / form ---------- */
.quote-section { padding: clamp(64px, 9vw, 116px) 0; }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.quote-assurances { margin-top: 28px; display: grid; gap: 12px; }
.quote-assurances li { position: relative; padding-left: 30px; color: rgba(255,255,255,.85); }
.quote-assurances li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-soft); font-weight: 700; }

.quote-form { background: var(--white); border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .86rem; font-weight: 600; color: var(--graphite); margin-bottom: 7px; }
.req { color: var(--gold-deep); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfd; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(198,161,91,.16); }
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
.form-status { margin: 16px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: var(--green); }
.form-status.error { color: #c0392b; }
.form-privacy { margin: 12px 0 0; font-size: .82rem; color: var(--muted-light); text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-card:not(.contact-card--static):hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dcc9a0; }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--navy); color: var(--gold-soft); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #071322; color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-name { font-size: 1.35rem; }
.footer-brand p { margin-top: 16px; max-width: 340px; color: rgba(255,255,255,.6); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-nav h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-nav a { display: block; color: rgba(255,255,255,.7); padding: 6px 0; font-size: .95rem; transition: color .18s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.5); }
.footer-tag { color: var(--gold-soft) !important; font-style: italic; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-routes path, .map-routes path, .hero-scroll span, .map-hubs circle { animation: none; }
}

/* ---------- Mobile menu backdrop ---------- */
.nav-backdrop { position: fixed; inset: 0; background: rgba(4,10,18,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 90; }
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .commodities-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--navy); padding: calc(var(--header-h) + 10px) 30px 40px;
    transform: translateX(105%); transition: transform .34s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.35); z-index: 95; overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 24px; text-align: center; }

  .about-grid, .sourcing-grid, .quality-grid, .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .sourcing-steps { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .commodities-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .sourcing-steps { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 22px; }
  .markets-map { padding: 20px; }
  .section-head { margin-bottom: 40px; }
  .hero-strip { gap: 10px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-tag { display: none; }
}

@media (max-width: 380px) {
  .commodities-grid { grid-template-columns: 1fr; }
}
