/* ============================================================
   SMH Supply Chain — Main Stylesheet
   Colour palette derived from company logo:
     Charcoal #2A2A2A  |  Red #D42B2B  |  White #FFFFFF
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:        #D42B2B;
  --red-dark:   #b52222;
  --charcoal:   #2A2A2A;
  --dark:       #141414;
  --grey:       #6B6B6B;
  --light-grey: #F5F5F5;
  --border:     #E4E4E4;
  --white:      #FFFFFF;
  --text:       #1C1C1C;
  --font:       'Inter', Arial, sans-serif;
  --max-w:      1140px;
  --radius:     3px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white);
       line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

.section       { padding: 88px 0; }
.section--grey { background: var(--light-grey); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark a { color: rgba(255,255,255,.7); }
.section--dark a:hover { color: var(--white); }

.section__label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.18;
  margin-bottom: 18px; color: var(--charcoal);
}
.section--dark .section__title { color: var(--white); }
.section__intro {
  font-size: 17px; color: var(--grey); line-height: 1.85; max-width: 680px;
}
.section--dark .section__intro { color: rgba(255,255,255,.72); }

.section__head { margin-bottom: 52px; }
.section__head--centre { text-align: center; }
.section__head--centre .section__intro { margin: 0 auto; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo img { height: 46px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav__links a {
  font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--charcoal); transition: color .2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--red); text-decoration: none; }

.nav__cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius); font-weight: 700 !important;
}
.nav__cta:hover { background: var(--red-dark) !important; text-decoration: none !important; }

/* Hamburger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; }

/* ── Hero (home) ───────────────────────────────────────────── */
.hero {
  background: var(--dark); color: var(--white);
  padding: 112px 0 100px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,43,43,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.12;
  margin-bottom: 22px; max-width: 820px; margin-left: auto; margin-right: auto;
}
.hero__sub {
  font-size: 19px; color: rgba(255,255,255,.72); max-width: 600px;
  margin: 0 auto 40px; font-weight: 300; line-height: 1.7;
}
.hero__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Inner page hero ───────────────────────────────────────── */
.page-hero {
  background: var(--charcoal); color: var(--white);
  padding: 60px 0 56px;
  border-bottom: 4px solid var(--red);
}
.page-hero__label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  line-height: 1.15; margin-bottom: 14px;
}
.page-hero__sub {
  font-size: 17px; color: rgba(255,255,255,.72);
  font-weight: 300; max-width: 600px; line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 14px 30px;
  border-radius: var(--radius); transition: .2s; text-decoration: none !important;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn--red     { background: var(--red);      color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border: 2px solid rgba(255,255,255,.45); color: var(--white); }
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--dark    { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #111; color: var(--white); }
.btn--outline-dark { border: 2px solid var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ── Stat strip ────────────────────────────────────────────── */
.stat-strip {
  background: var(--charcoal); color: var(--white);
  padding: 40px 0;
}
.stat-strip__grid {
  display: flex; justify-content: space-around;
  gap: 24px; flex-wrap: wrap;
}
.stat-strip__item { text-align: center; }
.stat-strip__num {
  font-size: 44px; font-weight: 800; color: var(--red); line-height: 1;
  display: block; margin-bottom: 6px;
}
.stat-strip__label {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--red); padding: 36px 32px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }

.card__num {
  font-size: 13px; font-weight: 700; color: var(--red);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.card h3 { font-size: 20px; font-weight: 700; color: var(--charcoal); margin-bottom: 12px; }
.card p  { font-size: 15px; color: var(--grey); line-height: 1.8; }

/* ── Industry tags ─────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--charcoal); color: var(--white);
  padding: 8px 18px; border-radius: 2px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ── Case study cards ──────────────────────────────────────── */
.cs-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.cs-card__header {
  background: var(--charcoal); padding: 28px 32px;
  border-left: 6px solid var(--red);
}
.cs-card__tag {
  font-size: 11px; font-weight: 700; color: var(--red);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; display: block;
}
.cs-card__title { font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.3; }

.cs-card__body { padding: 32px; background: var(--white); }
.cs-card__section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--charcoal); margin-bottom: 8px; display: block; margin-top: 20px;
}
.cs-card__section-label:first-child { margin-top: 0; }
.cs-card__body p { font-size: 15px; color: var(--grey); line-height: 1.85; }

.cs-card__result {
  margin-top: 24px; background: #FEF2F2; border-left: 4px solid var(--red);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.cs-card__result p {
  font-size: 15px; color: var(--charcoal) !important;
  font-weight: 600; line-height: 1.6;
}

/* ── Accent rule (mirrors logo's red stripe motif) ─────────── */
.accent-block {
  border-left: 4px solid var(--red); padding-left: 24px;
}
.accent-block h3 { font-size: 19px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.accent-block p  { font-size: 15px; color: var(--grey); line-height: 1.8; }

/* ── Split layouts ─────────────────────────────────────────── */
.split       { display: grid; gap: 64px; align-items: start; }
.split--2    { grid-template-columns: 1fr 1fr; }
.split--3860 { grid-template-columns: 2fr 3fr; }
.split--6040 { grid-template-columns: 3fr 2fr; }

/* ── About / photo ─────────────────────────────────────────── */
.photo-wrap { position: relative; }
.photo-wrap img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
}
.photo-placeholder {
  background: var(--light-grey); border: 2px dashed var(--border);
  aspect-ratio: 4/5; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; box-shadow: 8px 8px 0 var(--red);
}
.photo-placeholder p { color: var(--grey); font-size: 14px; line-height: 1.6; }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { list-style: none; }
.timeline__item {
  display: flex; gap: 28px; margin-bottom: 44px;
}
.timeline__marker {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
}
.timeline__dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--red); flex: 0 0 auto;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red);
}
.timeline__line { width: 2px; flex: 1; background: var(--border); margin-top: 6px; }
.timeline__item:last-child .timeline__line { display: none; }

.timeline__content { padding-bottom: 8px; }
.timeline__period {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px; display: block;
}
.timeline__role { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.timeline__org  { font-size: 14px; font-weight: 600; color: var(--grey); margin-bottom: 10px; }
.timeline__content p { font-size: 15px; color: var(--grey); line-height: 1.8; }

/* ── How I Work grid ───────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; }
.how-item { padding: 0 0 0 24px; border-left: 3px solid var(--red); }
.how-item h3 { font-size: 17px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
.how-item p  { font-size: 15px; color: var(--grey); line-height: 1.8; }

/* ── Countries list ────────────────────────────────────────── */
.countries-grid { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.country {
  font-size: 14px; color: var(--grey); padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 2px; background: var(--white);
}

/* ── Expertise list ────────────────────────────────────────── */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.exp-item {}
.exp-item h3 {
  font-size: 19px; font-weight: 700; color: var(--charcoal);
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--red);
}
.exp-item p { font-size: 15px; color: var(--grey); line-height: 1.85; }

/* ── Contact form ──────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--charcoal); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 15px;
  color: var(--text); transition: border-color .2s; background: var(--white);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ── CTA banner ────────────────────────────────────────────── */
.cta-band {
  background: var(--red); color: var(--white);
  padding: 72px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-band p  { font-size: 17px; color: rgba(255,255,255,.82); max-width: 540px; margin: 0 auto 32px; }
.cta-band .btn--dark { background: var(--dark); }
.cta-band .btn--dark:hover { background: #000; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 56px 0 28px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer__brand-name {
  font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 10px;
}
.footer__brand-name span { color: var(--red); }
.footer__brand p { font-size: 14px; line-height: 1.7; }

.footer__col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer__col a:hover { color: var(--red); text-decoration: none; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split--2, .split--3860, .split--6040 { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 13px 28px; border-radius: 0; }
  .nav__links .nav__cta { margin: 10px 28px; border-radius: var(--radius); text-align: center; }
  .nav__burger { display: flex; }
  .nav { position: relative; }

  .section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .stat-strip__grid { gap: 32px; }
}
