/* Milli Trading Limited: additions on top of the Webflow template stylesheet. */
:root {
  --milli-green: #0e7a2d;
  --milli-green-dark: #0a5c22;
  --milli-orange: #f39043;
  --milli-orange-dark: #c8611f;
}

/* no sideways scrolling on any screen */
html, body { overflow-x: clip; }

/* ---------- logo ---------- */
.brand-logo-link { display: flex; align-items: center; gap: 12px; }
.site-logo { width: 46px; height: 46px; flex: none; display: block; }
.site-wordmark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media screen and (max-width: 479px) {
  .site-logo { width: 38px; height: 38px; }
  .site-wordmark { font-size: .9rem; letter-spacing: .14em; }
}

/* ---------- hero: brand background with the logo's gear motif ---------- */
.section-hero {
  background-color: #0b0c0b;
  background-image:
    url("../img/gears.svg"),
    radial-gradient(circle at 88% 18%, rgba(243, 144, 67, .30), rgba(243, 144, 67, 0) 46%),
    radial-gradient(circle at 8% 92%, rgba(14, 122, 45, .38), rgba(14, 122, 45, 0) 52%),
    linear-gradient(180deg, #0b0c0b 0%, #101210 100%);
  background-repeat: no-repeat;
  background-position: right -6vw center, 0 0, 0 0, 0 0;
  background-size: min(62vw, 820px) auto, cover, cover, cover;
}
.hero-sectors {
  display: block;
  margin-top: 18px;
  font-size: .875rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
}
.section-hero .hero-heading, .section-hero .hero-paragraph { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* ---------- call to action: photo background ---------- */
.section-cta {
  background-image:
    linear-gradient(180deg, rgba(6, 7, 9, .62) 0%, rgba(6, 7, 9, .84) 100%),
    url("../img/work/cta-agriculture-1024.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* ---------- services: 8 cards = two rows of four on wide screens ---------- */
@media screen and (min-width: 1200px) {
  .solution-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column-gap: 28px; grid-row-gap: 44px; }
}
.solution-image { object-fit: cover; height: auto; }
h3.solution-tag-text { margin: 0; font-size: inherit; line-height: 1.35; font-weight: inherit; }
.solution-tag-text b { display: block; }
.solution-tag-text span { display: block; font-weight: 400; opacity: .72; margin-top: 2px; }
.solution-item:focus-visible { outline: 2px solid var(--milli-green); outline-offset: 6px; border-radius: 12px; }

/* ---------- brand logos: even out the visual size of the SVGs ---------- */
.client-image.client-cat { max-height: 34%; }

/* ---------- how we work ---------- */
.steps-image { border-radius: 24px; display: block; object-fit: cover; max-height: 640px; }
h3.timeline-title { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }

/* ---------- credentials & team ---------- */
.section-credentials, .section-team { padding: 112px 0; background: #fff; }
.section-team { padding-top: 0; }
.cred-head { max-width: 760px; margin-bottom: 48px; }
.cred-heading {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--colors--black);
}
.cred-intro { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--colors--gray-5); }
.cred-grid, .team-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cred-item, .team-item {
  background: var(--colors--gray-1);
  border-radius: 20px;
  padding: 24px;
  border-top: 3px solid var(--milli-green);
}
.cred-item:nth-child(even) { border-top-color: var(--milli-orange); }
.team-item { border-top-color: var(--milli-orange); }
.cred-authority {
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--milli-green); margin-bottom: 12px;
}
.cred-title, .team-name { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.35; font-weight: 600; color: var(--colors--black); }
.cred-detail, .team-note { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--colors--gray-5); }
.team-role { font-size: .875rem; font-weight: 500; color: var(--milli-orange-dark); margin-bottom: 12px; }
@media screen and (max-width: 1199px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (max-width: 991px) {
  .section-credentials { padding: 80px 0; }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 479px) {
  .section-credentials { padding: 64px 0; }
  .cred-grid, .team-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
address.footer-block { font-style: normal; }
.footer-address { cursor: default; line-height: 1.5; max-width: 260px; }

/* ---------- accessibility ---------- */
a:focus-visible, .accordion-card:focus-visible { outline: 2px solid var(--milli-orange); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .clients-logo-block { animation: none !important; }
  /* the template's entrance animations are JavaScript-driven: show everything in place instead */
  .inner-animation, .hero-heading, .hero-paragraph, .hero-button-wrapper,
  .text-reveal-overlay { opacity: 1 !important; transform: none !important; }
  .text-reveal-overlay { display: none !important; }
}

/* ---------- logo pill: readable over any section once the page scrolls ---------- */
.nav-logo-link {
  background: rgba(255, 255, 255, .94);
  color: var(--colors--black);
  border-radius: 100vw;
  padding: 5px 18px 5px 5px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.nav-logo-link .site-logo { width: 38px; height: 38px; }
.nav-menu-header .brand-logo-link { color: var(--colors--black); }

/* ---------- "How we work": brand facts panel ---------- */
.how-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    url("../img/gears.svg") right -90px bottom -70px / 420px auto no-repeat,
    radial-gradient(circle at 100% 0%, rgba(243, 144, 67, .45), rgba(243, 144, 67, 0) 55%),
    linear-gradient(160deg, var(--milli-green) 0%, var(--milli-green-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.how-panel-logo { width: 64px; height: 64px; }
.how-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.how-fact { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 16px; }
.how-fact-value { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.how-fact:nth-child(odd) .how-fact-value { color: var(--milli-orange); }
.how-fact-label { margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .82); }
@media screen and (max-width: 479px) {
  .how-panel { min-height: 0; }
  .how-facts { gap: 24px 18px; }
}

/* ---------- small-screen fixes ---------- */
.footer-link { overflow-wrap: anywhere; }
@media screen and (max-width: 479px) {
  .section-promo { display: none; }
  .footer-content { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .footer-block a[href^="tel:"] { white-space: nowrap; }
}

@media screen and (max-width: 767px) {
  .section-cta {
    background-image:
      linear-gradient(180deg, rgba(6, 7, 9, .62) 0%, rgba(6, 7, 9, .84) 100%),
      url("../img/work/cta-agriculture-640.webp");
  }
}

.client-image { width: auto; }
