/* ==========================================================================
   QR Agri & Food Consulting — About page

   Loaded after style.css and responsive.css. Uses the same tokens, type
   scale and shapes as the home page; only the About-specific compositions
   live here. Class prefix: .abt-

   1. Page banner
   2. Story — who we are, with the founder quote on the photograph
   3. Dark band
   4. Services
   5. Responsive
   ========================================================================== */


/* ==========================================================================
   1. Page banner
   ========================================================================== */

.abt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--g-800);
}

.abt-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.abt-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.abt-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(78% 120% at 12% 100%, rgba(34, 31, 25, .74), transparent 68%),
    linear-gradient(180deg, rgba(34, 31, 25, .62) 0%, rgba(34, 31, 25, .40) 42%, rgba(34, 31, 25, .78) 100%);
}

.abt-hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 188px 40px 78px;
}

.abt-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253, 251, 245, .78);
  margin-bottom: 22px;
}

.abt-crumb a {
  color: rgba(253, 251, 245, .78);
}

.abt-crumb a:hover {
  color: var(--white);
}

.abt-crumb-sep {
  width: 18px;
  height: 1px;
  background: var(--g-300);
  opacity: .7;
}

.abt-crumb-here {
  color: var(--g-300);
}

.abt-hero-title {
  font-size: clamp(40px, 5vw, 70px);
  color: var(--white);
  max-width: 14em;
}

.abt-hero-rule {
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  margin-top: 26px;
}


/* ==========================================================================
   2. Story — photograph, founder quote, lead copy

   One section: the founder's words sit on the corner of the photograph, so
   the portrait, the claim and the copy read as a single statement.
   ========================================================================== */

.abt-story {
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px 40px 0;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 76px;
  /* the photograph takes its height from the copy beside it, so neither
     column leaves a well of empty space */
  align-items: stretch;
}

.abt-story-media {
  position: relative;
  isolation: isolate;
  display: flex;
  /* room for the quote card, which hangs past the photograph */
  padding: 0 0 64px;
}

.abt-story-copy {
  align-self: center;
}

.abt-figure-frame {
  position: relative;
  flex: 1;
  min-height: 470px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.abt-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* thin outlined frame, offset behind the photograph */
.abt-story-media::before {
  content: "";
  position: absolute;
  inset: -24px -26px 52px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  z-index: -1;
}

.abt-figure-tag {
  position: absolute;
  left: -20px;
  top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 11px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2f3d1f;
}

.abt-figure-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b-500);
  box-shadow: 0 0 0 4px rgba(69, 178, 94, .22);
}

/* --- founder quote, overlapping the photograph ---------------------------- */

.abt-quote {
  position: absolute;
  left: 44px;
  right: -58px;
  bottom: 0;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px 28px 24px 24px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

/* opening quote mark, set in the serif face */
.abt-quote::after {
  content: "\201C";
  position: absolute;
  right: 22px;
  top: 2px;
  font-family: Fraunces, Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--g-300);
  opacity: .55;
  pointer-events: none;
}

.abt-quote-portrait {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--tint), 0 0 0 5px var(--line);
}

.abt-quote-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.abt-quote-text {
  margin: 0 0 12px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.24;
  letter-spacing: -.014em;
  color: var(--ink);
  max-width: 17em;
}

.abt-quote-by {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.abt-quote-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.abt-quote-role {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  color: var(--muted);
}

.abt-quote-role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--red);
}

/* --- copy ----------------------------------------------------------------- */

.abt-lead-title {
  font-size: clamp(30px, 3vw, 44px);
  max-width: 15em;
  margin-bottom: 22px;
}

.abt-lead-text {
  position: relative;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 33em;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}

.abt-langs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.abt-lang {
  background: var(--g-100);
  color: #3f6b1f;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
}

.abt-lead-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}


/* ==========================================================================
   3. Dark band — organic & agriculture services
   ========================================================================== */

.abt-band-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 84px 40px 0;
}

.abt-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .1);
  /* deep olive of the brand mark, lifted towards the leaf green */
  background: linear-gradient(135deg, #1c2714 0%, #3c4a24 54%, #4f7a2c 100%);
  box-shadow: var(--shadow-lift);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  align-items: stretch;
  min-height: 460px;
}

.abt-band-glow {
  position: absolute;
  inset: -34% -20% auto -24%;
  height: 460px;
  z-index: -1;
  background: radial-gradient(56% 100% at 26% 0%, rgba(127, 200, 67, .34), transparent 70%);
  pointer-events: none;
}

.abt-band-copy {
  align-self: center;
  padding: clamp(38px, 4.6vw, 72px);
}

.abt-band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(185, 227, 173, .32);
  background: rgba(255, 255, 255, .07);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g-300);
}

.abt-band-title {
  font-size: clamp(32px, 3.4vw, 50px);
  max-width: 11em;
}

.abt-band-rule {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  margin: 26px 0 30px;
}

.abt-band-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: #2f3d1f;
  padding: 15px 24px 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}

.abt-band-cta svg {
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.abt-band-cta:hover {
  color: #2f3d1f;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .6);
}

.abt-band-cta:hover svg {
  transform: translateX(3px);
}

/* the photograph bleeds to the panel edge; the small card straddles the seam */
.abt-band-media {
  position: relative;
}

.abt-band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.abt-band-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(28, 39, 20, .9) 0%, rgba(28, 39, 20, .28) 34%, transparent 62%);
  pointer-events: none;
}

.abt-band-inset {
  position: absolute;
  z-index: 2;
  left: -64px;
  bottom: 42px;
  width: 208px;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .92);
  box-shadow: 0 26px 46px -22px rgba(0, 0, 0, .7);
}

.abt-band-inset img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}


/* ==========================================================================
   4. Services
   ========================================================================== */

.abt-services {
  max-width: 1320px;
  margin: 0 auto;
  padding: 82px 40px 84px;
}

.abt-services-head {
  text-align: center;
  margin-bottom: 46px;
}

.abt-services-head .section-title {
  margin: 0 auto;
  max-width: 16em;
}

.abt-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.abt-card-media {
  position: relative;
  height: 214px;
  overflow: hidden;
}

.abt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.abt-card:hover .abt-card-media img {
  transform: scale(1.06);
}

.abt-card-num {
  position: absolute;
  left: 18px;
  bottom: 18px;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(253, 251, 245, .94);
  color: #2f3d1f;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.abt-card-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.abt-card-title {
  font-size: 23px;
  margin-bottom: 10px;
}

.abt-card-text {
  color: var(--muted);
  margin-bottom: 24px;
}

.abt-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.abt-card-rule {
  height: 2px;
  width: 46px;
  border-radius: 999px;
  background: var(--g-300);
  transition: width 320ms cubic-bezier(.2, .7, .2, 1), background 320ms;
}

.abt-card:hover .abt-card-rule {
  width: 66px;
  background: var(--b-500);
}

/* the card's link target: a circular arrow, same behaviour as .btn-circle-solid */
.abt-card-go {
  margin-left: auto;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms, color 220ms, border-color 220ms,
    box-shadow 220ms, transform 220ms cubic-bezier(.2, .7, .2, 1);
}

.abt-card-go:hover,
.abt-card:hover .abt-card-go {
  background: var(--g-800);
  border-color: var(--g-800);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(31, 61, 25, .55);
  transform: translateX(2px);
}

.abt-card-go:active {
  transform: scale(.94);
}

.abt-services-foot {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}


/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media (max-width: 1440px) {

  .abt-hero-inner,
  .abt-story,
  .abt-band-wrap,
  .abt-services {
    padding-left: 32px;
    padding-right: 32px;
  }

  .abt-story {
    gap: 68px;
  }

  .abt-quote {
    right: -40px;
  }
}

@media (max-width: 1180px) {

  .abt-story {
    gap: 52px;
  }

  .abt-quote {
    left: 24px;
    right: -24px;
    padding: 20px 22px;
  }

  .abt-band-inset {
    left: -44px;
    width: 178px;
  }
}

@media (max-width: 1080px) {

  .abt-story,
  .abt-band {
    grid-template-columns: 1fr;
  }

  .abt-hero-inner {
    padding-top: 150px;
    padding-bottom: 78px;
  }

  .abt-story {
    gap: 46px;
    padding-top: 62px;
  }

  .abt-figure-frame {
    aspect-ratio: 16/10;
    min-height: 0;
  }

  .abt-story-media {
    padding-bottom: 64px;
  }

  .abt-story-media::before {
    inset: -16px -18px 44px 24px;
  }

  .abt-quote {
    left: 20px;
    right: 20px;
  }

  .abt-band {
    min-height: 0;
  }

  .abt-band-media {
    order: -1;
    height: 340px;
  }

  .abt-band-media::before {
    background: linear-gradient(180deg, transparent 30%, rgba(28, 39, 20, .78) 100%);
  }

  /* the panel clips its overflow, so the small card stays inside the photo */
  .abt-band-inset {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: 158px;
  }

  .abt-band-wrap,
  .abt-services {
    padding-top: 66px;
  }
}

@media (max-width: 760px) {

  .abt-hero-inner,
  .abt-story,
  .abt-band-wrap,
  .abt-services {
    padding-left: 18px;
    padding-right: 18px;
  }

  .abt-hero-inner {
    padding-top: 128px;
    padding-bottom: 60px;
  }

  /* block, not flex: the quote below is in flow again and must not become
     a column beside the photograph */
  .abt-story-media {
    display: block;
    padding-bottom: 0;
  }

  /* the quote leaves the photograph and sits under it */
  .abt-quote {
    position: static;
    margin-top: 18px;
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .abt-quote::after {
    display: none;
  }

  .abt-story-media::before {
    inset: -12px 0 auto 14px;
    height: 60px;
  }

  .abt-figure-tag {
    left: 12px;
  }

  .abt-lead-text {
    padding-left: 18px;
  }

  .abt-band-media {
    height: 260px;
  }

  .abt-band-inset {
    display: none;
  }

  .abt-services {
    padding-bottom: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .abt-card-media img,
  .abt-card-rule,
  .abt-card-go,
  .abt-band-cta,
  .abt-band-cta svg {
    transition: none;
  }
}
