/* ==========================================================================
   SOLSTICE TRADING — solsticetradingfzco.com
   Single stylesheet. Vanilla CSS, mobile-first, no framework, no build step.

   Contents
     1.  Design tokens
     2.  Reset & base
     3.  Layout utilities
     4.  Top bar
     5.  Header & navigation
     6.  Buttons
     7.  Hero & page hero
     8.  Breadcrumb
     9.  Intro & badges
     10. Activity cards
     11. Icon cards (icard)
     12. Process steps
     13. Callouts & notices
     14. Chips
     15. Industry tiles
     16. Quote strip
     17. CTA band
     18. Contact items & checklist
     19. Legal pages
     20. Other activities & 404
     21. Footer
     22. Motion & print
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Brand palette — no hex value is hard-coded anywhere outside this block. */
  --c-green:  #283618; /* dark green   – header, footer, headings, dark sections */
  --c-olive:  #606c38; /* olive        – icons, links, borders */
  --c-cream:  #fefae0; /* cream        – page background */
  --c-tan:    #dda15e; /* tan / gold   – dividers, chip borders, accents on dark */
  --c-orange: #bc6c25; /* burnt orange – buttons, taglines, highlights */

  --c-ink:    #3a3a2c; /* body text */
  --c-card:   #fff8e3; /* card background */
  --c-white:  #ffffff;

  /* Orange measures only 3.8:1 on cream, so it may not carry small text.
     This darkened orange measures 4.7:1 on cream and gives the same accent
     at eyebrow / label / small-link sizes. Measured against the darker of the
     two page backgrounds (the .section--alt tan wash), not just cream:
     5.1:1 on cream, 4.7:1 on the wash, 5.4:1 against white. See CLAUDE.md. */
  --c-orange-dark: #9c5a1e;

  /* Translucent brand tints — decorative use only. */
  --c-tan-08:   rgba(221, 161, 94, .08);
  --c-tan-14:   rgba(221, 161, 94, .14);
  --c-tan-30:   rgba(221, 161, 94, .30);
  --c-cream-70: rgba(254, 250, 224, .70);
  --c-cream-85: rgba(254, 250, 224, .85);
  --c-green-20: rgba(40, 54, 24, .20);

  /* Green overlays laid over hero photographs, per spec section 11. */
  --c-overlay-a: rgba(40, 54, 24, .75);
  --c-overlay-b: rgba(40, 54, 24, .55);
  /* Lightened so the photograph reads in the short inner-page band. Measured
     against the brightest plausible pixel, cream text stays above 4.5:1. */
  --c-overlay-a-deep: rgba(40, 54, 24, .74);
  --c-overlay-b-deep: rgba(40, 54, 24, .60);

  /* Horizontal scrim over photo bands: heavy where the text sits, clearing
     towards the right so the photograph still reads. */
  --c-scrim-a: rgba(40, 54, 24, .92);
  --c-scrim-b: rgba(40, 54, 24, .74);
  --c-scrim-c: rgba(40, 54, 24, .30);

  /* Typography */
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-h1:      clamp(2rem, 1.35rem + 3.1vw, 3.25rem);       /* 32 → 52px */
  --fs-h2:      clamp(1.625rem, 1.35rem + 1.35vw, 2.25rem);  /* 26 → 36px */
  --fs-h3:      clamp(1.1875rem, 1.10rem + .40vw, 1.375rem); /* 19 → 22px */
  --fs-body:    clamp(1rem, .975rem + .12vw, 1.0625rem);     /* 16 → 17px */
  --fs-lead:    clamp(1.0625rem, 1rem + .35vw, 1.1875rem);   /* 17 → 19px */
  --fs-small:   .875rem;                                     /* 14px */

  --lh-body: 1.65;

  /* Space */
  --gutter: 16px;
  --maxw: 1200px;
  --maxw-text: 760px;
  --section-y: 56px;

  --radius: 6px;
  --radius-pill: 999px;

  --shadow-md: 0 6px 18px var(--c-green-20);

  --speed: 150ms;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 72px; }
}

@media (min-width: 960px) {
  :root { --section-y: 88px; }
}


/* 2. Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--c-green);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-olive);
  text-decoration: underline;
  text-underline-offset: .18em;
  transition: color var(--speed) ease;
}
a:hover { color: var(--c-green); }

img, picture, svg { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

/* Visible focus — 3px tan outline, 2px offset (spec 8.2). */
:focus-visible {
  outline: 3px solid var(--c-tan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On green surfaces the tan ring gains a cream halo so it stays visible. */
.topbar :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.quote-strip :focus-visible,
.site-footer :focus-visible {
  box-shadow: 0 0 0 5px var(--c-cream-70);
}

::selection { background: var(--c-tan-30); }


/* 3. Layout utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight {
  padding-top: calc(var(--section-y) * .65);
  padding-bottom: calc(var(--section-y) * .65);
}

/* --c-card sits only ~1% off --c-cream, so alternating bands built from it are
   invisible. A tan wash separates the bands and still lets cards read on top. */
.section--alt   { background: var(--c-tan-14); }
.section--green { background: var(--c-green); color: var(--c-cream-85); }
.section--green h2, .section--green h3 { color: var(--c-cream); }
.section--olive { background: var(--c-olive); color: var(--c-white); }
.section--olive h2, .section--olive h3 { color: var(--c-white); }

.section__head { max-width: var(--maxw-text); margin-bottom: 2rem; }
.section__head p { font-size: var(--fs-lead); }

.eyebrow {
  display: block;
  margin: 0 0 .6rem;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-orange-dark);
}
.hero .eyebrow,
.page-hero .eyebrow,
.section--green .eyebrow,
.section--olive .eyebrow { color: var(--c-tan); }

.lead { font-size: var(--fs-lead); }
.text-col { max-width: var(--maxw-text); }

.note {
  font-size: var(--fs-small);
  font-style: italic;
  opacity: .85;
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* legacy fallback; clip-path below is the modern rule */
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first focusable element on every page */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-green);
  color: var(--c-cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--speed) ease;
}
.skip-link:focus { top: 0; color: var(--c-cream); }

/* Generic responsive grids */
.grid { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Icon circle — shared by badges, cards, tiles and contact items */
.icon-circle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-olive);
  color: var(--c-cream);
  font-size: 22px;
}
.icon-circle--orange { background: var(--c-orange); color: var(--c-white); }
.icon-circle--sm { width: 44px; height: 44px; font-size: 18px; }


/* 4. Top bar (desktop only)
   ========================================================================== */

.topbar { display: none; }

@media (min-width: 960px) {
  .topbar {
    display: block;
    height: 36px;
    background: var(--c-green);
    color: var(--c-cream);
    font-size: var(--fs-small);
  }
  .topbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    height: 100%;
  }
  .topbar a,
  .topbar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-cream);
    text-decoration: none;
  }
  .topbar a:hover { color: var(--c-tan); text-decoration: underline; }
  .topbar i { color: var(--c-tan); }
}


/* 5. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-cream);
  border-bottom: 3px solid var(--c-tan);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  text-decoration: none;
}
.brand img { display: block; width: 210px; height: 36px; }

/* Burger toggle — hidden from 960px up */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--c-olive);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-green);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
/* Hidden until main.js enables it, so it is never a dead control. */
.nav-toggle[hidden] { display: none; }
.nav-toggle .fa-xmark { display: none; }
.nav-toggle[aria-expanded="true"] .fa-xmark { display: inline-block; }
.nav-toggle[aria-expanded="true"] .fa-bars { display: none; }

/* Mobile: stacked panel. main.js sets hidden/is-open; with JavaScript off the
   panel simply stays visible, so every link remains reachable (spec 2.1). */
.site-nav {
  width: 100%;
  padding-bottom: 16px;
}
.site-nav[hidden] { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav > ul > li { border-top: 1px solid var(--c-tan-30); }

.site-nav ul a {
  display: block;
  padding: 12px 4px;
  color: var(--c-green);
  font-weight: 700;
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--c-orange-dark); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-orange); }

/* Activities dropdown — CSS only, :hover + :focus-within */
.has-dropdown > a .fa-chevron-down { font-size: 11px; margin-left: 6px; }

.dropdown {
  margin: 0 0 8px;
  padding-left: 16px;
  border-left: 2px solid var(--c-tan);
}
.dropdown a {
  padding: 9px 4px;
  font-weight: 400;
  font-size: var(--fs-small);
}

.nav-cta { margin-top: 14px; }
.nav-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-header .container { flex-wrap: nowrap; }

  .site-nav,
  .site-nav[hidden] {
    display: flex;
    align-items: center;
    width: auto;
    padding-bottom: 0;
  }
  .site-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav > ul > li {
    position: relative;
    border-top: 0;
    margin-bottom: 0;
  }
  .site-nav > ul > li > a {
    padding: 26px 14px;
    font-size: var(--fs-body);
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 110;
    visibility: hidden;
    opacity: 0;
    min-width: 330px;
    margin: 0;
    padding: 8px 0;
    background: var(--c-card);
    border: 1px solid var(--c-tan);
    border-top: 3px solid var(--c-orange);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    transition: opacity var(--speed) ease, visibility var(--speed) ease;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    visibility: visible;
    opacity: 1;
  }
  .dropdown a { padding: 10px 18px; }
  .dropdown a:hover { background: var(--c-tan-14); }

  .nav-cta { margin: 0 0 0 10px; }
  .nav-cta .btn { width: auto; }
}


/* 6. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  /* 19px/700 keeps white-on-orange within the large-bold-text allowance. */
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed) ease, color var(--speed) ease,
              border-color var(--speed) ease;
}

/* Primary buttons use the darkened orange so white text clears 4.5:1 at every
   size, including the compact header CTA. --c-orange alone is 4.0:1, which
   only the largest bold labels are allowed to use. */
.btn--primary {
  background: var(--c-orange-dark);
  border-color: var(--c-orange-dark);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-cream);
}

/* Secondary on dark sections: cream text, tan border. */
.btn--secondary {
  background: transparent;
  border-color: var(--c-tan);
  color: var(--c-cream);
}
.btn--secondary:hover { background: var(--c-tan); color: var(--c-green); }

/* Secondary on light sections: green text, olive border. */
.btn--secondary-light {
  background: transparent;
  border-color: var(--c-olive);
  color: var(--c-green);
}
.btn--secondary-light:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-cream);
}

.btn--lg { min-height: 56px; padding: 16px 30px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}


/* 7. Hero & page hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(56px, 10vw, 112px);
  padding-bottom: clamp(56px, 10vw, 112px);
  background-color: var(--c-green);
  background-image: radial-gradient(
    ellipse 90% 120% at 15% 0%,
    var(--c-olive) 0%,
    var(--c-green) 62%
  );
  color: var(--c-cream);
}

/* Two decorative translucent tan circles, CSS only (spec 3.3). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--c-tan-08);
  pointer-events: none;
}
.hero::before {
  width: 460px;
  height: 460px;
  top: -190px;
  right: -130px;
  background: var(--c-tan-14);
}
.hero::after {
  width: 300px;
  height: 300px;
  bottom: -140px;
  right: 18%;
}

.hero h1 { color: var(--c-cream); margin-bottom: .35em; }
.hero__text { max-width: 720px; }
.hero__sub {
  margin-bottom: 0;
  font-size: var(--fs-lead);
  color: var(--c-cream-85);
}

/* Photo-backed heroes.
   The photograph is a CSS background layered beneath a green overlay, so a
   missing file degrades to the plain gradient rather than a broken image.
   Drop files into assets/img/photos/ and they appear with no HTML change. */
.hero--photo,
.page-hero--photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* A photo-backed inner band needs more height than a flat green one, or the
   cover crop reduces the picture to an unreadable sliver. */
.page-hero--photo {
  padding-top: 56px;
  padding-bottom: 66px;
}

/* The lighter overlay lets bright photographs through, which would undercut the
   text. This scrim keeps the left side — where every label sits — dark enough,
   and fades out so the picture is still visible on the right. */
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    90deg,
    var(--c-scrim-a) 0%,
    var(--c-scrim-b) 52%,
    var(--c-scrim-c) 100%
  );
  pointer-events: none;
}
.page-hero--photo > .container {
  position: relative;
  z-index: 1;
}

/* Tan is only 2.7:1 over a bright photograph, so breadcrumb links on photo
   bands switch to cream. */
.page-hero--photo .breadcrumb a { color: var(--c-cream); }
.page-hero--photo .breadcrumb a:hover { color: var(--c-tan); }
.hero.hero--home {
  background-image:
    linear-gradient(var(--c-overlay-a), var(--c-overlay-b)),
    url("../img/photos/hero-home.jpg");
  background-image: linear-gradient(var(--c-overlay-a), var(--c-overlay-b)),
    image-set(
      url("../img/photos/hero-home.webp") type("image/webp"),
      url("../img/photos/hero-home.jpg") type("image/jpeg"));
}
.page-hero.page-hero--about {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/hero-about.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/hero-about.webp") type("image/webp"),
      url("../img/photos/hero-about.jpg") type("image/jpeg"));
}

/* Activity page heroes. File names follow spec section 11. */
.page-hero.page-hero--raw-materials {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-raw-materials.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-raw-materials.webp") type("image/webp"),
      url("../img/photos/act-raw-materials.jpg") type("image/jpeg"));
}
.page-hero.page-hero--heavy-equipment-spare-parts {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-heavy-equipment.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-heavy-equipment.webp") type("image/webp"),
      url("../img/photos/act-heavy-equipment.jpg") type("image/jpeg"));
}
.page-hero.page-hero--offshore-crude-oil {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-crude-oil.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-crude-oil.webp") type("image/webp"),
      url("../img/photos/act-crude-oil.jpg") type("image/jpeg"));
}
.page-hero.page-hero--offshore-refined-oil-products {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-refined-products.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-refined-products.webp") type("image/webp"),
      url("../img/photos/act-refined-products.jpg") type("image/jpeg"));
}
.page-hero.page-hero--charcoal-firewood {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-charcoal.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-charcoal.webp") type("image/webp"),
      url("../img/photos/act-charcoal.jpg") type("image/jpeg"));
}
.page-hero.page-hero--logistics-consultancy {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-logistics.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-logistics.webp") type("image/webp"),
      url("../img/photos/act-logistics.jpg") type("image/jpeg"));
}
.page-hero.page-hero--general-trading {
  background-image:
    linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    url("../img/photos/act-general-trading.jpg");
  background-image: linear-gradient(var(--c-overlay-a-deep), var(--c-overlay-b-deep)),
    image-set(
      url("../img/photos/act-general-trading.webp") type("image/webp"),
      url("../img/photos/act-general-trading.jpg") type("image/jpeg"));
}

/* Short green band at the top of every inner page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 36px;
  padding-bottom: 44px;
  background-color: var(--c-green);
  background-image: radial-gradient(
    ellipse 80% 140% at 10% 0%,
    var(--c-olive) 0%,
    var(--c-green) 65%
  );
  color: var(--c-cream);
}
.page-hero h1 {
  margin-bottom: 0;
  color: var(--c-cream);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
}
.page-hero__sub {
  max-width: 640px;
  margin: .8rem 0 0;
  font-size: var(--fs-lead);
  color: var(--c-cream-85);
}
.page-hero__icon {
  display: block;
  margin-bottom: 14px;
  font-size: 64px;
  line-height: 1;
  color: var(--c-tan);
}


/* 8. Breadcrumb
   ========================================================================== */

.breadcrumb {
  margin-bottom: 14px;
  font-size: var(--fs-small);
  color: var(--c-cream-85);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.breadcrumb a { color: var(--c-tan); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-cream); text-decoration: underline; }
.breadcrumb i { font-size: 10px; color: var(--c-tan); }


/* 9. Intro & badges
   ========================================================================== */

.intro { display: grid; gap: 32px; }

@media (min-width: 960px) {
  .intro {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

.badges { display: grid; gap: 16px; }

.badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-left: 4px solid var(--c-olive);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--c-green);
}
.badge:nth-child(even) { border-left-color: var(--c-orange); }
.badge:nth-child(even) .icon-circle {
  background: var(--c-orange);
  color: var(--c-white);
}


/* 10. Activity cards
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-left: 4px solid var(--c-olive);
  border-radius: var(--radius);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}
.card:nth-child(even) { border-left-color: var(--c-orange); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Decorative 16:10 photo area. Falls back to an olive-to-green wash while the
   photograph is absent, so the card never shows a broken image. */
.card__media {
  aspect-ratio: 16 / 10;
  background-color: var(--c-olive);
  background-image: linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--c-tan);
}

/* The photograph is layered above the gradient, so a missing file simply
   leaves the gradient showing. File names follow spec section 11. */
.card__media.card__media--raw-materials {
  background-image:
    url("../img/photos/act-raw-materials.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-raw-materials.webp") type("image/webp"),
      url("../img/photos/act-raw-materials.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--heavy-equipment-spare-parts {
  background-image:
    url("../img/photos/act-heavy-equipment.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-heavy-equipment.webp") type("image/webp"),
      url("../img/photos/act-heavy-equipment.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--offshore-crude-oil {
  background-image:
    url("../img/photos/act-crude-oil.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-crude-oil.webp") type("image/webp"),
      url("../img/photos/act-crude-oil.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--offshore-refined-oil-products {
  background-image:
    url("../img/photos/act-refined-products.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-refined-products.webp") type("image/webp"),
      url("../img/photos/act-refined-products.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--charcoal-firewood {
  background-image:
    url("../img/photos/act-charcoal.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-charcoal.webp") type("image/webp"),
      url("../img/photos/act-charcoal.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--logistics-consultancy {
  background-image:
    url("../img/photos/act-logistics.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-logistics.webp") type("image/webp"),
      url("../img/photos/act-logistics.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}
.card__media.card__media--general-trading {
  background-image:
    url("../img/photos/act-general-trading.jpg"),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
  background-image: image-set(
      url("../img/photos/act-general-trading.webp") type("image/webp"),
      url("../img/photos/act-general-trading.jpg") type("image/jpeg")),
    linear-gradient(135deg, var(--c-olive) 0%, var(--c-green) 100%);
}

.card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px;
}
/* The icon rides the seam between the photo area and the body, so the card
   reads as designed whether or not a photograph is present. */
.card__body .icon-circle {
  margin-top: -50px;
  margin-bottom: 14px;
  border: 3px solid var(--c-card);
}
.card:nth-child(even) .card__body .icon-circle {
  background: var(--c-orange);
  color: var(--c-white);
}

.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 1.1em; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--c-olive);
  font-weight: 700;
  text-decoration: none;
}
/* The whole card is one click target. Rather than wrapping the card in an <a>
   — which would nest anchors and be invalid — the existing "Learn more" link is
   stretched across it, so each card still exposes exactly one link with one
   accessible name. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:hover { color: var(--c-green); text-decoration: underline; }

/* Keyboard focus must ring the whole card, not the small link text alone. */
.card:focus-within {
  outline: 3px solid var(--c-tan);
  outline-offset: 2px;
}
.card:focus-within .card__link { text-decoration: underline; }
.card__link:focus-visible { outline: none; }

/* Hovering anywhere on the card should read as clickable. */
.card:hover .card__link { color: var(--c-green); text-decoration: underline; }
.card__link i { font-size: 13px; transition: transform var(--speed) ease; }
.card:hover .card__link i { transform: translateX(3px); }


/* 11. Icon cards (icard)
   ========================================================================== */

.icard {
  padding: 26px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
}
.icard .icon-circle { margin-bottom: 16px; }
.icard:nth-child(even) .icon-circle {
  background: var(--c-orange);
  color: var(--c-white);
}
.icard h3 { margin-bottom: .4em; }
.icard p { margin-bottom: 0; }

.section--green .icard,
.section--olive .icard {
  background: transparent;
  border-color: var(--c-tan);
  color: var(--c-cream-85);
}


/* 12. Process steps
   ========================================================================== */

.process {
  display: grid;
  gap: 24px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.process li {
  position: relative;
  margin: 0;
  padding: 26px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
  counter-increment: step;
}

.process__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-tan);
  font-size: 22px;
}
.process li::before {
  content: "Step " counter(step);
  position: absolute;
  top: 40px;
  left: 92px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-orange-dark);
}


/* 13. Callouts & notices
   ========================================================================== */

.callouts { display: grid; gap: 16px; }

.callout {
  padding: 18px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-left: 4px solid var(--c-olive);
  border-radius: var(--radius);
}
.callout:nth-child(even) { border-left-color: var(--c-orange); }
.callout p { margin: 0; }

/* Compliance note used on the two oil-trading pages */
.notice {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius);
}
.notice i { margin-top: 3px; font-size: 20px; color: var(--c-orange-dark); }
.notice p { margin: 0; }


/* 14. Chips
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.chips li { margin: 0; }

.chip {
  display: inline-block;
  padding: 8px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--c-ink);
}


/* 15. Industry tiles
   ========================================================================== */

.tiles { display: grid; gap: 16px; }

@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--c-green);
}
.tile i { font-size: 22px; color: var(--c-olive); }
.tile:nth-child(even) i { color: var(--c-orange-dark); }


/* 16. Quote strip
   ========================================================================== */

.quote-strip {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--c-green);
  color: var(--c-cream);
  text-align: center;
}
.quote-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.quote-strip i { font-size: 34px; color: var(--c-tan); }
.quote-strip p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.1875rem, 1rem + .8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}


/* 17. CTA band
   ========================================================================== */

.cta-band {
  padding-top: 52px;
  padding-bottom: 52px;
  background: var(--c-olive);
  color: var(--c-white);
}
.cta-band h2 { margin-bottom: .35em; color: var(--c-white); }
.cta-band p { max-width: 620px; margin-bottom: 0; }
.cta-band .container { display: grid; gap: 24px; align-items: center; }

@media (min-width: 960px) {
  .cta-band .container { grid-template-columns: 1fr auto; gap: 40px; }
  .cta-band .btn-row { margin-top: 0; }
}

.cta-band .btn--secondary { border-color: var(--c-cream); color: var(--c-white); }
.cta-band .btn--secondary:hover { background: var(--c-cream); color: var(--c-green); }


/* 18. Contact items & checklist
   ========================================================================== */

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-top: 4px solid var(--c-olive);
  border-radius: var(--radius);
}
.contact-item:nth-child(even) { border-top-color: var(--c-orange); }
.contact-item:nth-child(even) .icon-circle {
  background: var(--c-orange);
  color: var(--c-white);
}

.contact-item__label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-orange-dark);
}
.contact-item__value { font-weight: 700; color: var(--c-green); }
.contact-item a { color: var(--c-olive); font-weight: 700; }
.contact-item p { margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-tan-30);
}
.checklist li:last-child { border-bottom: 0; }
.checklist i { margin-top: .35em; color: var(--c-olive); }

.hours {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
}
.hours i { color: var(--c-olive); }

/* Enquiry-topic hint, filled in by main.js from the ?topic= parameter */
.topic-hint {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius);
}
.topic-hint.is-visible { display: flex; }
.topic-hint i { color: var(--c-orange-dark); }
.topic-hint p { margin: 0; }
.topic-hint strong { color: var(--c-green); }


/* 19. Legal pages
   ========================================================================== */

.legal { max-width: var(--maxw-text); }
.legal h2 {
  margin-top: 2.2em;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem);
  scroll-margin-top: 90px;
}
.legal h2:first-of-type { margin-top: 0; }

.legal__updated {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 8px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-green);
}

.toc {
  margin-bottom: 2.5rem;
  padding: 22px 26px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
}
.toc h2 { margin: 0 0 .8em; font-size: var(--fs-h3); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: .3em; font-size: var(--fs-small); }


/* 20. Other activities & 404
   ========================================================================== */

.other-activities {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) { .other-activities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .other-activities { grid-template-columns: repeat(3, 1fr); } }

.other-activities li { margin: 0; }
.other-activities a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: var(--c-card);
  border: 1px solid var(--c-tan);
  border-radius: var(--radius);
  color: var(--c-green);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--speed) ease, border-color var(--speed) ease;
}
.other-activities a:hover {
  background: var(--c-tan-14);
  border-color: var(--c-orange);
}
.other-activities i {
  width: 24px;
  font-size: 20px;
  color: var(--c-olive);
  text-align: center;
}

.error-page {
  padding-top: clamp(56px, 12vw, 120px);
  padding-bottom: clamp(56px, 12vw, 120px);
  text-align: center;
}
.error-page > i { display: block; margin-bottom: 20px; font-size: 56px; color: var(--c-tan); }
.error-page .btn-row { justify-content: center; }
.error-page .text-col { margin-left: auto; margin-right: auto; }


/* 21. Footer
   ========================================================================== */

.site-footer {
  background: var(--c-green);
  color: var(--c-cream-85);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr 1.3fr; gap: 40px; }
}

.site-footer h2 {
  margin-bottom: 1.1em;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-tan);
}

.footer-brand img { width: 210px; height: 36px; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; margin: 0; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: var(--c-cream); text-decoration: none; }
.site-footer a:hover { color: var(--c-tan); text-decoration: underline; }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact i {
  width: 16px;
  margin-top: .3em;
  color: var(--c-tan);
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--c-tan-30);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom li { margin: 0; }


/* 22. Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}

@media print {
  .topbar,
  .site-header,
  .cta-band,
  .quote-strip,
  .skip-link { display: none; }

  body { background: var(--c-white); color: var(--c-ink); }
  a { text-decoration: underline; }
}
