/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --color-bg:          #F9F9F9;
  --color-surface:     #ffffff;
  --color-dark:        #252525;
  --color-mid:         #555555;
  --color-accent:      #DF4F64;
  --color-white:       #FFFFFF;
  --color-border:      #E0DDD6;

  --font:              'Montserrat', sans-serif;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  --transition: 0.3s ease;
}

/* Tablet: ≤ 970px — global token overrides */
@media (max-width: 970px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3rem;
  }
}

/* Mobile: ≤ 750px — global token overrides */
@media (max-width: 750px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2.5rem;
  }
}

/* ─────────────────────────────────────────────
   BASE OVERRIDES
   Bootstrap sets html at 10px and body to Helvetica Neue 14px.
───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY SCALE
   Scoped to .section — present on every content section in the HTML —
   and .signup-section. This gives specificity (0,1,1), beating Bootstrap's
   bare element rules without any HTML changes.
───────────────────────────────────────────── */
.section h1,
.signup-section h1 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0;
}

.section h1        { font-size: clamp(2rem, 5vw, 3.2rem); }
.signup-section h1 { font-size: clamp(3rem, 5vw, 4rem); color: var(--color-white); font-weight: 400; }

.section h2 {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0;
}

.section h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 0;
}

.section h4 {
  font-family: var(--font);
  font-style: italic;
  font-weight: 200;
  font-size: 1.3rem;
  margin-top: 0.5em;
  margin-bottom: 0;
}

.section h6 {
  font-family: var(--font);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-mid);
  margin-top: 0;
  margin-bottom: 0;
}

/* Bootstrap/site CSS set p margins globally. Reset within our sections. */
.section p {
  color: var(--color-mid);
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0;
}

.signup-section p {
  max-width: 60ch;
}

.section small {
  font-size: 1rem;
  color: var(--color-mid);
  letter-spacing: 0.05em;
}

.section p strong {
  font-weight: 500;
}

/* Site CSS sets a { color: #e04f67 } globally. Neutralise within our sections. */
.section a,
.signup-section a {
  color: inherit;
  text-decoration: none;
}

/* img reset within our sections. */
.section img,
.signup-section img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Bootstrap sets ul margins. Reset list-style within our sections. */
.section ul { list-style: none; }

.br { display: block; }

/* ─────────────────────────────────────────────
   LAYOUT UTILITIES
   Bootstrap's .container sets fixed widths (750/970/1170px) at breakpoints.
   We only add our padding on top of it.
───────────────────────────────────────────── */
.container {
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--surface {
  background-color: var(--color-surface);
}

/* ─────────────────────────────────────────────
   SPACING HELPERS
───────────────────────────────────────────── */
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }

.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }

/* ─────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
  margin-block: var(--space-md);
}

.divider--center { margin-inline: auto; }
.divider--right  { margin-left: auto; margin-right: 0; }

/* ─────────────────────────────────────────────
   BUTTONS
   Bootstrap's .btn has padding, border-radius 4px, font-size 14px,
   font-weight 400, and its own hover/active box-shadows.
   We override all the properties we care about.
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 3rem;
  border: 0px;
  border-radius: 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover,
.btn:focus {
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: none;
}

.btn:active {
  background-image: none;
  box-shadow: none;
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover,
.btn--accent:focus {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ─────────────────────────────────────────────
   BULLET LISTS
───────────────────────────────────────────── */
.styled-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-mid);
  font-size: 1.4rem;
  line-height: 1.6em;
}

.styled-list li > span,
.styled-list li > div {
  display: block;
}

.styled-list__icon {
  flex-shrink: 0;
  font-size: 2rem;
  color: var(--color-accent);
  margin-top: 0.2em;
  width: 30px;
  text-align: center;
}

@media (max-width: 750px) {
  .styled-list__icon {
    margin-left: -30px;
  }
}

/* ─────────────────────────────────────────────
   IMAGE UTILITIES
───────────────────────────────────────────── */
.img-placeholder {
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mid);
  font-size: 0.75rem;
  font-family: var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
}

.vid-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  width: 100%;
  height: 460px;
  position: relative;
}

.img-placeholder--landscape { aspect-ratio: 16 / 9; }
.img-placeholder--square    { aspect-ratio: 1 / 1; }

.image-caption {
  display: block;
  font-size: 0.72rem;
  color: var(--color-mid);
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

/* ─────────────────────────────────────────────
   GRID SYSTEMS
───────────────────────────────────────────── */

/* 3-col: 40 / 20 / 40 */
.grid-trust {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
}

/* 2-col: 40 / 60 */
.grid-2col-40-60 {
  display: grid;
  grid-template-columns: 40% 55%;
  gap: var(--space-lg);
  align-items: center;
}

/* 2-col: 60 / 40 */
.grid-2col-60-40 {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 970px) {
  .grid-2col-40-60,
  .grid-2col-60-40 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ─────────────────────────────────────────────
   SECTION 1 — INTRO
───────────────────────────────────────────── */
.intro-section {
  text-align: center;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.intro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/about/hero.webp');
  background-attachment: fixed;
  background-position: top;
}

.intro-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 14, 0.4) 0%,
    rgba(20, 18, 14, 0.95) 100%)
}

.intro-section .container {
  position: relative;
  z-index: 1;
}

.intro-section h1 {
  color: var(--color-white);
  margin-top: 3em;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
}

.intro-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
}

.intro-section__title {
  margin-inline: auto;
  max-width: 40ch;
  text-wrap: balance;
}

.intro-section__paragraph {
  margin-inline: auto !important;
  margin-top: var(--space-md);
}

@media (max-width: 970px) {
  .intro-section__title span {
    display: none;
  }
}

@media (max-width: 750px) {
  .intro-section {
    height: auto;
    min-height: 550px;
    padding-block: 4rem;
  }
}

/* ─────────────────────────────────────────────
   SECTION 2 — TRUST
───────────────────────────────────────────── */
.trust-section__left {
  text-align: right;
  order: 1;
  text-wrap: balance;
}

.trust-section__left p {
  margin-left: auto;
}

.trust-section__left .divider {
  margin-left: auto;
  margin-right: 0;
}

.trust-section__center {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  width: 220px;
  height: 600px;
}

.trust-section__center-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 30% top;
}

.trust-section__right {
  text-align: left;
  order: 3;
}

.trust-section__right-item p {
  margin-top: var(--space-xs);
}

@media (max-width: 970px) {
  .grid-trust {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .trust-section__left {
    order: 1;
    text-align: center;
  }

  .trust-section__left p,
  .trust-section__left .divider {
    margin-inline: auto;
  }

  .trust-section__center {
    order: 2;
    width: 100%;
    height: 300px;
  }

  .trust-section__center-image {
    max-width: 600px;
    object-position: 60% 20%;
  }

  .trust-section__right {
    order: 3;
    text-align: center;
  }

  .trust-section__right p,
  .trust-section__right .divider {
    margin-inline: auto;
    max-width: 400px;
  }
}

@media (max-width: 750px) {
  .grid-trust { gap: var(--space-md); }
}

/* ─────────────────────────────────────────────
   SECTION 3 — MAP
───────────────────────────────────────────── */
.map-section {
  text-align: center;
}

.map-section__title {
  text-wrap: balance;
  max-width: 40ch;
  margin-inline: auto;
}

.map-section__paragraph {
  margin-inline: auto !important;
  margin-top: var(--space-sm);
  max-width: 90ch;
}

.map-section__image {
  margin-top: var(--space-lg);
  width: 100%;
}

.map-section__map-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.map-section__map {
  display: block;
  width: 100%;
  height: auto;
}

.map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translateX(-50%) translateY(-100px);
  width: 3%;
  height: auto;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.map-pin.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-md);
}

.map-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.map-stat__number {
  font-family: var(--font);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.map-stat__label {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (max-width: 970px) {
  .map-stats {
    gap: var(--space-md);
  }
}

@media (max-width: 750px) {
  .map-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* ─────────────────────────────────────────────
   SECTION 4 — SCALE
───────────────────────────────────────────── */
.scale-section {
  text-align: left;
}

.scale-section__eyebrow {
  margin-bottom: -6px;
  text-wrap: balance;
}

.scale-section__title {
  margin-top: var(--space-xs);
  text-wrap: balance;
}

.scale-section__paragraph,
.scale-section__paragraph--secondary {
  max-width: 100%;
  margin-inline: 0;
}

.scale-section__image-wrapper {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scale-section__image {
  width: 100%;
  max-width: 820px;
}

.scale-section__caption {
  max-width: 820px;
  width: 100%;
  font-size: 1rem;
}

.scale-items {
  display: flex;
  flex-direction: column;
}

.scale-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding-block: var(--space-sm);
  margin-inline: var(--space-xl);
}

.scale-item:last-child {
  margin-bottom: var(--space-md);
}

.scale-item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scale-item__number {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.scale-item__heading {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  line-height: 1.3;
}

.scale-item__body {
  color: var(--color-mid);
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 970px) {
  .scale-item {
    margin-inline: var(--space-lg);
  }
}

/* ─────────────────────────────────────────────
   SECTION 5 — LOGISTICS
───────────────────────────────────────────── */
.logistic-section {
  text-align: center;
}

.logistic-section__paragraph {
  margin-inline: auto !important;
  margin-top: var(--space-sm);
  max-width: 100ch;
}

.logistic-section__grid {
  margin-top: var(--space-xl);
  text-align: left;
}

.logistic-section__image {
  width: 100%;
  height: 100%;
}

.logistic-section__image img {
  object-fit: cover;
  object-position: center top;
  height: 100%;
}

.logistic-section__content .styled-list {
  margin-top: var(--space-sm);
}

.logistic-icon {
  width: 24px;
  margin-right: 1rem;
}

@media (max-width: 970px) {
  .logistic-section__image {
    max-width: 500px;
    margin-bottom: var(--space-lg);
    margin-inline: auto;
  }

  .logistic-section__image img {
    aspect-ratio: initial;
  }

  .logistic-section__content span {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   SECTION 6 — PARTNER / TRADE
───────────────────────────────────────────── */
.partner-section {
  text-align: center;
}

.partner-section__intro {
  margin-inline: auto !important;
  margin-top: var(--space-sm);
  max-width: 100ch;
}

.partner-section__grid {
  margin-top: var(--space-xl);
  text-align: left;
}

.partner-section__content p {
  max-width: 100ch;
}

.partner-section__content .styled-list {
  margin-top: var(--space-sm);
}

.partner-section__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 70% top;
}

.trade-items {
  display: flex;
  flex-direction: column;
}

.trade-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding-block: var(--space-sm);
}

.trade-item:last-child {
  margin-bottom: var(--space-md);
}

.trade-item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.trade-item__number {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.trade-item__heading {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  line-height: 1.3;
}

.trade-item__body {
  color: var(--color-mid);
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  align-self: center;
}

@media (max-width: 970px) {
  .partner-section__image {
    order: -1;
    margin-bottom: var(--space-sm);
  }

  .trade-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    margin-left: var(--space-lg);
  }

  .trade-item__left {
    align-items: flex-start;
    text-align: left;
  }

  .trade-item__body {
    text-align: left;
  }
}

@media (max-width: 750px) {
  .partner-section__title span {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────────
   SECTION 7 — SIGN UP BANNER
───────────────────────────────────────────── */


.signup-section {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.signup-section__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark);
  background-image: url('../img/about/signup.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.signup-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(20, 18, 14, 0.55);
}

.signup-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-inline: var(--space-md);
}

.signup-section__paragraph {
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
  text-wrap: balance;
}

.signup-section__form {
  display: flex;
  width: 100%;
  max-width: 480px;
}

.signup-section__input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: none;
  background-color: #ebebebb6;
  color: var(--color-dark);
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  outline: none;
}

.signup-section__input::placeholder {
  color: var(--color-mid);
}

.signup-section__input:focus {
  background-color: #ebebebb6;
  box-shadow: none;
}

.signup-section__submit {
  padding: 0.6rem 1rem;
  border: none;
  background-color: var(--color-dark);
  color: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.signup-section__submit:hover {
  background-color: var(--color-accent);
}

@media (max-width: 750px) {
  .signup-section {
    height: auto;
    min-height: 550px;
    padding-block: 4rem;
  }

  .signup-section__form {
    flex-direction: column;
  }

  .signup-section__input {
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: none;
  }

  .signup-section__submit {
    padding-block: 1rem;
  }
}