/* African Connection General Trading — site styles
   Palette + tokens per CLAUDE-DESIGN.md. Honesty rules: no invented data. */

:root {
  --bg:        #FBF7F1;
  --surface:   #FFFFFF;
  --text:      #2A2320;
  --muted:     #6E625A;
  --primary:   #C6692E;
  --primary-d: #A9551F;
  --secondary: #1F6B5E;
  --secondary-d:#175349;
  --accent:    #E9A92A;
  --border:    #E7DCCF;
  --focus:     #1F6F5C;

  --surface-warm: #F4ECE0;
  --logo-bg: #FCF8F3; /* exact background of media/logo.webp — surfaces that host the logo */
  --shadow-sm: 0 1px 2px rgba(42,35,32,.05), 0 1px 3px rgba(42,35,32,.06);
  --shadow-md: 0 4px 12px rgba(42,35,32,.07), 0 2px 6px rgba(42,35,32,.05);
  --shadow-lg: 0 18px 48px rgba(42,35,32,.13), 0 6px 18px rgba(42,35,32,.07);

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
}

/* heading-font tweak hooks */
[data-headfont="poppins"]      { --font-head: 'Poppins', system-ui, sans-serif; }
[data-headfont="space-grotesk"]{ --font-head: 'Space Grotesk', system-ui, sans-serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: var(--s4); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-d); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-d); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: #1f8a4c; color: #fff; }
.btn-wa:hover { background: #19743f; }
.btn-lg { min-height: 56px; font-size: 1.06rem; padding: 0 28px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--logo-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 80px; }
.header .brand { height: 80px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-logo { height: 120px; width: auto; display: block; }
.brand-foot { display: inline-flex; width: fit-content; background: var(--logo-bg); padding: 10px 16px; border-radius: 14px; }
.brand-foot .brand-logo { height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 1.04rem; letter-spacing: -.01em; }
.brand-text b span { color: var(--primary); }
.brand-text small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-family: var(--font-head); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text); padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-warm); color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-btn { display: none; background: var(--surface); border: 1.5px solid var(--border); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--text); }
.menu-btn svg { width: 22px; height: 22px; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: 80px 0 auto 0; z-index: 55;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 14px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .mobile-nav .m-actions { display: grid; gap: 10px; margin-top: 18px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); padding: 7px 15px 7px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600; font-family: var(--font-head); color: var(--muted); box-shadow: var(--shadow-sm); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 22%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.05rem); margin: 22px 0 0; max-width: 14ch; }
.hero h1 .hl { color: var(--primary); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; }
.hero-meta li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--muted); font-weight: 600; font-family: var(--font-head); }
.hero-meta svg { width: 18px; height: 18px; color: var(--secondary); flex: 0 0 auto; }

/* hero visual — abstract brand-mark motif (styled placeholder, no stretched photo) */
/* hero visual — the supplied logo on a warm card (real asset, not a stretched photo) */
.hero-visual { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(125% 125% at 50% 42%, var(--logo-bg) 0%, var(--logo-bg) 40%, var(--surface-warm) 72%, #EFE3D2 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px 26px 24px; }
.hero-logo { width: 82%; max-width: 410px; height: auto; mix-blend-mode: multiply; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-chips span { font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }

/* ---------- trust strip ---------- */
.trust { background: var(--text); color: #F4ECE0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 8px; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 11px; flex: 1 1 200px; min-width: 180px; }
.trust-item svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; }
.trust-item b { font-family: var(--font-head); font-weight: 700; font-size: .98rem; display: block; }
.trust-item small { color: color-mix(in srgb, #F4ECE0 70%, transparent); font-size: .8rem; }
.trust-sep { width: 1px; height: 34px; background: rgba(244,236,224,.18); flex: 0 0 auto; }
@media (max-width: 760px){ .trust-sep { display: none; } .trust-item { flex: 1 1 44%; } }

/* ---------- trade categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column;
}
.cat-card::before { content:""; position:absolute; inset: 0 0 auto 0; height: 3px; background: var(--cat, var(--primary)); opacity: .9; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--cat, var(--primary)) 40%, var(--border)); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--cat, var(--primary)) 13%, var(--surface)); color: var(--cat, var(--primary)); }
.cat-ico svg { width: 27px; height: 27px; }
.cat-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cat-tags span { font-size: .76rem; font-weight: 600; font-family: var(--font-head); color: var(--muted);
  background: var(--surface-warm); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 880px){ .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .cat-grid { grid-template-columns: 1fr; } }

/* real products strip */
.shelf { margin-top: var(--s4); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.shelf-head h3 { font-size: 1.3rem; }
.shelf-head p { color: var(--muted); font-size: .9rem; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shelf-track::-webkit-scrollbar { height: 8px; }
.shelf-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.prod {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.prod-img { height: 130px; background: var(--surface-warm); display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.prod-img img { max-height: 106px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.prod-cap { padding: 11px 13px; }
.prod-cap b { display: block; font-family: var(--font-head); font-weight: 700; font-size: .86rem; line-height: 1.25; }
.prod-cap small { color: var(--muted); font-size: .76rem; }

/* ---------- about / why ---------- */
.about { background: var(--surface-warm); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 14px 0 18px; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 16px; }
.about-copy p strong { color: var(--text); }
.why-list { display: grid; gap: 14px; margin-top: 8px; }
.why-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.why-item .ic { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; background: color-mix(in srgb, var(--secondary) 12%, var(--surface)); color: var(--secondary); }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item b { font-family: var(--font-head); font-size: 1.05rem; display: block; margin-bottom: 3px; }
.why-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-d) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band::after { content:""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(233,169,42,.45), transparent 60%); }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 10px; max-width: 42ch; }
.cta-band .btn-primary { background: #fff; color: var(--primary-d); }
.cta-band .btn-primary:hover { background: #FCEFD9; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.info-row { display: flex; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.info-row .ic svg { width: 21px; height: 21px; }
.info-row .lab { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-row .val { font-size: 1.04rem; font-weight: 600; }
.info-row .val a:hover { color: var(--primary); }
.info-row .sub { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.hours-line { display: flex; justify-content: space-between; gap: 14px; font-size: .96rem; }
.hours-line span:first-child { white-space: nowrap; }
.hours-line + .hours-line { margin-top: 6px; }
.hours-line.closed { color: var(--muted); }

.map-ph { margin-top: 18px; border-radius: var(--radius); overflow: hidden; }
.map-ph iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 12px; }

/* quote form */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(22px, 3vw, 32px); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .form-lead { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .86rem; margin-bottom: 7px; }
.field label .req { color: var(--primary); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 18%, transparent); }
.field textarea { resize: vertical; min-height: 104px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: grid; gap: 10px; margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; line-height: 1.45; }
.form-sent { background: color-mix(in srgb, var(--secondary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--secondary) 35%, var(--border)); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.form-sent .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.form-sent .ic svg { width: 28px; height: 28px; }
.form-sent h3 { margin-bottom: 8px; }
.form-sent p { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 860px){ .about-grid, .contact-grid { grid-template-columns: 1fr; } .form-grid2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--text); color: #E9DFD3; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(244,236,224,.14); }
.footer .brand-text b { color: #fff; }
.footer .brand-text small { color: rgba(233,223,211,.6); }
.footer-blurb { color: rgba(233,223,211,.72); font-size: .94rem; margin-top: 16px; max-width: 38ch; }
.footer h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(233,223,211,.55); margin-bottom: 14px; font-weight: 700; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #E9DFD3; font-size: .96rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { font-size: .94rem; margin-bottom: 9px; color: rgba(233,223,211,.82); display: flex; gap: 9px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(233,223,211,.55); }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (max-width: 760px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin: 6px auto 0; aspect-ratio: 4/3; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
